5 ms·
Been using this for years, really great for making quick edits in the terminal. Mouse support and standard editing shortcuts as the default (unlike many other t
by Narushia 3y ago
Been using this for years, really great for making quick edits in the terminal. Mouse support and standard editing shortcuts as the default (unlike many other terminal text editors) are the best features in my opinion.
- Geezus_42 3y agoWhat standard?
- btbuildem 3y agoGuessing the mainstream ctrl-c/ctrl-v as opposed to "two quad key combos while squatting with one foot off the ground"
- deleted 3y ago[deleted]
- PhasmaFelis 3y agoI'm assuming they mean the standard shared by every GUI app in every OS for the last 25 years.
- mixmastamyk 3y agoAbout 40 really. Mac OS and IBM CUA… early to mid 80s. Motif, late 80s.
- PhasmaFelis 3y agoTrue, it's older than that, but I didn't recall exactly when it became universal across all significant contemporary OSes. I don't know what Amiga Workbench used, for example. Figured Win95-era was a conservative guess.
- mixmastamyk 3y agoWhen the IBM PC took over basically, but interestingly they used the Mac as a starting point, since Microsoft had been using the keys. MS learned GUI programming on the Mac before they developed Windows. Hence the lawsuit Apple lost. Motif/CDE said “good enough” as well. IBM even backported some to its mainframes and minis.
- Narushia 3y agoI’m not referring to some definite standard, but to the conventions that have existed in most desktop apps, at least on Windows and Linux, ever since I first used a computer. Wikipedia has a good list of them.[1] The list also shows Emacs and Vim for comparison, so it’s easy to see the deviation from the Windows/Linux conventions. When it comes to text editing specifically, at least these ones are deeply inscribed in my muscle memory, and I use them every day in a variety of applications: – Ctrl+C: copy selection to clipboard – Ctrl+V: paste from clipboard – Ctrl+X: cut selection to clipboard – Ctrl+Z: undo previous operation – Ctrl+Y: redo previous operation – Ctrl+A: select all – Ctrl+F: find – Del: delete char to the right of cursor – Ctrl+Del: delete word to the right of cursor – Ctrl+Backspace: delete word to the left of cursor – Home: go to start of line – End: go to end of line – Ctrl+Home: go to start of document – Ctrl+End: go to end of document – Ctrl+Left: go to previous word – Ctrl+Right: go to next word (And the Shift variations for selecting text regions, like Ctrl+Shift+Right for selecting the word right of the cursor.) I’m definitely not the fastest typer, but I feel these make my text editing a snappy process. Additionally, while not related to the editing itself, I appreciate these ones: – Ctrl+S: save document – Ctrl+Q: quit document [1]: https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts
- PhasmaFelis 3y agoFor the record, MacOS substitutes the Command key for Ctrl, but otherwise most of these are the same there, too.
- lenkite 3y agoUmm..on macOS, ctrl-X appears to remove the whole line and Cmd-X doesn't even work. So, it does not consistently implement these shortcuts honouring the OS conventions.