diff options
| author | lukeflo | 2025-07-07 15:17:19 +0200 |
|---|---|---|
| committer | lukeflo | 2025-07-07 15:17:19 +0200 |
| commit | d55cfd8617410545335aeaf895120044c46dde45 (patch) | |
| tree | bb4a41d32a3715610b8429047a12ec9a6540ee08 /src/tui/commands.rs | |
| parent | 2e4ae7a05a73cb1df63343e14fbb8a5fd3c7bf41 (diff) | |
| parent | c0970da999e222cadbcc2242fb67686ed5b00ca4 (diff) | |
| download | bibiman-d55cfd8617410545335aeaf895120044c46dde45.tar.gz bibiman-d55cfd8617410545335aeaf895120044c46dde45.zip | |
Merge pull request 'bibnotes' (#49) from bibnotes into main
- connect bibentries with notes through citekey<>basename matching
- use multiple file extensions for note files (plain-text heavily recommended)
- create notes for bibentries inside notes dir
- use custom symbols as marker for files/links/notes attached to a bibentry
Diffstat (limited to 'src/tui/commands.rs')
| -rw-r--r-- | src/tui/commands.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tui/commands.rs b/src/tui/commands.rs index 08ee677..89fcf44 100644 --- a/src/tui/commands.rs +++ b/src/tui/commands.rs @@ -73,6 +73,8 @@ pub enum CmdAction { ShowHelp, // Add new entry AddEntry, + // Create note + CreateNote, // Do nothing. Nothing, } @@ -149,6 +151,8 @@ impl From<KeyEvent> for CmdAction { // Open linked ressource KeyCode::Char('o') => Self::Open, // KeyCode::Char('u') => Self::Open(OpenRessource::WebLink), + // Create note file + KeyCode::Char('n') => Self::CreateNote, // Edit currently selected entry KeyCode::Char('e') => Self::EditFile, // Yank selected item/value |
