#107 Ctrl+Tab Switch

development
closed
nobody
Program (79)
5
2013-06-21
2004-05-29
No

This patch add Mozilla like Ctrl+Tab and Ctrl+Shift+Tab
accelerators for tab (document) switching.

Side effect:
Ctrl+Tab isn't inserting Tab anymore.

Discussion

  • Scott Tringali

    Scott Tringali - 2004-05-29

    Logged In: YES
    user_id=11321

    I don't think we can use this.

    Ctrl+Tab is already taken by "insert literal tab", which is
    a pretty important keystroke.

    We already have Mozilla-like Ctrl+PgUp/PgDn.

     
  • Peter Kovář

    Peter Kovář - 2004-05-30

    Logged In: YES
    user_id=109269

    Then Shift+Tab might be used for self_insert() and Tab alone
    for process_tab(), right?

     
  • Scott Tringali

    Scott Tringali - 2004-05-30

    Logged In: YES
    user_id=11321

    I think it's possible we can move it over like that, but we
    should really run it by the group before changing - this
    will be a change for user already using Ctrl+Tab for
    inserting literal tabs. And there's no real visible way to
    show it either.

    Shift-Tab might be taken up by a window manager to change
    desktops, so I don't know if it's viable. Alt-Tab probably
    isn't a good choice.

    It looks like GTK's tab selector is Ctrl+PgUp/PgDn. Windows
    has Ctrl+PgUp/PgDn and Ctrl+Tab. Qt seems to be Ctrl+Tab
    only.

    Additionally, I'm not sure why we need _two_ sets of
    accelerators. Care to explain why? (Remember that Mozilla
    is not a full-up text editor, so they don't have this
    problem.)

     
  • Peter Kovář

    Peter Kovář - 2004-05-30

    Logged In: YES
    user_id=109269

    Ctrl+Alt+Tab might be safe bet?

    GTK: gedit 2.6.0 is worst example of program designed for
    apes by apes. It has tab switching behaviour dependent on
    focus, Ctrl+Page Up/Down and Ctrl+Tab are ignored! HIG is
    just futile attempt to fix this.

    What's the problem with more than 1 way to do something? Is
    it counter-intuitive?

    It's all resembling whole Copy/Cut/Paste mess.

     
  • Nobody/Anonymous

    Logged In: NO

    Why patching for changing key bindings?
    Usually everyone likes his own bindings. So you define
    some reasonable defaults, and the user can override them,eg
    nedit*text.Translations: #override \n\ Ctrl<Key>Tab: next_document()\n

    and so on should be all you need.

    -- Joerg

     
  • Scott Tringali

    Scott Tringali - 2004-06-07

    Logged In: YES
    user_id=11321

    Please make the case to develop@nedit.org if you think this
    is a better solution than what we have right now.

    Other thing to note that even Ctrl PgUp/PgDn has a
    side-effect - on some systems these keys are mapped to
    PageLeft/PageRight. However, since almost nobody knows
    about it, I think it's an okay tradeoff. It's more
    important to have at least one accelerator for the tabs.

     
  • Scott Tringali

    Scott Tringali - 2004-06-07
    • status: open --> closed
     
  • Richard Baxter

    Richard Baxter - 2013-06-21

    How does one navigate multiple recently used files/tabs? MS Visual studio provides this functionality with Ctrl-tab. The only option provided by Nedit at present is to disable tabs and use alt-tab.

    The problem with this work around is that if a significant number of files are open in nedit then it requires a window manager that supports grouped task bar items. Nedit is therefore incompatible with icewm on even moderately sized projects.

     
    • Richard Baxter

      Richard Baxter - 2013-07-02

      I have created a patch to enable Ctrl-Tab switching between multiple recently accessed tabs in NEdit. It is especially useful for enhancing document navigation for window managers like icewm that don't support window grouping (and therefore require enabling of tabs in nedit when working on large projects, given that keeping large numbers of documents open in separate windows and switching between them with alt-tab is not an option).

      Limitations:
      - It probably requires some clean up and further testing (although it appears to work well)

      Usage:
      - To utilise the patch, apply it to the nedit-5.5 source (eg nedit-5.5-src.tar.gz), then modify a .Xresources file (and place in $HOME). The .Xresources file should include the following:

      NEdit*text.Translations: #override \
          ~Shift Ctrl<KeyPress>Tab:switch_documents()\n\
          ~Shift Ctrl<KeyRelease>Tab:switch_documents_null()\n\
          ~Shift Ctrl<KeyRelease>:switch_documents_end()\n\
          Shift Ctrl<KeyPress>Tab:switch_documents_reverse()\n\
      
       
      Last edit: Richard Baxter 2013-07-27

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks