mcedit supertab patch

Sergey Naumov sknaumov at gmail.com
Sun Sep 2 10:11:35 UTC 2012


Hello.

I would like to propose a patch to mc to make autocompletion in mcedit
by pressing only TAB key if we are not in indent.

Reason: ESC Tab is not very convenient key combo to press often, and
alt-tab is used by Gnome. Also it is good to have the same experience
as with bash completion.

Patch checks whether we are in indent and if not, then it swaps
actions of CK_Complete and CK_Tab. If we are in indent, then both
CK_Tab and CK_Complete produce tabulation (anyway completion in indent
does not work).

Possible improvements:
1) if previous symbol is space/tab, then CK_Tab may produce tabulation
instead of completion.
2) if completion has nothing to suggest and CK_Tab was pressed more
than once consequently, then also produce tabulation.

Short version of patch do nothing with translation files.
Full patch introduces translation for switching checkbox for russian
language and updates pot, po and gmo files (just by calling 'make -C
po update-po' and then 'make -C po install' ).

Please tell me your opinion and suggestions,
Sergey Naumov.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mc-4.8.4-supertab-short.patch
Type: text/x-patch
Size: 4043 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20120902/6a728d1e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mc-4.8.4-supertab.patch
Type: text/x-patch
Size: 44202 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20120902/6a728d1e/attachment-0001.bin>


More information about the mc-devel mailing list