Recent lfing
This commit is contained in:
parent
962dddbffd
commit
df56b114fd
2 changed files with 19 additions and 7 deletions
|
|
@ -24,12 +24,12 @@ ln # LINK
|
||||||
or # ORPHAN
|
or # ORPHAN
|
||||||
tw t # STICKY_OTHER_WRITABLE
|
tw t # STICKY_OTHER_WRITABLE
|
||||||
st t # STICKY
|
st t # STICKY
|
||||||
ow # OTHER_WRITABLE
|
# ow # OTHER_WRITABLE
|
||||||
di # DIR
|
# di # DIR
|
||||||
# ow # OTHER_WRITABLE
|
# ow # OTHER_WRITABLE
|
||||||
# di # DIR
|
# di # DIR
|
||||||
# ow # OTHER_WRITABLE
|
ow # OTHER_WRITABLE
|
||||||
# di # DIR
|
di # DIR
|
||||||
pi p # FIFO
|
pi p # FIFO
|
||||||
so # SOCK
|
so # SOCK
|
||||||
bd b # BLK
|
bd b # BLK
|
||||||
|
|
@ -354,8 +354,17 @@ Vagrantfile
|
||||||
|
|
||||||
# other formats
|
# other formats
|
||||||
*.pdf
|
*.pdf
|
||||||
|
*.tpy
|
||||||
*.iso
|
*.iso
|
||||||
*.org
|
*.org
|
||||||
*.ovpn
|
*.ovpn
|
||||||
*.txt
|
*.txt
|
||||||
|
*.pptx
|
||||||
|
*.docx
|
||||||
|
*.doc
|
||||||
|
*.odt
|
||||||
|
*.odg
|
||||||
|
*.csv
|
||||||
|
*.ics
|
||||||
|
*.typ
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ set shellopts '-eu' # Treat undefined env vars as errors. Exit upon error.
|
||||||
set ifs "\n"
|
set ifs "\n"
|
||||||
set scrolloff 10
|
set scrolloff 10
|
||||||
set icons # Use icons
|
set icons # Use icons
|
||||||
|
set info "size"
|
||||||
set period 1 # Poll directory status every X seconds
|
set period 1 # Poll directory status every X seconds
|
||||||
set sixel true
|
set sixel true
|
||||||
set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml"
|
set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml"
|
||||||
|
|
@ -121,9 +122,7 @@ cmd open ${{
|
||||||
[ ! -z $@ ] && [ "$@" = "new_window" ] && new_window=1
|
[ ! -z $@ ] && [ "$@" = "new_window" ] && new_window=1
|
||||||
|
|
||||||
function launch {
|
function launch {
|
||||||
# swallower="gobble"
|
[ -v WAYLAND_DISPLAY ] && swallower="gobble" || swallower="devour"
|
||||||
# [ ! -n "${WAYLAND_DISPLAY}" ] && swallower="devour"
|
|
||||||
swallower="devour"
|
|
||||||
|
|
||||||
if [ ! -v new_window ]; then
|
if [ ! -v new_window ]; then
|
||||||
$swallower "$@" >/dev/null 2>&1
|
$swallower "$@" >/dev/null 2>&1
|
||||||
|
|
@ -138,6 +137,10 @@ cmd open ${{
|
||||||
application/pgp-encrypted|\
|
application/pgp-encrypted|\
|
||||||
inode/x-empty|\
|
inode/x-empty|\
|
||||||
text/*)
|
text/*)
|
||||||
|
if [ "${f##*.}" = "org" ]; then
|
||||||
|
launch emacsclient -c "$fx"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
[ -v new_window ] \
|
[ -v new_window ] \
|
||||||
&& ($TERMINAL -e $SHELL -c "$EDITOR \"$fx\"" >/dev/null 2>&1 &) \
|
&& ($TERMINAL -e $SHELL -c "$EDITOR \"$fx\"" >/dev/null 2>&1 &) \
|
||||||
|| ($EDITOR "$fx")
|
|| ($EDITOR "$fx")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue