@@ -1900,6 +1900,40 @@ mod cmd {
1904+ cx: &mut compositor::Context,
1906+ _event: PromptEvent,
1907+ ) -> anyhow::Result<()> {
1908+ let (_, doc) = current!(cx.editor);
1911+ if let Some(path) = args.get(0) {
1912+ cx.editor.open(path.into(), Action::VerticalSplit)?;
1914+ cx.editor.switch(id, Action::VerticalSplit);
1921+ cx: &mut compositor::Context,
1923+ _event: PromptEvent,
1924+ ) -> anyhow::Result<()> {
1925+ let (_, doc) = current!(cx.editor);
1928+ if let Some(path) = args.get(0) {
1929+ cx.editor.open(path.into(), Action::HorizontalSplit)?;
1931+ cx.editor.switch(id, Action::HorizontalSplit);
1903 pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
1937 pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
1904 TypableCommand {
1938 TypableCommand {
1905 name: "quit",
1939 name: "quit",
@@ -2138,6 +2172,20 @@ mod cmd {
2138 doc: "Display tree sitter scopes, primarily for theming and development.",
2172 doc: "Display tree sitter scopes, primarily for theming and development.",
2139 fun: tree_sitter_scopes,
2173 fun: tree_sitter_scopes,
2140 completer: None,
2174 completer: None,
2178+ alias: Some("vsp"),
2179+ doc: "Open the file in a vertical split.",
2181+ completer: Some(completers::filename),
2186+ doc: "Open the file in a horizontal split.",
2188+ completer: Some(completers::filename),