Rework new terminal actions
This commit is contained in:
parent
e80ab5f096
commit
9c707eff27
4 changed files with 41 additions and 56 deletions
|
@ -38,7 +38,7 @@ use workspace::{
|
|||
notifications::NotifyResultExt,
|
||||
pane, register_deserializable_item,
|
||||
searchable::{SearchEvent, SearchOptions, SearchableItem, SearchableItemHandle},
|
||||
Pane, ToolbarItemLocation, Workspace, WorkspaceId,
|
||||
Pane, ToolbarItemLocation, Workspace, WorkspaceId, NewCenterTerminal,
|
||||
};
|
||||
|
||||
pub use terminal::TerminalSettings;
|
||||
|
@ -66,10 +66,10 @@ pub fn init(cx: &mut AppContext) {
|
|||
terminal_panel::init(cx);
|
||||
terminal::init(cx);
|
||||
|
||||
cx.add_action(TerminalView::deploy);
|
||||
|
||||
register_deserializable_item::<TerminalView>(cx);
|
||||
|
||||
cx.add_action(TerminalView::deploy);
|
||||
|
||||
//Useful terminal views
|
||||
cx.add_action(TerminalView::send_text);
|
||||
cx.add_action(TerminalView::send_keystroke);
|
||||
|
@ -101,7 +101,7 @@ impl TerminalView {
|
|||
///Create a new Terminal in the current working directory or the user's home directory
|
||||
pub fn deploy(
|
||||
workspace: &mut Workspace,
|
||||
_: &workspace::NewTerminal,
|
||||
_: &NewCenterTerminal,
|
||||
cx: &mut ViewContext<Workspace>,
|
||||
) {
|
||||
let strategy = settings::get::<TerminalSettings>(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue