Streamline interface and add menus #219
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Right now, hitting tab when in the search box sends the focus first to the "CS" checkbox, then to the search-style dropdown, then to the sort-by dropdown, then to the "pinned" checkbox, then to the add-tags tool—and only then to the selected note.
Hitting shift+tab sends the user backwards along the same long path.
All these stops along the way in the tab order are rarely used options that keep the user from quickly tabbing between the search box and the selected note.
These rarely used options also contribute to nvPY's alleged ugliness by cluttering up the interface, contrary to the spirit of the original Notational Velocity.
Therefore, this pull request creates a streamline_interface option that can be set in .nvpy.cfg.
It defaults to false, but when set to be true, it prevents the "CS" checkbox, the search-style dropdown, the sort-by dropdown, the "pinned" checkbox, and the add-tags tool all from being rendered. This takes those options out of the tab order and allows the user to quickly tab between the search box and the selected note. Having this option will be appealing to a user who doesn't use those features.
Additionally, this pull request creates a new "Note" menu (to allow the user to set a note as being pinned) and a "Search" menu (to allow the user to set the search mode options).
Thank you for considering these changes.