Ticket #2875 (new enhancement)

Opened 6 years ago

Last modified 6 years ago

[patch] mcedit supertab

Reported by: slavazanko Owned by:
Priority: major Milestone: Future Releases
Component: mcedit Version: 4.8.4
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

From mailist:
https://mail.gnome.org/archives/mc-devel/2012-September/msg00000.html and https://mail.gnome.org/archives/mc-devel/2012-September/msg00001.html:

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.

Attachments

mc-4.8.4-supertab-short-v2.patch (4.0 KB) - added by slavazanko 6 years ago.
mcedit supertab patch
mc-4.8.4-supertab-short-v3.patch (3.8 KB) - added by sknaumov 6 years ago.
I decided not to overcomplicate this feature, so I just refurbished the patch a bit and adopt it for mc 4.8.6.

Change History

Changed 6 years ago by slavazanko

mcedit supertab patch

comment:1 Changed 6 years ago by slavazanko

  • Version changed from master to 4.8.4
  • Component changed from mc-core to mcedit

Changed 6 years ago by sknaumov

I decided not to overcomplicate this feature, so I just refurbished the patch a bit and adopt it for mc 4.8.6.

Note: See TracTickets for help on using tickets.