texstudio
texstudio copied to clipboard
Making switching between documents easier
Describe the feature and the current behavior/state
Currently switching between documents (i.e., tabs) in TeXstudio is not very convenient, especially for large projects.
For example, suppose that we have 10 opened documents and we are currently editing document 2, and we need to go to document 8 to copy something to document 2. This is how we do it in VS Code: Ctrl + Tab Tab Tab (we look at the displayed stack of documents, until we reach document 8, see the attached gif), then copy, then Ctrl + Tab again to switch back to document 2. Because document 2 is in the second position in the stack, we only need to Ctrl + Tab once.
It has become standard that text editors allow switching documents in a stack of documents sorted according to their last ~~opened~~ viewed time (that means, if we open a document X, it will be moved to the top of the stack).
Who will benefit with this feature?
Everybody.
Any Other info
Illustration gif:
The stack is already available here:
@octaeder Thanks, but there are two issues:
- The stack is not sorted according to the last-viewed time of the documents.
- How to efficiently navigate through the stack using the keyboard? (That is the point of this feature request.)
Ad 1) maybe u used the Open Documents |> item. This is the list:
Ad 2) Type the part of the name in the field (see image) or use cursor keys.
The list is sorted, so the last two docs used are at top. And when you look closely you may note that the second line (with the previous doc) is highlighted with a grey bar. So just press enter to go back. What you may want to have is a shortcut for the menu item. This can be changed in the config dialog.
You can change the order with the General / Files / MRU Document Chooser option
You can change the order with the General / Files / MRU Document Chooser option
This is the correct answer to the first issue. Thank you!!!
Now what's missing is how to navigate the list with Ctrl+Tab...
What should Ctrl+Tab do in the list? Moving to doc 8 in your example can be done with the cursor down. And then going back to doc 2 only needs to open the list and to press enter, right?
What should Ctrl+Tab do in the list? Moving to doc 8 in your example can be done with the cursor down. And then going back to doc 2 only needs to open the list and to press enter, right?
It's all about efficiency and convenience, I don't know how to explain this further, but one cannot see why it's bad until using a better feature.
@octaeder I think I've found how to best convince the utility of this feature. Think about how you switch between applications on your computer. Next imagine doing that with the arrow and enter keys, you'll see the problem.
@sunderme This could be helpful, please have a look: https://phabricator.kde.org/D16884