mcedit supertab patch

Sergey Naumov sknaumov at gmail.com
Sun Sep 2 15:27:30 UTC 2012


Hello.

Here is a patch with first improvement.

And is there an easy way to check whether the last command was a
completion command?
As far as I understand CK_Complete is not stored at undo stack.

Thanks in advance,
Sergey Naumov.


2012/9/2, Sergey Naumov <sknaumov at gmail.com>:
> 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-v2.patch
Type: text/x-patch
Size: 4138 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20120902/69dac6d6/attachment.bin>


More information about the mc-devel mailing list