• Stars
    star
    41
  • Rank 646,243 (Top 14 %)
  • Language
    Crystal
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

✌️ Vim-like Interactive CRystal

Build Status

Vicr stands for "Vim-like Interactive CRystal" and represents a tiny command line application that designed to quickly execute Crystal code with fast feedback and options to proceed:

Installation

OS X

$ brew tap veelenga/tap
$ brew install vicr

From sources:

$ git clone https://github.com/veelenga/vicr
$ cd vicr
$ make
$ sudo make install

Usage

Open terminal, run vicr, write your Crystal program, save and exit.

Options

Vicr is able to load file content for you to start playing with Crystal code straight away. For example:

# loads local file
$ vicr src/vicr/cli.cr

# loads Github file
$ vicr https://github.com/manastech/crystal/blob/master/samples/2048.cr

# loads Github gist
$ vicr https://gist.github.com/veelenga/a5b861ccd32ff559b7d2#file-benchmark_test-cr

# loads CarcIn file
$ vicr https://carc.in/#/r/rlj

# loads play.crystal-lang.org file
$ vicr https://play.crystal-lang.org/#/r/rlj

# loads raw file
$ vicr http://example.com/program.cr

Use help (-h flag) for more information.

Customization

It is possible to configure Vicr start-up settings using ~/.vicr/init.yaml configuration file. You can customize settings and use your favorite editor and even change compiler params:

# ~/.vicr/init.yaml
---
editor:
  executable: nvim
  args:
    - "--cmd"
    - "set paste"

compiler:
  executable: crystal
  args_before:
    - "run"
    - "--no-debug"

Contributing

If you feel like you have a good idea to be implemented, please open a discussion. If you found a defect and enough motivated to fix it, pull requests are welcome.

More Repositories

1

awesome-crystal

πŸ’Ž A collection of awesome Crystal libraries, tools, frameworks and software
Crystal
3,307
star
2

dress

πŸ‘— Dress up your stdout
Elixir
62
star
3

lua.cr

Crystal to Lua bridge
Crystal
59
star
4

carbon-now-sh.el

Emacs to https://carbon.now.sh integration
Emacs Lisp
56
star
5

aasm.cr

πŸ”ƒ Easy to use finite state machine for Crystal classes
Crystal
50
star
6

emoji.cr

πŸ’š Emoji for Crystal
Crystal
47
star
7

i3ipc-ruby

πŸ›« An improved Ruby library to control i3wm
Ruby
35
star
8

crystal-zsh

.oh-my-zsh plugin for Crystal
Shell
28
star
9

aws-lambda-face-blur

AWS Lambda Face Blur
JavaScript
17
star
10

aws-heic-converter

AWS Lamba HEIC Converter
JavaScript
13
star
11

shorturl.cr

A tiny library to use URL shortening services
Crystal
13
star
12

rainbow-spec

Rainbow spec formatter for Crystal
Crystal
12
star
13

rblist

Russia Ban List
TypeScript
11
star
14

yymmdd

⏳ Simple DSL for working with dates.
Crystal
9
star
15

wil

What I Learnt
Ruby
8
star
16

terminal-focus-reporting.el

Minor mode for terminal focus reporting
Emacs Lisp
7
star
17

ember-mail-to

Ember component to create HTML mailto links
JavaScript
6
star
18

play-crystal.el

Emacs to https://play.crystal-lang.org integration
Emacs Lisp
6
star
19

jsonapi-payload-explorer

JSON::API Payload Explorer
JavaScript
6
star
20

bojack.ex

Elixir client for BoJack - the unreliable key-value store 🐴
Elixir
5
star
21

aws-dynamodb.cr

Crystal client for AWS DynamoDB
Crystal
5
star
22

jira_report

πŸ“Ž Cli tool that prints jira activity report.
Ruby
4
star
23

nyancat.ex

Nyancat for Elixir 🐱
Elixir
4
star
24

gh-pr-review-voodoo

A GitHub bot to improve PR review workflow.
TypeScript
3
star
25

crystal-snippets

YASnippet Crystal snippets for Emacs
Emacs Lisp
3
star
26

raph

Ruby Argument Parsing for Humans
Ruby
2
star
27

heroku-buildpack-sidekiq.cr

Sidekiq for Crystal Heroku Buildpack
Shell
2
star
28

curly.el

Straight way to work with current file locations in Emacs
Emacs Lisp
2
star
29

aws-lambda-blur-by-rekognition-label

AWS Lambda to blur objects detected by AWS Rekognition
JavaScript
1
star
30

helptransl8

HelpTransl8 helps translators check the original documentation repository by comparing each file and listing the files that have been modified
Crystal
1
star
31

homebrew-tap

Ruby
1
star
32

veelenga.github.io

My own blog pages
CSS
1
star
33

cybfootball

Π€ΡƒΡ‚Π±ΠΎΠ»ΡŒΠ½Ρ– Ρ‚ΡƒΡ€Π½Ρ–Ρ€ΠΈ Ρ„Π°ΠΊΡƒΠ»ΡŒΡ‚Π΅Ρ‚Ρƒ ΠΊΡ–Π±Π΅Ρ€Π½Π΅Ρ‚ΠΈΠΊΠΈ
Ruby
1
star
34

libcurl.cr

Crystal bindings to libcurl [WIP]
Crystal
1
star
35

crown

Preview markdown files locally with Crystal Markdown
Crystal
1
star
36

any_setting

Load your settings with ease
Crystal
1
star
37

ee

exercism exercises
Elixir
1
star
38

hallo

I tiny project for Make your own Shard in Crystal language tutorial
Crystal
1
star
39

ctci

Solutions for Cracking the Coding Interview, 5th edition
Crystal
1
star
40

react-flash-messages

Rails flash messages with React
Ruby
1
star
41

rev.ex

Use reveal.js in your Elixir 🚧
Elixir
1
star
42

dotfiles

Storing my dotfiles
Emacs Lisp
1
star
43

kyiv-coworking-map

Kyiv Coworking Map
HTML
1
star