Skip to content

Commit

Permalink
fix(fish): Use package references for glow and exa
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Aug 17, 2023
1 parent c3189be commit 7563525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions home-manager/modules/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ in {
fish_vi_key_bindings
bind -M insert jk "if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char force-repaint; end"
for mode in insert default normal
# bind -M $mode \a _project_jump
end
export OP_PLUGIN_ALIASES_SOURCED=1
${lib.concatMapStrings
(plugin: ''alias ${plugin}="op plugin run -- ${plugin}"'')
Expand Down
6 changes: 3 additions & 3 deletions home-manager/modules/fzf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,20 @@
function _project_jump_get_readme
set -l dir (_project_jump_parse_project "$argv[1]")
if test -f "$dir/README.md"
glow -p -s dark -w 150 "$dir/README.md"
${pkgs.glow}/bin/glow -p -s dark -w 150 "$dir/README.md"
else
echo
echo (set_color --bold) "README.md not found"
echo
ls --color=always $dir
${pkgs.exa}/bin/exa --icons -s type -F --color=always $dir
end
end
argparse 'format=' -- $argv
if set -ql _flag_format
_project_jump_get_readme $_flag_format
else
set -l selected (_project_jump_get_projects | fzf --ansi --preview-window 'right,70%' --preview "_project_jump --format {}" | _project_jump_parse_project)
set -l selected (_project_jump_get_projects | fzf --ansi --preview-window 'right,70%' --preview "fzf-project-widget --format {}" | _project_jump_parse_project)
if test -n "$selected"
cd "$selected"
end
Expand Down

0 comments on commit 7563525

Please sign in to comment.