Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabi1cazenave/gnupad

Standard / notepad-like behavior for Emacs, Vim, Nano.
https://github.com/fabi1cazenave/gnupad

Last synced: 21 days ago
JSON representation

Standard / notepad-like behavior for Emacs, Vim, Nano.

Awesome Lists containing this project

README

        

Every time one of the shortcuts below does something else than the Notepad equivalent, God kills a kitten. This has to stop. Now.

Common Commands
---------------

        • Ctrl+X cut
        • Ctrl+C copy
        • Ctrl+V paste

        • Ctrl+Z undo
        • Ctrl+Y redo

        • Ctrl+O open…
        • Ctrl+S save
        • Ctrl+Q quit

        • Ctrl+F find…
        • Ctrl+H find and replace…
        • F3 Shift+F3 next / previous

Note:
        • Ctrl+Shift+\* shortcuts are not terminal-proof. Avoid them.
        • Ctrl+[S|Q] might be caught by your terminal emulator (XON|XOFF)

Selection and caret movements
-----------------------------

        • Shift+[arrow] start selection and move caret

        • Ctrl+[left|right] move to previous|next word
        • Ctrl+[backspace|delete] erase previous|next word
        • Ctrl+[home|end] move to beginning|end of document

Terminal-friendly alternatives:

        • Ctrl+Space, [arrow] start selection and move caret

        • Alt+[left|right] move to previous|next word
        • Alt+[backspace|delete] erase previous|next word
        • Alt+[home|end] move to beginning|end of document

The gnupad manifesto
--------------------

The “gnupad” idea is to save kittens by emulating these standard / Notepad-like shortcuts in the three main CLI editors:

* **Emacs** now implements a [CUA mode](http://www.emacswiki.org/CuaMode)
but it only affects Ctrl+[z|x|c|v]
— ``notepad.el`` adds support for the other shortcuts and for
Shift+[arrow] selections;
* **Vim** already has Notepad-like settings like ``mswin.vim`` or ``evim``
— ``notepad.vim`` extends them with a few keyboard shortcuts;
* **nano** is the editor that most beginners use
— it’s more than time to use standard shortcuts instead of the pico ones.

Expected benefits
-----------------

* You’ll get used to standard keyboard shortcuts, so you won’t look like a
idiot any more when you have to write two lines with Notepad / Office / whatever.
* *Yo mamma* will be able to use Emacs / Vim / nano.
Well, not Vim — this one is for real men (or patented nerds, I dunno).
* Bringing the power of Notepad to Emacs and nano.
Yeah, that’s a remarkable improvement.
* You won’t pollute your brain with idiotic shortcuts if you have to use
another editor for some shameful reason.
* Enlarge your productivity. Save kittens.

Limitations
-----------

* Emacs:
* F3 Shift+F3 are not implemented
* Ctrl+Y are not implemented because the undo/redo stack sucks like hell (help wanted!)
* Vim:
* there’s no limitation with Vim, only possibilities.
* nano:
* Alt|Ctrl+[arrows] caret movements are not implemented
* Shift+[arrow] selections don’t work, use Ctrl+Space, [arrow] instead
* the 'undo' feature is still experimental

License
-------

WTFPL license. Use at your own risk.