Skip to content

Instantly share code, notes, and snippets.

@benad
Last active September 14, 2021 16:05
Show Gist options
  • Save benad/6cb229670a667adf1f2926fd4097c6c6 to your computer and use it in GitHub Desktop.
Save benad/6cb229670a667adf1f2926fd4097c6c6 to your computer and use it in GitHub Desktop.
~/.config/broot/conf.hjson
# Default: https://github.com/Canop/broot/blob/master/resources/default-conf.hjson
# Doc: https://dystroy.org/broot
{
show_selection_mark: true
verbs: [
{
invocation: edit
shortcut: e
execution: "$EDITOR +{line} {file}"
leave_broot: false
}
{
invocation: create {subpath}
execution: "$EDITOR {directory}/{subpath}"
leave_broot: false
}
{
invocation: toggle_preview
key: ctrl-p
shotcut: p
internal: toggle_preview
}
{
invocation: git_diff
shortcut: gd
leave_broot: true
execution: "git diff {file}"
}
{
invocation: setfile
key: ctrl-k
external: FILE=$( echo {file} ) ; echo FILE="'"$FILE"'"
apply_to: file
leave_broot: true
from_shell: true
}
{
invocation: view
shortcut: v
execution: "bat --paging=always {file}"
leave_broot: false
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment