Adding new 'option'
Jump to navigation
Jump to search
Adding a global option[edit]
- Add it to config structure in
cfg/config.h. - Add it to
cfg_init()function incfg/config.cinitializing with default value. - Add it to
store_global_options()function incfg/info.c. - Add it in opt_handlers to
optionsarray. - Add it to
optionsarray inopt_handlers.c. - Implement.
- Add it to
data/vim/doc/app/vifm-app.txt(don't forget to update modification date). - Add it to
data/man/vifm.1(don't forget to update modification date). - Regenerate
tags.cby building the application. - Add to
tests/test-data/syntax-highlight/syntax.vifm. - Add it to
data/vim/syntax/vifm.vim(don't forget to update modification date). For boolean options don't forget about highlightingno<option>andinv<option>. - Running
scripts/check-syntax-changesshould show changes in highlight for new lines. - Add unit test(s).
- Remove from the
TODOfile if the option is mentioned there. - Add to the
ChangeLogfile. - Update
THANKSfile if the option was proposed by someone.
Adding a local option[edit]
- Add it to
view_tstructure in ui.h:<type> <name>, <name_g>;. - Add it to
init_view()orreset_view()function infilelist.c. - Add it to
write_options()function incfg/info.c. - Add it to
optionsarray 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
TODOfile. - Add to the
ChangeLogfile. - Update
THANKSfile if option was proposed by someone.