Commit 3462c8e
committed
Limit the history to 20 entries per window
Reduces the amount of work and API calls we need to do before showing
the panel while at the same time reducing the amount of data we store
in the workspace.
Going back more than 20 tabs in the stack is very unlikely and the only
remaining downside is that we will have no history at all after the
user closed these 20 tabs, but in that case it is questionable to
assume that the user would return exactly to the work they did before
closing these 20 tabs anyway.
A configuration option is not added because this seems like a reasonable
default. If configuration is wanted, the user can override our new
`constants.py` file instead.
Closes #41 parent 08f3c38 commit 3462c8e
3 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| 242 | + | |
| 243 | + | |
241 | 244 | | |
242 | 245 | | |
243 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments