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

Improve Ctrl-Tab navigation #4350

Closed
lmihalkovic opened this issue Dec 27, 2015 · 5 comments
Closed

Improve Ctrl-Tab navigation #4350

lmihalkovic opened this issue Dec 27, 2015 · 5 comments
Labels
Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix)
Milestone

Comments

@lmihalkovic
Copy link

The comments to #195 contained a small detail that has gone un-noticed. It was suggested that it might warrant its own top level entry.

@Scalpel78

It would be useful if CTRL-TAB switched between the files you last used, and not EVERY file. I 
want to be able to quickly jump between two files, not step through all files in the project.

@lmihalkovic

[...] have a sub-group targetting only a subset of all the files (anyone knowing a app
modeling this for inspiration? - xcode has something like that with menus, but i have to check
if there are shortcuts for it, or to see when files come out of that list)
@per1234
Copy link
Collaborator

per1234 commented Dec 27, 2015

In Firefox I use ctrl + 1-8 for this. I think it's best to leave ctrl+tab for its standard usage. Although using ctrl + 1-8(or ctrl + 1-0)does limit the number of tabs you can switch between it would not be an issue if the tabs were rearrangeable.

@lmihalkovic
Copy link
Author

Thx for the suggestion. As i recall intellij has ctrl-1/xx for bookmarks.

So it looks like a simple thing to do is to have a circular buffer of the latest n entries and then use Ctrl-n to jump directly to the matching file, regardless of where it is located (in my case that also includes jumping to the source file from a library in a different set of tabs - i treat library/sketch as its own set of tabs)

@lmihalkovic
Copy link
Author

so I wrote the code to cycle through file and only jumping when ALT is released. turns out it displaying a summary of the possible target (like the ALT-Tab app switcher) for each arrow pressing and only jumping when the right file is selected works fine and is surprisingly convenient: it means one can cycle through the list of files quickly to find the desired file without being delayed by the inertia of actually switching tab. you may want to look into it more closely too

@lmihalkovic
Copy link
Author

switching tab contents happens when ALT key is released

arduino-2016-01-07 at 9 27 35 am

arduino-2016-01-07 at 9 40 50 am

@cmaglie cmaglie added feature request A request to make an enhancement (not a bug fix) Component: IDE user interface The Arduino IDE's user interface labels Jan 12, 2016
@lmihalkovic
Copy link
Author

Thank you for the feedback

@agdl agdl added this to the Release 1.6.8 milestone Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

No branches or pull requests

4 participants