Skip to content

Commit

Permalink
feat(broot): configure broot
Browse files Browse the repository at this point in the history
  • Loading branch information
massix committed Mar 20, 2024
1 parent 477305d commit e563a99
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fish/broot/conf.hjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
modal: true
show_selection_mark: true
icon_theme: nerdfont

special_paths: {
"/media" : "no-enter" // comment it if desired
}

content_search_max_file_size: 10MB

imports: [
verbs.hjson
skins/catppuccin-mocha.hjson
]
40 changes: 40 additions & 0 deletions fish/broot/verbs.hjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
verbs: [
{
invocation: edit
shortcut: e
key: ctrl-e
apply_to: text_file
execution: "$EDITOR {file}"
leave_broot: false
}

{
invocation: create {subpath}
execution: "$EDITOR {directory}/{subpath}"
leave_broot: false
}

{
invocation: git_diff
shortcut: gd
leave_broot: false
execution: "git difftool -y {file}"
}

{
invocation: "backup {version}"
key: ctrl-b
leave_broot: false
auto_exec: false
execution: "cp -r {file} {parent}/{file-stem}-{version}{file-dot-extension}"
}

{
invocation: terminal
key: ctrl-t
execution: "$SHELL"
set_working_dir: true
leave_broot: false
}
]

8 changes: 8 additions & 0 deletions fish/install_fish.fish
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,11 @@ symlink_file ./functions/top.fish

info "Finalizing installation"
fisher update >/dev/null

info "Configuring broot"
mkdir -p ~/.config/broot

rm -f ~/.config/broot/conf.hjson
rm -f ~/.config/broot/verbs.hjson
ln -s $current_dir/broot/conf.hjson ~/.config/broot/conf.hjson
ln -s $current_dir/broot/verbs.hjson ~/.config/broot/verbs.hjson
1 change: 1 addition & 0 deletions nvim/lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ return {
"elvish",
"fish",
"haskell",
"hjson",
"html",
"java",
"javascript",
Expand Down

0 comments on commit e563a99

Please sign in to comment.