kiasaki / ry-v3

[abandoned][wip] A vi like editor with Lua at it's core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ry

A Lua based vim-like terminal editor in a Go host

getting

go get github.com/kiasaki/ry

building

make

features

  • vim-like modal editing
  • major mode and multiple minor modes
  • lua scripting

TODO

  • window splits
  • many color schemes
  • syntax highlighting
  • search mode
  • quick jump mode
  • built-in linter plugin
  • built-in fuzzy file finder plugin
  • built-in directory browser plugin
  • run shell commands
  • central plugin repository

normal mode

  • h move_left
  • j move_down
  • k move_up
  • l move_right
  • g g move_start
  • G move_end
  • 0 move_line_start
  • $ move_line_end
  • w move_word_start
  • W move_word_start
  • e move_word_end
  • E move_word_end
  • b move_word_start_backwards
  • B move_word_start_backwards
  • C-u move_jump_up
  • C-d move_jump_down
  • z z center
  • x delete_char
  • d d delete_line
  • i enter_insert_mode
  • : enter_command_mode
  • a move_right, enter_insert_mode
  • A move_line_end, enter_insert_mode
  • o insert_newline_down, enter_insert_mode
  • O insert_newline_up, enter_insert_mode
  • ESC clear_keys_entered
  • C-g clear_keys_entered

insert mode

  • ESC enter_normal_mode
  • RET insert_return
  • SPC insert_space
  • TAB insert_tab
  • BAK2 move_left, delete_char
  • DEL delete_char
  • (any other key) insert

command mode

  • ESC exit_command_mode
  • C-c exit_command_mode
  • C-g exit_command_mode
  • RET command_execute
  • BAK2 command_backspace
  • (any other key) insert

commands

  • quit (q, close) Closes the current buffer, if it's the last one, exits the editor
  • quit! (q!) Like quit but doesn't prevent closing unsaved files
  • edit <path> (e, ed, open, o) Open file at <path> for editing in a new buffer
  • write <path>? (w) Write current buffer to disk, if given a path, sets buffer's path before
  • wq Runs write followed by quit

license

MIT. See LICENSE file.

About

[abandoned][wip] A vi like editor with Lua at it's core

License:MIT License


Languages

Language:Go 62.8%Language:Lua 36.7%Language:Makefile 0.5%