some fixes
This commit is contained in:
parent
d3e917fa09
commit
5b162616d2
3 changed files with 8 additions and 13 deletions
|
|
@ -22,11 +22,6 @@ if status is-interactive
|
|||
$argv &>/dev/null & disown
|
||||
end
|
||||
|
||||
|
||||
function alacritty --description 'Create new Alacritty window'
|
||||
command alacritty msg create-window $argv
|
||||
end
|
||||
|
||||
function vman --description 'Uses Neovim as a manpager'
|
||||
man $argv | nvim +Man!
|
||||
end
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ function open_semester
|
|||
set options (ls $recent)
|
||||
set input (menu $options)
|
||||
|
||||
alacritty --working-directory $recent/$input
|
||||
alacritty msg create-window --working-directory $recent/$input
|
||||
end
|
||||
|
||||
# Open user directories
|
||||
|
|
@ -18,15 +18,15 @@ function open_location
|
|||
case $options[1]
|
||||
open_semester
|
||||
case $options[2]
|
||||
alacritty --working-directory (xdg-user-dir)/Documents/
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Documents/
|
||||
case $options[3]
|
||||
alacritty --working-directory (xdg-user-dir)/Music/
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Music/
|
||||
case $options[4]
|
||||
alacritty --working-directory (xdg-user-dir)/Pictures/
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Pictures/
|
||||
case $options[5]
|
||||
alacritty --working-directory (xdg-user-dir)/Videos/
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Videos/
|
||||
case $options[6]
|
||||
alacritty --working-directory (xdg-user-dir)/Downloads/
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Downloads/
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ set names (string split --fields 2 ' ' $engines)
|
|||
set urls (string split --fields 3 ' ' $engines)
|
||||
|
||||
function search
|
||||
set input (prompt --prompt="$names[$argv[1]] " --mesg=(string join ', ' $bindings) || exit)
|
||||
|
||||
set input (string join -- ' ' (prompt --prompt="$names[$argv[1]] " --mesg=(string join ', ' $bindings) || exit))
|
||||
echo $input[1]
|
||||
if contains $input $bindings
|
||||
search (contains -i $input $bindings)
|
||||
exit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue