add session save and session load functionality
New [key-bindings]:
- session-save: captures cwd and foreground process argv to ~/.local/share/foot/state/{name}.json
- session-save-secure: prompts for a password, encrypts the scrollback with argon2id + XChaCha20-Poly1305 (libsodium) and writes it to {name}.scrollback.enc(stores up to 1Mb scrollback buffer).
- session-load: a minimal fuzzy picker that displays saved sessions (both secure and vanilla), UI piggybacks on search bar subsurface. use arrows to navigate and delete to delete a previously saved session.
This commit is contained in:
parent
05ee680778
commit
cabddb26e6
16 changed files with 1947 additions and 49 deletions
5
csi.c
5
csi.c
|
|
@ -1583,7 +1583,10 @@ void csi_dispatch(struct terminal *term, uint8_t final) {
|
|||
/* 0 - icon + title, 1 - icon, 2 - title */
|
||||
unsigned what = vt_param_get(term, 1, 0);
|
||||
if (what == 0 || what == 2) {
|
||||
tll_push_back(term->window_title_stack, xstrdup(term->window_title));
|
||||
tll_push_back(term->window_title_stack,
|
||||
xstrdup(term->window_title != NULL
|
||||
? term->window_title
|
||||
: ""));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue