Adding new sorting key

From Vifm Wiki
Revision as of 16:19, 13 August 2015 by Xaizek (talk | contribs) (Describe why it's important to add new elements to the end.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. Update SK_* items in ui/ui.h, that is add new value to the end of the list and update SK_LAST. New elements should go to the end because otherwise they will break restoring sorting keys from vifminfo files.
  2. Compile errors will show arrays/switches that need an update (with -Werror, just configure as ./configure --enable-developer ...).
  3. Note that order in sorting dialog differs from enumeration values and is mapped to them via indexes indirection array in modes/dialogs/sort_dialog.c.