dotfiles/config/broot/verbs.toml
2024-03-10 17:47:56 +01:00

79 lines
1.6 KiB
TOML

###############################################################
# This file contains the verb definitions for broot
#
# Documentation at https://dystroy.org/broot/verbs/
###############################################################
[[verbs]]
invocation = "edit"
shortcut = "e"
key = "enter"
apply_to = "text_file"
execution = "nvim +{line} {file}"
leave_broot = false
[[verbs]]
name = "touch"
invocation = "touch {new_file}"
execution = "touch {directory}/{new_file}"
leave_broot = false
[[verbs]]
invocation = "create {subpath}"
execution = "$EDITOR {directory}/{subpath}"
leave_broot = false
[[verbs]]
invocation = "git_diff"
shortcut = "gd"
leave_broot = false
execution = "git difftool -y {file}"
[[verbs]]
invocation = "backup {version}"
key = "ctrl-b"
leave_broot = false
auto_exec = false
execution = "cp -r {file} {file}.{version}"
# execution = "cp -r {file} {parent}/{file-stem}{version}{file-dot-extension}"
[[verbs]]
invocation = "terminal"
key = "ctrl-t"
execution = "$SHELL"
set_working_dir = true
leave_broot = false
[[verbs]]
invocation = "git_root"
shortcut = "gtr"
execution = ":focus {git-root}"
[[verbs]]
key = "ctrl-c"
execution = ":escape"
[[verbs]]
key = "ctrl-h"
execution = ":panel_left_no_open"
[[verbs]]
key = "ctrl-l"
execution = ":panel_right"
[[verbs]]
key = "ctrl-k"
execution = ":line_up"
[[verbs]]
key = "ctrl-j"
execution = ":line_down"
[[verbs]]
key = "ctrl-u"
execution = ":page_up"
[[verbs]]
key = "ctrl-d"
execution = ":page_down"