mc/misc
Egmont Koblinger 930f683019 Handle newline and tab with shift/ctrl modifiers correctly.
MC already has its own half-ready trick: when pasting with Shift-Insert,
using the X11 extension, the newline ("Enter" as mc calls it) with the
Shift modifier pressed gets converted to a "Return", and in the editor
the Return character inserts a non-indenting newline. This makes pasting
better in terminals not supporting bracketed paste, however, it has some
problems that this commit addresses:

  * Shift+newline gets this special treatment, but Ctrl+newline gets
    dropped. Hence e.g. when pasting in Gnome-terminal with Ctrl+Shift+V
    all the newlines will be missing. This commit adds the same
    non-indenting newline behavior to Ctrl+Newline and Ctrl+Shift+Newline.

  * The code forgets about Tab that also needs special treatment:

    - Most terminals send \e[Z on Shift+Tab, this is not handled by MC
      at all, moreover it causes a hang for about a second. This commit
      teaches this sequence to MC. This is especially useful when no X11
      is available, because there Ctrl+Tab is identical to Tab, so the
      backwards tab feature is not available. With this commit Shift+Tab
      becomes a backwards tab too on all terminals that emit \e[Z.

    - When pasting to the editor, Shift+Tab, Ctrl+Tab and Ctrl+Shift+Tab
      should all insert a tab for the same reason mentioned at the newline.

    - It would look inconsistent in the keymap files to have logical code
      such as "backtab" instead of "shift-tab" and friends, hence get rid
      of KEY_BTAB and use KEY_M_SHIFT | '\t' instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-03 11:41:58 +04:00
..
ext.d Ticket #2006: Display additional info while viewing (F3) *.iso files 2013-07-05 15:21:59 +03:00
macros.d Ticket 1551: Update GPL version from 2 to 3 2011-10-18 14:08:34 +03:00
skins Ticket #2737: set of 256-color skins from Oliver Lange <modarin@bloody.in-berlin.de>. 2013-06-17 13:53:14 +04:00
syntax Typo fixes. 2013-07-23 14:15:24 +04:00
.gitignore Add misc/mc.ext (which is generated from misc/mc.ext.in) to .gitignore 2009-11-08 21:48:24 +01:00
edit.indent.rc Move some files from contrib into misc directory 2009-05-08 16:56:02 +03:00
filehighlight.ini Ticket #2934: highlight OGV files as media. 2012-11-23 14:20:04 +04:00
Makefile.am Rename keymap files to be with .keymap suffix. 2013-03-09 16:04:51 +04:00
mc.charsets Ticket #2037: minor changes in source tree. 2010-02-24 16:36:05 +00:00
mc.default.keymap Handle newline and tab with shift/ctrl modifiers correctly. 2013-10-03 11:41:58 +04:00
mc.emacs.keymap Handle newline and tab with shift/ctrl modifiers correctly. 2013-10-03 11:41:58 +04:00
mc.ext.in Fix for opening some jar files 2013-07-23 14:15:24 +04:00
mc.keymap Rename keymap files to be with .keymap suffix. 2013-03-09 16:04:51 +04:00
mc.lib Add default options for most popular editors/viewers. 2013-02-16 17:40:37 +03:00
mc.macros added examples 2011-03-03 20:48:31 +00:00
mc.menu Ticket #3022: misc/mc.menu contains russian UTF-8 "Ó" instead of English "c". 2013-06-28 09:21:16 +04:00
mc.menu.sr Ticket #2748: wrong message in menu item "Delete tagged files if a copy exists in the other directory". 2012-03-19 11:07:43 +03:00
mcedit.menu Ticket 1551: Update GPL version from 2 to 3 2011-10-18 14:08:34 +03:00
xterm.ad Move some files from contrib into misc directory 2009-05-08 16:56:02 +03:00