forked from jonas/tig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to add comments into help view [jonas#809]
1. keys.h Add a run_request.help field, analogous to the req_info.help field. 2. options.h Add a parameter to set_option() for passing any comment text. 3. options.c a. read_option() Identify any #comment text string that may have accompanied an option command, and pass it into set_option(). The #comment text string is trimmed of any white space. b. set_option() set_option() dispatches to specific bind commands. Pass any given comment text into the option_bind_command(), and ignore comment text for the other bind commands. c. option_bind_command() Pass comment text into add_run_request(). d. read_repo_config_option() Specify the option command to use with "color", "bind", or "set" names instead of specific function names. e. set_repo_config_option() Refactor to call set_option(), the dispatcher for specific bind commands, and call with comment text pointer set to NULL, because comment text is never available from a repo configuration file. 4. prompt.c a. run_prompt_command() Call set_option() with comment text pointer set to NULL, because comment text is not parsed on a prompt line. 5. keys.c a. add_run_request() Duplicate comment text into the new run_request.help field. 6. help.c a. help_draw() Draw the run_request.help text using draw_text(), analogous to drawing req_info.help.
- Loading branch information
1 parent
36ced9a
commit 134547d
Showing
6 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters