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