xnano-0.1.1 is not a library.
xnano
xnano is a fast text editor, inspired by nano, written in Rust. Includes syntax highlighting, themes, soft line-wrap, line numbers. More than two-dozen common themes are included.
Build
In suitable directory, run
git clone https://github.com/mabognar/xnano
cd xnano
cargo install --path .
xnano
Alternatively,
cargo install xnano
Help
Themes & Configuration:
- To cycle through the included themes, type Meta+T (ALT+T,
Option+T) when in editor
- On MacOS, make sure you have 'Use Option as Meta' selected
in your terminal settings
- Theme, line numbers, soft wrap are persistent
- Settings are stored in ~/.xnano/xnanorc
- Themes are stored in ~/.xnano/themes
- Additional .tmTheme themes can be added to ~/.xnano/themes
Movement:
Ctrl+P, Up Move up one line
Ctrl+N, Down Move down one line
Ctrl+B, Left Move left one character
Ctrl+F, Right Move right one character
Ctrl+A Move to start of line
Ctrl+E Move to end of line
Ctrl+Y, F7, PgUp Move up one page
Ctrl+V, F8, PgDn Move down one page
Editing:
Ctrl+K, F9 Cut current line into clipboard
Ctrl+U, F10 Paste contents of clipboard
Ctrl+D, Del Delete character under cursor
Backspace Delete character before cursor
Ctrl+J, F4 Justify current paragraph
Ctrl+I, Tab Insert tab
Ctrl+^, Meta+A Mark beginning of selected text.
This key also unselects text.
Note: Ctrl+^ = Ctrl+Shift+6
Search & Replace:
Ctrl+W, F6 Where is (Search)
Ctrl+\ Search and Replace
File & System:
Ctrl+O, F3 Write Out (Save)
Ctrl+R, F5 Read File (Insert)
Ctrl+G, F1 Get Help (this screen)
Ctrl+X, F2 Exit xnano
Tools:
Ctrl+C, F11 Current Position
Ctrl+T, F12 To Spell (Spell check)
Ctrl+L Go to line number
Meta+T Cycle Syntax Theme
Meta+L Toggle Line Numbers
Meta+S Toggle Soft Wrap