Adding new 'option'
Jump to navigation
Jump to search
Adding a global option
- Add it to config structure in
cfg/config.h
. - Add it to
init_config()
function incfg/config.c
initializing with default value. - Add it to
write_options()
function incfg/info.c
. - Add it in opt_handlers to
options
array. - Implement.
- Add it to
vim/doc/app/vifm-app.txt
(don't forget to update modification date). - Add it to
vifm.1
(don't forget to update modification date). - Regenerate
tags.c
. - Add it to
vim/syntax/vifm.vim
(don't forget to update modification date). For boolean options don't forget about highlightingno<option>
andinv<option>
. - Remove from the
TODO
file. - Add to the
ChangeLog
file. - Update
THANKS
file if option was proposed by someone.
Adding a local option
- Add it to
FileView
structure in ui.h:<type> <name>, <name_g></code.
- Add it to
init_view()
orreset_view()
function infilelist.c
. - Add it to
write_options()
function incfg/info.c
. - Add it to
options
array inopt_handlers.c
. - Add it to
reset_local_options()
,load_view_options()
andclone_local_options()
functions inopt_handlers.c
. - Implement.
- Add it to
vim/doc/vifm.txt
(don't forget to update modification date). - Add it to
vifm.1
(don't forget to update modification date). - Regenerate
tags.c
. - add it to
vim/syntax/vifm.vim
(don't forget to update modification date). For boolean options don't forget about highlightingno<option>
andinv<option>
. - Remove from the
TODO
file. - Add to the
ChangeLog
file. - Update
THANKS
file if option was proposed by someone.