2024-02-11 18:37:36 +00:00
|
|
|
var app = 'helix'
|
2023-03-20 09:26:02 +00:00
|
|
|
|
|
|
|
var editors = [
|
|
|
|
&emac=[
|
|
|
|
&e={|@argv| e:emacs $@argv }
|
|
|
|
&v={|@argv| e:emacs $@argv --eval '(setq buffer-read-only)' }
|
|
|
|
]
|
|
|
|
&helix=[
|
|
|
|
&e={|@argv| e:helix $@argv }
|
|
|
|
&v={|@argv| e:helix $@argv } # Pas de lecture seule actuellement
|
|
|
|
]
|
|
|
|
&kak=[
|
|
|
|
&e={|@argv| e:kak $@argv }
|
|
|
|
&v={|@argv| e:kak -ro $@argv }
|
|
|
|
]
|
|
|
|
&nvim=[
|
|
|
|
&e={|@argv| e:nvim $@argv }
|
|
|
|
&v={|@argv| e:nvim -R $@argv }
|
|
|
|
]
|
|
|
|
&vim=[
|
|
|
|
&e={|@argv| e:vim $@argv }
|
|
|
|
&v={|@argv| e:vim -R $@argv }
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
var ce~ = $editors[$app]['e']
|
|
|
|
var cv~ = $editors[$app]['v']
|
|
|
|
|
2022-09-01 10:17:24 +00:00
|
|
|
# ÉDITEURS DISPOS
|
2022-09-02 13:53:03 +00:00
|
|
|
#fn ce {|@argv| e:emacs $@argv }
|
|
|
|
#fn ce {|@argv| e:helix $@argv }
|
2023-03-20 09:26:02 +00:00
|
|
|
#fn ce {|@argv| e:kak $@argv }
|
2022-09-02 13:53:03 +00:00
|
|
|
#fn ce {|@argv| e:nvim $@argv }
|
|
|
|
#fn ce {|@argv| e:vim $@argv }
|
2021-08-24 18:44:01 +00:00
|
|
|
|
2022-09-01 10:17:24 +00:00
|
|
|
# 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 }
|
2023-03-20 09:26:02 +00:00
|
|
|
## kak
|
|
|
|
#fn cv {|@argv| ce -ro $@argv }
|
|
|
|
# nvim/vim
|
2022-09-01 10:17:24 +00:00
|
|
|
#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 }
|