Managing entries
Navigating amongst entries
The arrow keys will move you amongst the entries in the tree, you may also start typing the name of a entry that exist on the current level, and hnb will take you to the entry that matches what you've typed, pressing tab twice will enter the sub-level of the current entry, this behavior is modeled after the name completion in Unix shells.
PageUp/PageDown will skip a large amount of entries up and down.
Home will bring you to the 'root' (the first entry) of the tree.
Searching
^F will ask you for a search term, you may thereafter navigate amongst the occurrences of the search term with up/down n/p, pressing space or return will make you stop where you found the substring, ESC will bring you back to where you started the search.
Moving entries
You can move entries either by pressing shift and using the arrow keys, the entry will then move within the constraints of the hierarchical structure.
You can also move entries by cutting and pasting a entry, this has much of the same effect, cut is instantiated with ^C and the paste command is ^V
Adding entries
Pressing insert will add a new entry below the current. You will also immediately enter edit mode.
You may also exploit the fact that searching by keyboard for a entry that doesn't exist, and pressing enter, will create the entry name that you entered.
Deleting entries
If you press delete the current entry will be deleted, if it has children you will be asked to confirm the action.
Cutting can also be used to remove data, no confirmation will be asked whether you want to fulfill you action or not, but the data will be available from the clipboard.
Indenting and Outdenting entries
> will move the current entry and all the following entries of the same level to be children of the preceding entry.
< will move the current entry and all the following entries of the same level to follow the parent of the preceding entry.
Expanding and Collapsing entries
expanding
pressing '+' on a entry with sub entries will display the sub entries even when you're not within them, thus displaying a larger portion of the tree.
collapsing
Pressing '-' has the opposite effect of '+' it hides the expanded entries
operations working on the whole outline
pressing F10 brings up the user menu,.. a menu where miscellany commands that don't fit anywhere else are added,.. here you may expand or collapse all entries in the current tree.
Editing entries
Pressing Return will start editing the current entry, now the cursor keys move between the characters of the data in the entry instead amongst the entries
(most) Default editing shortcuts
Splitting entries
When editing a entry you may press ^S, the entry being edited will be split in the current position. The data to the left of the cursor will be retained in the current entry, whilst the remaining data will be inserted in a new entry below.
Joining entries
Pressing ^J whilst editing a entry will join the following entry, (as long as it doesn't have sub-nodes) will merge the data in; at the end of the entry being edited.
Spell-checking
By default hnb is configured to use ispell for spell-checking.
Pressing F6 will spell-check the current entry
Ispell will start and guide you through the unmatched words in the current entry.
Thereafter you can press space to spell check the next entry, escape to cancel the changes or return to accept the changes made.