enh: add a function to add a task to the beginning/end of the current file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TKDO |
Confirmed
|
Medium
|
Unassigned |
Bug Description
It would be useful to be able to quickly add a task to the top or bottom of the current task file. I've been doing this through a sort of kludgy method, but it needs to be an actual feature.
The way I've been doing this is:
- Put a task at the top of each file called '...'
- When I want to add a task to the top, I'll press Enter (zoom) then '/...', then 'o' to add a task.
- Then I remove the filters (Escape) and navigate down to the new task.
The new function should do this in a single keypress.
Also, the "add at bottom" function (if any) should go only to the line below the final task, not to the actual bottom of the file. Any notes or comments at the bottom should remain at the bottom.
This should probably also allow adding to the top/bottom of the current branch... so, instead of a single hotkey, perhaps it should be a key sequence:
- a key to initiate the action, possibly followed by a key to indicate [t]op or [b]ottom
- a key to specify [f]ile or [p]arent (or maybe [b]ranch)
- and then the UI allows the user to enter a title.
I'm not sure whether the first key should also specify top/bottom. It would be nice to use 2 keys instead of 3, but that would require allocating two top-level key bindings instead of just one.