fxn / tkn

Terminal Keynote - A hack for terminal-based talks
MIT License
1.11k stars 84 forks source link

run_editor: open $VISUAL or $EDITOR at current slide location #12

Open borgand opened 9 years ago

borgand commented 9 years ago

This PR maps keyboard shortcut v to open the slide deck in $VISUAL or $EDITOR (or vim).

If the editor is any of vim, joe or nano the cursor is placed at the start of the current slide. For that purpose, slide hash keeps record of line numbers where the slides are defined.

This is useful: