Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Ctrl + Tab shortcut to cycle through recent tabs #8340

Open
lewisc64 opened this issue Nov 2, 2023 · 1 comment
Open

Change Ctrl + Tab shortcut to cycle through recent tabs #8340

lewisc64 opened this issue Nov 2, 2023 · 1 comment

Comments

@lewisc64
Copy link

lewisc64 commented Nov 2, 2023

Describe the project you are working on

N/A - General use of the editor.

Describe the problem or limitation you are having in your project

Control + Tab currently cycles through the tabs in order of left to right. This is consistent with the design of web browsers and windows explorer, but not with IDE's, text editors, and other coding environments (in my experience).

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Changing CTRL+TAB to cycle through the most recent tabs accessed would be a more expected (and more useful) behavior. Examples of software that does this:

  • Notepad++
  • Visual Studio
  • Visual Studio Code
  • Sublime text

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

The idea is in line with what notepad++ does.

When holding CTRL and pressing TAB, a box appears with list of tab names ordered with most recently accessed at the top.

On first press, the second item will be selected, because the top item is the currently selected tab. From here the user could do a few things:

  1. Release the control key

This would have the effect of switching to the tab you were previously on before the current one.

  1. Still holding control, press and release the tab key.

This would set the highlighted tab to the next item down. Releasing control would close the box and select the tab in the editor.

  1. Still holding control, use the mouse to click a tab in the history.

Upon clicking a tab in the box, the box would close and the editor would switch to that tab.

Here is a crude edited screenshot of the sort of thing I am talking about:
image

If this enhancement will not be used often, can it be worked around with a few lines of script?

No

Is there a reason why this should be core and not an add-on in the asset library?

I believe it should be the expected default behavior of this shortcut.

@AThousandShips
Copy link
Member

Should be a separate shortcut IMO, as both navigation methods are very relevant (and it's not universal in software, Kate for example does navigate like Godot with these keys)

@Calinou Calinou changed the title Change CTRL+TAB shortcut to cycle through recent tabs Change Ctrl + Tab shortcut to cycle through recent tabs Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants