Commit c5999bffc8
c5999bffc8e00a2d6a7736f96afc258b8a2ec996
parent: aa878f7569
Unregistered key
Ulyssa <git@ulyssa.dev> · 2024-02-29 07:00 UTC
committer: <noreply@github.com>
Pull in modalkit repository with a `Cargo.lock` (#208)
Layout: unified · split
Cargo.lock
+3 −3
| @@ -1862,7 +1862,7 @@ dependencies = [ |
| 1862 | 1862 | [[package]] |
| 1863 | 1863 | name = "keybindings" |
| 1864 | 1864 | version = "0.0.1" |
| 1865 | | source = "git+https://github.com/ulyssa/modalkit?rev=5ebcaf1#5ebcaf18289526216a4e852a6c2c9ee03709e717" |
| 1865 | source = "git+https://github.com/ulyssa/modalkit?rev=cb8c8aeb9a499b9b16615ce144f9014d78036e01#cb8c8aeb9a499b9b16615ce144f9014d78036e01" |
| 1866 | 1866 | dependencies = [ |
| 1867 | 1867 | "textwrap", |
| 1868 | 1868 | "unicode-segmentation", |
| @@ -2255,7 +2255,7 @@ dependencies = [ |
| 2255 | 2255 | [[package]] |
| 2256 | 2256 | name = "modalkit" |
| 2257 | 2257 | version = "0.0.17" |
| 2258 | | source = "git+https://github.com/ulyssa/modalkit?rev=5ebcaf1#5ebcaf18289526216a4e852a6c2c9ee03709e717" |
| 2258 | source = "git+https://github.com/ulyssa/modalkit?rev=cb8c8aeb9a499b9b16615ce144f9014d78036e01#cb8c8aeb9a499b9b16615ce144f9014d78036e01" |
| 2259 | 2259 | dependencies = [ |
| 2260 | 2260 | "anymap2", |
| 2261 | 2261 | "arboard", |
| @@ -2276,7 +2276,7 @@ dependencies = [ |
| 2276 | 2276 | [[package]] |
| 2277 | 2277 | name = "modalkit-ratatui" |
| 2278 | 2278 | version = "0.0.17" |
| 2279 | | source = "git+https://github.com/ulyssa/modalkit?rev=5ebcaf1#5ebcaf18289526216a4e852a6c2c9ee03709e717" |
| 2279 | source = "git+https://github.com/ulyssa/modalkit?rev=cb8c8aeb9a499b9b16615ce144f9014d78036e01#cb8c8aeb9a499b9b16615ce144f9014d78036e01" |
| 2280 | 2280 | dependencies = [ |
| 2281 | 2281 | "crossterm 0.27.0", |
| 2282 | 2282 | "intervaltree", |
Cargo.toml
+2 −2
| @@ -58,12 +58,12 @@ edit = "0.1.4" |
| 58 | 58 | [dependencies.modalkit] |
| 59 | 59 | version = "0.0.17" |
| 60 | 60 | git = "https://github.com/ulyssa/modalkit" |
| 61 | | rev = "5ebcaf1" |
| 61 | rev = "cb8c8aeb9a499b9b16615ce144f9014d78036e01" |
| 62 | 62 | |
| 63 | 63 | [dependencies.modalkit-ratatui] |
| 64 | 64 | version = "0.0.17" |
| 65 | 65 | git = "https://github.com/ulyssa/modalkit" |
| 66 | | rev = "5ebcaf1" |
| 66 | rev = "cb8c8aeb9a499b9b16615ce144f9014d78036e01" |
| 67 | 67 | |
| 68 | 68 | [dependencies.matrix-sdk] |
| 69 | 69 | version = "^0.6.2" |
src/base.rs
+2 −1
| @@ -58,8 +58,8 @@ use matrix_sdk::{ |
| 58 | 58 | }; |
| 59 | 59 | |
| 60 | 60 | use modalkit::{ |
| 61 | actions::Action, |
| 61 | 62 | editing::{ |
| 62 | | action::{Action, UIError, UIResult}, |
| 63 | 63 | application::{ |
| 64 | 64 | ApplicationAction, |
| 65 | 65 | ApplicationContentId, |
| @@ -78,6 +78,7 @@ use modalkit::{ |
| 78 | 78 | command::{CommandContext, CommandDescription, VimCommand, VimCommandMachine}, |
| 79 | 79 | keybindings::VimMachine, |
| 80 | 80 | }, |
| 81 | errors::{UIError, UIResult}, |
| 81 | 82 | key::TerminalKey, |
| 82 | 83 | keybindings::SequenceStatus, |
| 83 | 84 | prelude::{CommandType, WordStyle}, |
src/commands.rs
+1 −1
| @@ -604,7 +604,7 @@ pub fn setup_commands() -> ProgramCommands { |
| 604 | 604 | mod tests { |
| 605 | 605 | use super::*; |
| 606 | 606 | use matrix_sdk::ruma::user_id; |
| 607 | | use modalkit::editing::action::WindowAction; |
| 607 | use modalkit::actions::WindowAction; |
| 608 | 608 | use modalkit::editing::context::EditContext; |
| 609 | 609 | |
| 610 | 610 | #[test] |
src/keybindings.rs
+1 −1
| @@ -3,7 +3,7 @@ |
| 3 | 3 | //! The keybindings are set up here. We define some iamb-specific keybindings, but the default Vim |
| 4 | 4 | //! keys come from [modalkit::env::vim::keybindings]. |
| 5 | 5 | use modalkit::{ |
| 6 | | editing::action::WindowAction, |
| 6 | actions::WindowAction, |
| 7 | 7 | env::vim::keybindings::{InputStep, VimBindings}, |
| 8 | 8 | env::vim::VimMode, |
| 9 | 9 | key::TerminalKey, |
src/main.rs
+16 −23
| @@ -89,30 +89,23 @@ use crate::{ |
| 89 | 89 | }; |
| 90 | 90 | |
| 91 | 91 | use modalkit::{ |
| 92 | | editing::{ |
| 93 | | action::{ |
| 94 | | Action, |
| 95 | | Commandable, |
| 96 | | EditError, |
| 97 | | EditInfo, |
| 98 | | Editable, |
| 99 | | EditorAction, |
| 100 | | InfoMessage, |
| 101 | | InsertTextAction, |
| 102 | | Jumpable, |
| 103 | | Promptable, |
| 104 | | Scrollable, |
| 105 | | TabAction, |
| 106 | | TabContainer, |
| 107 | | TabCount, |
| 108 | | UIError, |
| 109 | | WindowAction, |
| 110 | | WindowContainer, |
| 111 | | }, |
| 112 | | context::Resolve, |
| 113 | | key::KeyManager, |
| 114 | | store::Store, |
| 92 | actions::{ |
| 93 | Action, |
| 94 | Commandable, |
| 95 | Editable, |
| 96 | EditorAction, |
| 97 | InsertTextAction, |
| 98 | Jumpable, |
| 99 | Promptable, |
| 100 | Scrollable, |
| 101 | TabAction, |
| 102 | TabContainer, |
| 103 | TabCount, |
| 104 | WindowAction, |
| 105 | WindowContainer, |
| 115 | 106 | }, |
| 107 | editing::{context::Resolve, key::KeyManager, store::Store}, |
| 108 | errors::{EditError, UIError}, |
| 116 | 109 | key::TerminalKey, |
| 117 | 110 | keybindings::{ |
| 118 | 111 | dialog::{Pager, PromptYesNo}, |
src/windows/mod.rs
+11 −16
| @@ -33,23 +33,18 @@ use ratatui::{ |
| 33 | 33 | }; |
| 34 | 34 | |
| 35 | 35 | use modalkit::{ |
| 36 | | editing::{ |
| 37 | | action::{ |
| 38 | | Action, |
| 39 | | EditError, |
| 40 | | EditInfo, |
| 41 | | EditResult, |
| 42 | | Editable, |
| 43 | | EditorAction, |
| 44 | | Jumpable, |
| 45 | | PromptAction, |
| 46 | | Promptable, |
| 47 | | Scrollable, |
| 48 | | UIError, |
| 49 | | WindowAction, |
| 50 | | }, |
| 51 | | completion::CompletionList, |
| 36 | actions::{ |
| 37 | Action, |
| 38 | Editable, |
| 39 | EditorAction, |
| 40 | Jumpable, |
| 41 | PromptAction, |
| 42 | Promptable, |
| 43 | Scrollable, |
| 44 | WindowAction, |
| 52 | 45 | }, |
| 46 | editing::completion::CompletionList, |
| 47 | errors::{EditError, EditResult, UIError}, |
| 53 | 48 | prelude::*, |
| 54 | 49 | }; |
| 55 | 50 | |
src/windows/room/chat.rs
+10 −14
| @@ -47,26 +47,22 @@ use modalkit_ratatui::{ |
| 47 | 47 | WindowOps, |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | use modalkit::actions::{ |
| 51 | Action, |
| 52 | Editable, |
| 53 | EditorAction, |
| 54 | Jumpable, |
| 55 | PromptAction, |
| 56 | Promptable, |
| 57 | Scrollable, |
| 58 | }; |
| 50 | 59 | use modalkit::editing::{ |
| 51 | | action::{ |
| 52 | | Action, |
| 53 | | EditError, |
| 54 | | EditInfo, |
| 55 | | EditResult, |
| 56 | | Editable, |
| 57 | | EditorAction, |
| 58 | | InfoMessage, |
| 59 | | Jumpable, |
| 60 | | PromptAction, |
| 61 | | Promptable, |
| 62 | | Scrollable, |
| 63 | | UIError, |
| 64 | | }, |
| 65 | 60 | completion::CompletionList, |
| 66 | 61 | context::Resolve, |
| 67 | 62 | history::{self, HistoryList}, |
| 68 | 63 | rope::EditRope, |
| 69 | 64 | }; |
| 65 | use modalkit::errors::{EditError, EditResult, UIError}; |
| 70 | 66 | use modalkit::prelude::*; |
| 71 | 67 | |
| 72 | 68 | use crate::base::{ |
src/windows/room/mod.rs
+11 −16
| @@ -19,23 +19,18 @@ use ratatui::{ |
| 19 | 19 | widgets::{Paragraph, StatefulWidget, Widget}, |
| 20 | 20 | }; |
| 21 | 21 | |
| 22 | | use modalkit::prelude::*; |
| 23 | | use modalkit::{ |
| 24 | | editing::action::{ |
| 25 | | Action, |
| 26 | | EditInfo, |
| 27 | | EditResult, |
| 28 | | Editable, |
| 29 | | EditorAction, |
| 30 | | Jumpable, |
| 31 | | PromptAction, |
| 32 | | Promptable, |
| 33 | | Scrollable, |
| 34 | | UIError, |
| 35 | | }, |
| 36 | | editing::completion::CompletionList, |
| 37 | | keybindings::dialog::PromptYesNo, |
| 22 | use modalkit::actions::{ |
| 23 | Action, |
| 24 | Editable, |
| 25 | EditorAction, |
| 26 | Jumpable, |
| 27 | PromptAction, |
| 28 | Promptable, |
| 29 | Scrollable, |
| 38 | 30 | }; |
| 31 | use modalkit::errors::{EditResult, UIError}; |
| 32 | use modalkit::prelude::*; |
| 33 | use modalkit::{editing::completion::CompletionList, keybindings::dialog::PromptYesNo}; |
| 39 | 34 | use modalkit_ratatui::{TermOffset, TerminalCursor, WindowOps}; |
| 40 | 35 | |
| 41 | 36 | use crate::base::{ |
src/windows/room/scrollback.rs
+17 −21
| @@ -14,28 +14,23 @@ use ratatui::{ |
| 14 | 14 | widgets::{Paragraph, StatefulWidget, Widget}, |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | use modalkit::actions::{ |
| 18 | Action, |
| 19 | CursorAction, |
| 20 | EditAction, |
| 21 | Editable, |
| 22 | EditorAction, |
| 23 | EditorActions, |
| 24 | HistoryAction, |
| 25 | InsertTextAction, |
| 26 | Jumpable, |
| 27 | PromptAction, |
| 28 | Promptable, |
| 29 | Scrollable, |
| 30 | Searchable, |
| 31 | SelectionAction, |
| 32 | }; |
| 17 | 33 | use modalkit::editing::{ |
| 18 | | action::{ |
| 19 | | Action, |
| 20 | | CursorAction, |
| 21 | | EditAction, |
| 22 | | EditError, |
| 23 | | EditInfo, |
| 24 | | EditResult, |
| 25 | | Editable, |
| 26 | | EditorAction, |
| 27 | | EditorActions, |
| 28 | | HistoryAction, |
| 29 | | InsertTextAction, |
| 30 | | Jumpable, |
| 31 | | PromptAction, |
| 32 | | Promptable, |
| 33 | | Scrollable, |
| 34 | | Searchable, |
| 35 | | SelectionAction, |
| 36 | | UIError, |
| 37 | | UIResult, |
| 38 | | }, |
| 39 | 34 | completion::CompletionList, |
| 40 | 35 | context::Resolve, |
| 41 | 36 | cursor::{CursorGroup, CursorState}, |
| @@ -43,6 +38,7 @@ use modalkit::editing::{ |
| 43 | 38 | rope::EditRope, |
| 44 | 39 | store::{RegisterCell, RegisterPutFlags}, |
| 45 | 40 | }; |
| 41 | use modalkit::errors::{EditError, EditResult, UIError, UIResult}; |
| 46 | 42 | use modalkit::prelude::*; |
| 47 | 43 | |
| 48 | 44 | use crate::{ |
src/windows/welcome.rs
−1
| @@ -5,7 +5,6 @@ use ratatui::{buffer::Buffer, layout::Rect}; |
| 5 | 5 | |
| 6 | 6 | use modalkit_ratatui::{textbox::TextBoxState, TermOffset, TerminalCursor, WindowOps}; |
| 7 | 7 | |
| 8 | | use modalkit::editing::action::EditInfo; |
| 9 | 8 | use modalkit::editing::completion::CompletionList; |
| 10 | 9 | use modalkit::prelude::*; |
| 11 | 10 | |
src/worker.rs
+2 −1
| @@ -77,7 +77,8 @@ use matrix_sdk::{ |
| 77 | 77 | Session, |
| 78 | 78 | }; |
| 79 | 79 | |
| 80 | | use modalkit::editing::action::{EditInfo, InfoMessage, UIError}; |
| 80 | use modalkit::errors::UIError; |
| 81 | use modalkit::prelude::{EditInfo, InfoMessage}; |
| 81 | 82 | |
| 82 | 83 | use crate::base::Need; |
| 83 | 84 | use crate::{ |