helm/home/profiles/desktop/bin/ku

16 lines
452 B
Plaintext
Raw Normal View History

2023-06-04 03:04:50 -07:00
#!/usr/bin/env bash
2023-08-12 16:59:57 -07:00
# get into a shell that has poonam
cd ~/kitaab || exit;
nix develop;
2023-06-04 03:04:50 -07:00
# Use fzf to select a file and capture the output
2023-08-12 16:59:57 -07:00
selected_file=$(${pkgs.poonam}/main report --titles=false | head -n -2 | fzf --preview 'bat --color=always --terminal-width -1 ./vimwiki/{}')
echo $selected_file
2023-06-04 03:04:50 -07:00
# Add additional details to the file path
2023-08-12 16:59:57 -07:00
# file_path="./vimwiki/${selected_file}"
#
# # Open the file in vim for editing
# vim "${file_path}"
#