Switcher functionality
I have been trying to understand how Switcher works. As far as I have figured out that it isn't meant to show recent or recently edited files. It's meant to show open tabs. There must be at least two tabs open otherwise it displays recent and recently edited file.
I noticed that when used with MacOS keymap the Switcher pop-up remains open as long as the Ctrl key is pressed. File selection can be made via tab.
Under Emacs shortcut, it is triggered via Ctrl+X, B. And it remains open. I can navigate only forward using either arrow key or Ctrl+N. Now the problem that I have been facing is that if I navigate to a file and then press enter then that enter is registered by the editor and a newline is inserted. If I press Ctrl then that sort of acts like making a selection and switcher switches me to the tab.
Why does the switcher pop-up remains open with Emacs keymap?
Why is it return key registers a newline?
What is the ordering of files in Recent Files and Switcher?
Please sign in to leave a comment.
>Why does the switcher pop-up remains open with Emacs keymap?
I guess because this is a two step shortcut. Otherwise it would not be possible to use the B second key with this shortcut.
>Why is it return key registers a newline?
This looks like a bug. I cannot reproduce this on Mac. Would you please file an issue at https://youtrack.jetbrains.com/issues/IDEA with idea.log (Help | Show Log in ... action) file attached after IDE restart and reproducing? A small video capture would also be very helpful for better understanding of what is going on.
Please also try with all 3rd plugins disabled.
>What is the ordering of files in Recent Files and Switcher?
For some reason the switcher is working fine with the Android Studio Bumblebee 2021.1.1 Canary 11.
I suppose I will wait for it to stabilize and see if the issue remains.
Works for me. Check that you are calling the correct shortcut (Settings/Preferences | Keymap). You can also call it from Help | Find Action action:
Hello Andrey,
I am back again.
I set Recent Files in the following menus as Ctrl+Tab but the Recent Files dialog remains open. I have tried this on two machines, one running Windows and another Ubuntu.
Emacs > Main Menu > View > Recent Files/Iterate recent files Ctrl + Tab
Emacs > Other > Switcher (RecentFiles) Actions > Recent Files/Iterate recent files > Ctrl + Tab
It opens the Recent Files dialog but I have to click enter to switch to the file.
Hi Sudhir,
The 'Recent Files' dialog is supposed to remain open, and be navigated with arrows or Ctrl+N(P) + Enter to open selected files or tool windows.
'Switcher' dialog is supposed to be closed as soon as the modifier key is released, because it is intended as a quicker way to jump between open files and tool windows.
So "It opens the Recent Files dialog but I have to click enter to switch to the file" sounds like expected behavior.
What shortcut is the 'Switcher' dialog currently mapped to? Does it disappear for you after you release Ctrl?
Hello Arina,
Thanks for your comment. I didn't know that the recent files was supposed to remain open. I have now set Switcher to Ctrl+Tab and Recent Files to Ctrl+X, B.