Skip to content

Commit

Permalink
add file browsing with connect.kak and ranger
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 15, 2020
1 parent 7c4ad36 commit dd9fd31
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dotfiles/kakoune.nix
Expand Up @@ -135,6 +135,14 @@ in {
docstring = "previous hunk";
}

# file browsing
{
mode = "normal";
key = "_";
effect =
": connect-terminal sh -c %{ ranger --choosefile=/tmp/magic-file-selector $(dirname $1); if test -f /tmp/magic-file-selector; then edit $(cat /tmp/magic-file-selector); rm /tmp/magic-file-selector; fi } -- %val{bufname}<ret>";
}

# vertical selection
{
mode = "user";
Expand Down

0 comments on commit dd9fd31

Please sign in to comment.