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
1
search.h
1
search.h
|
|
@ -6,6 +6,7 @@
|
|||
#include "terminal.h"
|
||||
|
||||
void search_begin(struct terminal *term);
|
||||
void search_begin_session(struct terminal *term, enum search_mode mode);
|
||||
void search_cancel(struct terminal *term);
|
||||
void search_input(
|
||||
struct seat *seat, struct terminal *term,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue