fix: reset cursor on enter dir and persist full cursor memory across sessions

This commit is contained in:
vrubelroman 2026-05-04 00:36:34 +03:00
parent d5569ecdd0
commit a9ccff8635
2 changed files with 41 additions and 9 deletions

View file

@ -17,8 +17,9 @@ type SessionState struct {
// PaneSession stores per-pane session state (path and selected entry name).
type PaneSession struct {
Path string `toml:"path"`
EntryName string `toml:"entry_name"`
Path string `toml:"path"`
EntryName string `toml:"entry_name"`
CursorMemory map[string]string `toml:"cursor_memory"`
}
// DefaultSessionPath returns the path to the session file.