diff options
Allow undefined actions in keys configuration file
In the keys file there are three possibilities for each action:
1. One or several keys are assigned to it
2. It is marked as UNDEFINED (new)
3. It is missing from the file
On load of the keys file, calcurse respectively
1. Assigns the key(s)
2. Assigns "UNDEFINED" (new)
3. Assigns a default key if possible
If default keys were assigned, the user is informed of the number of
actions affected, and the keys file is updated.
After load each action must either have keys assigned or be undefined.
If not, calcurse exits with a failure. If there are syntax/semantic
errors in the file, calcurse rejects the file and exits.
When an interactive user leaves the keys configuration menu, a warning
is issued if any action is UNDEFINED. The keys file is always updated.
Addresses GitHub issue #298.
Additionally: Description of concepts and data structures used for
keyboard keys and virtual keys (actions) as well as name changes and
comments to improve readability.
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to '%2525252525252525252525252525253fid%2525252525252525252525252525253de3fc73e0c76addc0893ad3ceeba7ef8442133a51%25252525252525252525252525253fid%25252525252525252525252525253de3fc73e0c76addc0893ad3ceeba7ef8442133a51&id2%25252525252525252525252525253d61ed5f835cae29ce6405ec34a7e310d5ea90327b%252525252525252525252525253fid%252525252525252525252525253de3fc73e0c76addc0893ad3ceeba7ef8442133a51&id2%252525252525252525252525253d61ed5f835cae29ce6405ec34a7e310d5ea90327b%2525252525252525252525253fid%2525252525252525252525253de3fc73e0c76addc0893ad3ceeba7ef8442133a51&id2%2525252525252525252525253d61ed5f835cae29ce6405ec34a7e310d5ea90327b%25252525252525252525253fid%25252525252525252525253de3fc73e0c76addc0893ad3ceeba7ef8442133a51%252525252525252525253fid%252525252525252525253de3fc73e0c76addc0893ad3ceeba7ef8442133a51%2525252525252525253fid%2525252525252525253d61ed5f835cae29ce6405ec34a7e310d5ea90327b%25252525252525253fid%25252525252525253d31b3a5390bf7b8bfb6271f22703ccd022a8b538f%252525252525253fid%252525252525253d31b3a5390bf7b8bfb6271f22703ccd022a8b538f%2525252525253fid%2525252525253d31b3a5390bf7b8bfb6271f22703ccd022a8b538f&id2%2525252525253da49adf2db7cfb3e4b12fed948c76205a42f334cd%25252525253fid%25252525253d31b3a5390bf7b8bfb6271f22703ccd022a8b538f&id2%25252525253da49adf2db7cfb3e4b12fed948c76205a42f334cd%252525253fid%252525253d31b3a5390bf7b8bfb6271f22703ccd022a8b538f%2525253fid%2525253da49adf2db7cfb3e4b12fed948c76205a42f334cd%25253fid%25253da49adf2db7cfb3e4b12fed948c76205a42f334cd%253fid%253d9b148900b87b113bc9f30033eff30865a3b43086%3fid%3d338c640a19013152c90776494b3adf29a69de4a3?id=338c640a19013152c90776494b3adf29a69de4a3')
0 files changed, 0 insertions, 0 deletions