aboutsummaryrefslogtreecommitdiff
path: root/autoload/files.kak
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-10-25 14:22:43 +0530
committerAkshay Nair <phenax5@gmail.com>2025-10-25 14:22:43 +0530
commitf384c4ebb1a83ff52888469430edc4cd0fa0f955 (patch)
tree4499e5cd6e5cfa4c5df83cbdd82a51b9c81e87e0 /autoload/files.kak
parentbf40ceb853eb590100fe5a82709d8be3b6c59d8d (diff)
downloadkakoune-config-f384c4ebb1a83ff52888469430edc4cd0fa0f955.tar.gz
kakoune-config-f384c4ebb1a83ff52888469430edc4cd0fa0f955.zip
Fix editor in gitu + add relative path for daffm
Diffstat (limited to 'autoload/files.kak')
-rw-r--r--autoload/files.kak9
1 files changed, 6 insertions, 3 deletions
diff --git a/autoload/files.kak b/autoload/files.kak
index eb03a87..b928c33 100644
--- a/autoload/files.kak
+++ b/autoload/files.kak
@@ -1,7 +1,10 @@
-def find -docstring "find files" -menu -params 1 %{ edit -existing %arg{1} } \
- -shell-script-candidates %{ fd -t f --hidden --color=never -E .git }
+def find -docstring "find files" -menu -params 1 \
+ %{ edit -existing %arg{1} } \
+ -shell-script-candidates %{ fd -t f --hidden --color=never -E .git }
-def file-manager -params .. %{ connect terminal env "EDITOR=kcr edit" daffm -c @kak %arg{@} }
+def file-manager -params .. %{
+ connect terminal env "EDITOR=kcr edit" sh -c "DAFFM_PATH_RELATIVE_TO=$PWD daffm -c @kak %arg{@};"
+}
declare-user-mode buffer
map global user b ': enter-user-mode buffer<ret>' -docstring 'Buffer mode'