mirror of
https://github.com/Manoj-HV30/Mini-command-line-interface.git
synced 2026-05-16 19:35:24 +00:00
2.4 KiB
2.4 KiB
🔲 To Do
Cursor Movement
←→— move one character at a timeAlt+B/Alt+F— jump one word left / rightCtrl+←/Ctrl+→— same as Alt+B/F (alternate terminal sequences)Home/End— jump to start / end of lineCtrl+A/Ctrl+E— same as Home/End (Bash-style)
Editing
- Printable characters — insert at cursor position, not just append
Backspace— delete character to the leftDelete— delete character to the right (forward delete)Alt+Backspace/Ctrl+W— delete whole word to the leftAlt+D— delete whole word to the rightCtrl+K— kill everything from cursor to end of lineCtrl+U— kill everything from cursor to start of line
Selection
Shift+←/Shift+→— grow / shrink a text selectionShift+Home/Shift+End— select to start / end of line- Typing while text is selected — replaces the selection
Backspacewhile text is selected — deletes the selection
Visual
- Live trailing whitespace highlighted in red background as you type
- Text selection shown with reversed colors
History
↑/↓— scroll through previous commandsCtrl+R— reverse search through history (type to fuzzy-find a past command)- Persist history to
~/.rawline_historyso it survives between sessions - History deduplication — don't save the same command twice in a row
Autocomplete
Tab— complete current word from a list of known commands or keywords- Cycle through multiple matches with repeated
Tabpresses - Dropdown menu of suggestions rendered below the input line
- Fuzzy matching — doesn't need to start with the same letters
Multiline Input
Alt+Enter— insert a newline without submitting- Smart indentation — auto-indent next line based on previous
Syntax Highlighting
- Plug in Pygments for real language syntax highlighting
- Highlight matching brackets / parentheses when cursor is near one
More Shortcuts
Alt+C— capitalize current wordCtrl+Y— yank (paste) last killed text fromCtrl+KorCtrl+UCtrl+_— undo last edit (with a full undo stack)
Clipboard
Ctrl+Con a selection — copy to system clipboardCtrl+V— paste from system clipboard