Floobits / atom-term3

Open Terminal tabs in Atom. Fork of Term package
Other
88 stars 17 forks source link

Switching to another tab using Ctrl-Tab triggers shell autocomplete #87

Open matteodelabre opened 7 years ago

matteodelabre commented 7 years ago

Expected behavior

While in a term3 tab, switching to another tab using Ctrl-Tab should leave the terminal in the same state.

Actual behavior

While in a term3 tab, if you press Ctrl-Tab to switch to another tab and then come back to the terminal tab, the shell autocomplete is triggered. I’m guessing this is because the terminal tab somehow “swallows” the Tab from the Ctrl-Tab shortcut.

This is quite hard to notice in Bash as autocomplete is only triggered if you start typing text and hit Tab twice. However, other shells such as Fish trigger it even when nothing is typed and upon the first press on Tab, so this bug can be annoying.

Here is a short illustration for the problem:

term3-ctrl-tab-issue

Steps to reproduce

Using Bash:

  1. Open a term3 tab and at least one other tab in Atom.
  2. Start typing a command (for example, ex).
  3. Hit Tab once; notice that autocomplete is not yet triggered.
  4. Switch to another tab using Ctrl-Tab.
  5. Come back to the term3 tab (either by clicking the tab or via a keyboard shortcut).
  6. Autocomplete was triggered while you switched to the other tab.