Rationnalisation des différents éditeurs par défaut + correction des nom VPN

This commit is contained in:
Benjamin VAUDOUR 2022-09-01 12:17:24 +02:00
parent 7a55097eee
commit 9a4b757926
3 changed files with 32 additions and 23 deletions

View File

@ -1,16 +1,25 @@
#var cmd = $e:nvim~
#var cmd = $e:helix~
var cmd = $e:kak~
#var cmd = $e:emacs~
# ÉDITEURS DISPOS
#fn ce {|@argv| $e:emacs~ $@argv }
#fn ce {|@argv| $e:helix~ $@argv }
fn ce {|@argv| $e:kak~ $@argv }
#fn ce {|@argv| $e:nvim~ $@argv }
#fn ce {|@argv| $e:vim~ $@argv }
edit:add-var vi~ {|@argv| $cmd $@argv }
edit:add-var vb~ {|@argv| $cmd $@argv ~/.bashrc }
edit:add-var vc~ {|@argv| $cmd $@argv ~/.vimrc }
edit:add-var ve~ {|@argv| $cmd $@argv ~/.config/elvish/rc.elv }
edit:add-var vf~ {|@argv| $cmd $@argv ~/.config/fish/config.fish }
edit:add-var vp~ {|@argv| $cmd $@argv PKGBUILD }
#edit:add-var vv~ {|@argv| $cmd -R $@argv } # vim/nvim
edit:add-var vv~ {|@argv| $cmd -ro $@argv } # kak
#edit:add-var vv~ {|@argv| $cmd $@argv } # helix - pas de mode lecture seule pour le moment
#edit:add-var vv~ {|@argv| $cmd $@argv --eval '(setq buffer-read-only t)' } # emacs
edit:add-var vz~ {|@argv| $cmd $@argv ~/.zshrc }
# LECTURE SEULE
## emacs
#fn cv {|@argv| ce $@argv --eval '(setq buffer-read-only)' }
## helix (pas le lecture seule pour le moment)
#fn cv {|@argv| ce $@argv }
# kak
fn cv {|@argv| ce -ro $@argv }
## nvim/vim
#fn cv {|@argv| ce -R $@argv }
edit:add-var vi~ $ce~
edit:add-var vb~ {|@argv| ce $@argv ~/.bashrc }
edit:add-var vc~ {|@argv| ce $@argv ~/.vimrc }
edit:add-var ve~ {|@argv| ce $@argv ~/.config/elvish/rc.elv }
edit:add-var vf~ {|@argv| ce $@argv ~/.config/fish/config.fish }
edit:add-var vp~ {|@argv| ce $@argv PKGBUILD }
edit:add-var vv~ $cv~
edit:add-var vz~ {|@argv| ce $@argv ~/.zshrc }

View File

@ -12,9 +12,9 @@ var shortcut = [
&lu=luence-wg
&lu2=luence-ovpn
&cli=lunce-client
&nl=proton-nl5
&jp=proton-jp2
&us=proton-us3
&nl=proton_nl5
&jp=proton_jp2
&us=proton_us3
]
var next = [
@ -22,9 +22,9 @@ var next = [
&fr.kaosx.cf=luence-wg
&luence-wg=luence-client
&luence-ovpn=luence-client
&luence-client=proton-nl5
&proton-nl5=proton-us3
&proton-us3=proton-jp2
&luence-client=proton_nl5
&proton_nl5=proton_us3
&proton_us3=proton_jp2
]
fn -list {|&active=$false|

4
rc.elv
View File

@ -2,8 +2,8 @@
set-env BAT_PAGER 'less -RF'
#set-env EDITOR vim
set-env EDITOR kak
#set-env VIEW 'vim -R'
set-env VIEW 'kak -ro'
#set-env VISUAL 'vim -R'
set-env VISUAL 'kak -ro'
set-env CURRENT_SHELL 'elvish'
set-env STARSHIP_CONFIG ~/.config/starship/starship.toml
set-env PERL5LIB /home/benjamin/perl5/lib/perl5