helix/helix-view/src
Michael Davis 8102c3224f
Limit the number of items in the jumplist (#4750)
Previously, jumplists could grow unchecked. Every transaction is
applied to jumplist selections to ensure that they are up to date
and within document bounds, so this would cause every edit to become
more expensive as jumplist lengths increased throughout a session.
Setting a maximum number of entries limits the cost.

Vim and Neovim limit their jumplists:

* b298fe6cba/src/structs.h (L141)
* e8cc489acc/src/nvim/mark_defs.h (L57)

Notably, Kakoune does not. In Kakoune, changes are applied to jumplist
entries lazily as you hit `<C-o>`/`<C-i>` though, so Kakoune doesn't
have the same growing cost concerns. Kakoune also does not have a
concept of a View which limits the cost further.

Vim and Neovim limit to 100. This seems unreasonably high to me so I've
set this to 30 to start. We can increase if this is problematically
low.
2022-11-22 10:54:50 +09:00
..
handlers feat(csharp,debug): add C# debugger support (#4213) 2022-10-15 15:33:57 -05:00
base64.rs Use OSC 52 as a fallback for setting the system clipboard (#3220) 2022-11-02 10:12:40 +09:00
clipboard.rs Use OSC 52 as a fallback for setting the system clipboard (#3220) 2022-11-02 10:12:40 +09:00
document.rs core: Move state into the history module 2022-11-08 21:03:54 +09:00
editor.rs Factor out common code for focusing the next view (#4607) 2022-11-17 09:59:59 +09:00
env.rs Use OSC 52 as a fallback for setting the system clipboard (#3220) 2022-11-02 10:12:40 +09:00
graphics.rs Resolve a bunch of upcoming clippy lints 2022-11-04 21:06:28 +09:00
gutter.rs Dynamically resize line number gutter width (#3469) 2022-11-08 21:19:59 +09:00
info.rs fix: remove unneeded allocations when calling helix_view::Info::new 2022-10-11 15:47:11 +09:00
input.rs Propagate idle timeout event to components (#3172) 2022-10-11 09:10:01 +09:00
keyboard.rs Update to crossterm-0.25 (#3390) 2022-08-22 10:29:30 +09:00
lib.rs Dynamically resize line number gutter width (#3469) 2022-11-08 21:19:59 +09:00
macros.rs Expand doc/view macros to allow fetching specific id 2022-09-03 12:36:06 +09:00
theme.rs commands: Make no arg ':theme' show name (#3740) 2022-10-26 11:59:50 +09:00
tree.rs When buffer closes, focus on parent buffer (#4766) 2022-11-17 20:53:49 -06:00
view.rs Limit the number of items in the jumplist (#4750) 2022-11-22 10:54:50 +09:00