Difference between revisions of "Adding new 'option'"
Jump to navigation
Jump to search
(Initial version of the page) |
m (→Adding a local option: Fix closing <code> tag) |
||
Line 16: | Line 16: | ||
==== Adding a local option ==== | ==== Adding a local option ==== | ||
− | # Add it to <code>FileView</code> structure in ui.h: <code><type> <name>, <name_g></code. | + | # Add it to <code>FileView</code> structure in ui.h: <code><type> <name>, <name_g>;</code>. |
# Add it to <code>init_view()</code> or <code>reset_view()</code> function in <code>filelist.c</code>. | # Add it to <code>init_view()</code> or <code>reset_view()</code> function in <code>filelist.c</code>. | ||
# Add it to <code>write_options()</code> function in <code>cfg/info.c</code>. | # Add it to <code>write_options()</code> function in <code>cfg/info.c</code>. |
Revision as of 15:15, 4 October 2016
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>;
. - 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.