tweaks
This commit is contained in:
parent
3d768660dd
commit
064fbdb49d
1 changed files with 5 additions and 3 deletions
|
|
@ -2,13 +2,15 @@
|
||||||
|
|
||||||
# Select folders in current semester
|
# Select folders in current semester
|
||||||
function open_semester
|
function open_semester
|
||||||
set options (ls $argv[1])
|
set options (ls -a $argv[1])
|
||||||
set input (menu $options)
|
set input (menu $options || exit)
|
||||||
|
|
||||||
if test -z "$input"
|
if test "$input" = "."
|
||||||
alacritty msg create-window --working-directory $argv[1]
|
alacritty msg create-window --working-directory $argv[1]
|
||||||
else if test -d $argv[1]/$input
|
else if test -d $argv[1]/$input
|
||||||
open_semester $argv[1]/$input
|
open_semester $argv[1]/$input
|
||||||
|
else if test (xdg-mime query filetype $argv[1]/$input) = "application/pdf" && test (menu "PDF" "Ipe") = "Ipe"
|
||||||
|
ipe $argv[1]/$input
|
||||||
else
|
else
|
||||||
xdg-open $argv[1]/$input
|
xdg-open $argv[1]/$input
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue