From 1628cbb0c445a0de406895a38d083eb1166801aa Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Sat, 12 Aug 2023 16:59:57 -0700 Subject: [PATCH] curve: ku for kitaab untagged --- home/profiles/desktop/bin/ku | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/home/profiles/desktop/bin/ku b/home/profiles/desktop/bin/ku index 265f4803..b66d9372 100755 --- a/home/profiles/desktop/bin/ku +++ b/home/profiles/desktop/bin/ku @@ -1,11 +1,15 @@ #!/usr/bin/env bash +# get into a shell that has poonam +cd ~/kitaab || exit; +nix develop; # Use fzf to select a file and capture the output -selected_file=$(python3 poonam/main.py report --titles=false | head -n -2 | fzf --preview 'bat --color=always --terminal-width -1 ./vimwiki/{}') +selected_file=$(${pkgs.poonam}/main report --titles=false | head -n -2 | fzf --preview 'bat --color=always --terminal-width -1 ./vimwiki/{}') +echo $selected_file # Add additional details to the file path -file_path="./vimwiki/${selected_file}" - -# Open the file in vim for editing -vim "${file_path}" - +# file_path="./vimwiki/${selected_file}" +# +# # Open the file in vim for editing +# vim "${file_path}" +#