Skip to content

1.2 Jag: Terminal Editor With Mouse Support and Colour Highlighting

Claude Roux edited this page Feb 8, 2021 · 26 revisions

Jag

jag is a terminal editor that is compatible with Mac OS and Linux. It is basically the same editor as the one that is currently embedded in LispE.

jag offers:

  • mouse support
  • color highlighting for many languages (C++, python)
  • regular expression to search and replace
  • undo/redo mode (ctrl-u / ctrl-r)

The editor is pretty small and comes with a multitude of options:

Commandes :
   	- Ctrl-k: delete from cursor up to the end of the line
   	- Ctrl-d: delete a full line
   	- Ctrl-u: undo last modification
   	- Ctrl-r: redo last modification
   	- Ctrl-f: find a string
   	- Ctrl-n: find next
   	- Ctrl-g: move to a specific line, '$' is the end of the code
   	- Ctrl-l: reload file from disk
   	- Ctrl-t: reindent the code
   	- Ctrl-h: local help
   	- Ctrl-w: write file to disk
   	- Ctrl-c: exit the editor

   	- Alt-x: cut mouse selection
   	- Alt-c: copy mouse selection
   	- Alt-v: paste mouse selection

   	- Ctrl-x: Combined Commands
                - f: search with LispE internal regular expressions
                - F: search with posix regular expressions 
   		- D: delete a bloc of lines
   		- n: hide/display line numbers
   		- c: copy a bloc of lines
   		- x: cut a bloc of lines
   		- v: paste a bloc of lines
   		- w: write and quit
   		- l: load a file
   		- h: full help
   		- m: toggle mouse on/off
   		- u: toggle between top and bottom of the screen
   		- q: quit

Compile

To compile jag: make jag

Use

You can edit any file with jag: jag file.

Clone this wiki locally