From c54ca2f5e7a9941d5937cd495568eba8817a6528 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Mon, 9 Oct 2023 21:18:59 -0400 Subject: [PATCH] Extract run-zellij-from-helix as script --- bin/run-zellij-from-helix | 8 ++++++++ helix/config.toml | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 bin/run-zellij-from-helix diff --git a/bin/run-zellij-from-helix b/bin/run-zellij-from-helix new file mode 100755 index 0000000..9ce26c2 --- /dev/null +++ b/bin/run-zellij-from-helix @@ -0,0 +1,8 @@ +#!/bin/bash + +zellij r --name run --close-on-exit --direction down -- ~/.config/bin/run-from-helix + +for x in {1..3} +do + zellij action resize decrease +done diff --git a/helix/config.toml b/helix/config.toml index ec02647..cb0c0e2 100644 --- a/helix/config.toml +++ b/helix/config.toml @@ -11,7 +11,7 @@ true-color = true "T" = "page_down" # shift+move_visual_line_down is page down "F8" = ":open ~/.config/bin/run-from-helix" -"F9" = [":wa", ":sh zellij r --name run --close-on-exit --direction down -- ~/.config/bin/run-from-helix; zellij action resize decrease; zellij action resize decrease; zellij action resize decrease"] +"F9" = [":wa", ":sh ~/.config/bin/run-zellij-from-helix"] # these are non-standard changes, original dvorak commented with #x @@ -375,7 +375,7 @@ true-color = true "A-i" = "normal_mode" "F8" = ":open ~/.config/bin/run-from-helix" -"F9" = [":wa", ":sh zellij r -f -- ~/.config/bin/run-from-helix"] +"F9" = ["normal_mode", ":wa", ":sh ~/.config/bin/run-zellij-from-helix"] # these are non-standard changes, original dvorak commented with #x @@ -789,7 +789,7 @@ true-color = true "A-i" = "normal_mode" "F8" = ":open ~/.config/bin/run-from-helix" -"F9" = [":wa", ":sh zellij r -f -- ~/.config/bin/run-from-helix"] +"F9" = ["normal_mode", ":wa", ":sh ~/.config/bin/run-zellij-from-helix"] # normal dvorak "esc" = "normal_mode" # "esc"