Sublime History Navigation Model
From KDevelop
Contents |
[edit] The Task
Let's imagine we have KDevelop with two split views. In each view user opened several files. Current state of the screen is:
--------------------------- | file3.cpp | file4.cpp | | | | | | | ---------------------------
Files previously opened in views are:
left view: | right view: 1. file1.cpp | 2. file2.cpp 3. file3.cpp | 4. file4.cpp
Numbers near the filenames indicate the order in which user opened the files.
This means the user:
- opened file1.cpp
- split the screen and opened file2.cpp
- got back to the first view and opened file3.cpp
- switched to the last view and opened file4.cpp
Currently focus is in file4.cpp editor.
Also let's assume Alt-Up/Down keys traverse the history Back/Forward
[edit] Proposals
[edit] v.1 In-View History Navigation
- Back: show file2.cpp
- Forward: show file4.cpp
[edit] v.2 Global History Navigation With Switching
- Back: switch to left view + focus file3.cpp
- Back: switch to right view + show file2.cpp
- Back: switch to left view + show file1.cpp
- Forward: switch to right view + focus file2.cpp
- Forward: switch to left view + show file3.cpp
- Forward: switch to right view + show file4.cpp
[edit] v.3 Global In-View History Navigation
- Back: show file3.cpp
- Back: show file2.cpp
- Back: show file1.cpp
- Forward: show file2.cpp
- Forward: show file3.cpp
- Forward: show file4.cpp