Revise papis alias
This commit is contained in:
parent
687d5b52cc
commit
e97279e5a4
2 changed files with 23 additions and 9 deletions
|
|
@ -54,8 +54,19 @@
|
|||
# File operations
|
||||
pafile = "papis addto -f ~/Downloads/";
|
||||
paurl = "papis addto -u";
|
||||
|
||||
# Finder integration
|
||||
pafinder = "open -R $(papis list)";
|
||||
};
|
||||
|
||||
# Shell functions for papis workflow
|
||||
programs.zsh.initExtra = ''
|
||||
# Papis finder function - open document directory in Finder with query support
|
||||
pafinder() {
|
||||
local result=$(papis list "$@" | head -1)
|
||||
if [ -n "$result" ]; then
|
||||
open -R "$result"
|
||||
else
|
||||
echo "No documents found"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue