Change
Improve history in source code editor
Issue description
The source code editor has a navigational history, which is currently far from perfect and often causes confusion.
Developer comments
There is currently three types of code links:
* file links: in require, include and import statements
* function links: in function calls
* service links: in call, schedule, etc.
* topic links: topic references, e.g. in registering a domain class, but also when mentioning a topic in the code.
The last two leave the source code editor and are therefore not relevant for the history.
These actions in the editor have an effect on the history:
* Changing the code
* Selecting a type tab (since it is always selecting a file tab)
* Selecting a file tab
* Selecting an entry in the table of contents
* Visiting the file index
* Selecting a file in the file index tab
* Selecting a code line in the code search tab
* Follwing a code link
The last one is special since it creates two entries:
* One for the source code line where the link was clicked
* One for the destination
When a user backtracks and chooses a different route, what should happen to the backtracked part of the history? Currently it is discarded. I think it might be better to append the current file (after backtracking) with the start file of the new route, to the end of the history.
User visits:
A B C D E
Goes back to C, then visits Z. History currently looks like:
A B C D E Z
But should look like:
A B D E C Z
|
Work sessions13
Start |
2023-11-06T12:37:07
|
End |
2023-11-06T15:49:24
|
Participant |
Robert Cerny
|
Start |
2023-11-07T10:30:30
|
End |
2023-11-07T12:01:32
|
Participant |
Robert Cerny
|
Start |
2023-11-07T12:26:42
|
End |
2023-11-07T16:02:13
|
Participant |
Robert Cerny
|
Start |
2023-11-08T07:48:52
|
End |
2023-11-08T09:14:14
|
Participant |
Robert Cerny
|
Start |
2023-11-08T10:30:00
|
End |
2023-11-08T12:52:08
|
Participant |
Robert Cerny
|
Start |
2023-11-08T13:25:55
|
End |
2023-11-08T18:22:12
|
Participant |
Robert Cerny
|
Start |
2023-11-09T06:27:02
|
End |
2023-11-09T11:11:07
|
Participant |
Robert Cerny
|
Start |
2023-11-09T15:20:11
|
End |
2023-11-09T16:42:53
|
Participant |
Robert Cerny
|
Start |
2023-11-10T13:40:01
|
End |
2023-11-10T15:32:16
|
Participant |
Robert Cerny
|
Start |
2023-11-11T07:42:52
|
End |
2023-11-11T10:00:00
|
Participant |
Robert Cerny
|
Start |
2023-11-25T12:32:11
|
End |
2023-11-25T13:41:44
|
Participant |
Robert Cerny
|
Start |
2023-11-27T08:56:52
|
End |
2023-11-27T12:04:05
|
Participant |
Robert Cerny
|
Start |
2023-11-30T18:09:54
|
End |
2023-11-30T18:43:31
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.