obsidian-task-collector icon indicating copy to clipboard operation
obsidian-task-collector copied to clipboard

[Feature Request] Cycle workflow with keyboard hotkey

Open rapatel0 opened this issue 2 years ago • 2 comments

Feature description

In my normal workflow, i would like to be able to quickly cycle through a sequence of checkbox types to quickly assign status of a checkbox.

As an example, I might want a workflow sequence with:

- [ ] (status not done /empty )
- [/] (In process / incomplete)
- [s] (scheduled}
- [w] (waiting) 
- [x] (done)

Hitting ctrl-enter four times would.

  1. Convert the line to a checkbox (with empty status)
  2. Switch to [/] Incomplete status
  3. Switch to [s] scheduled status
  4. Switch to [w] waiting status

Feature Configuration

  • settings field with a configurable sequence of checkbox characters.
  • configurable hotkey with ctrl-enter as default to advance sequence (go from empty to incomplete)
  • configurable hotkey with shift-enter as default to reverse sequence (go from scheduled to incomplete)

rapatel0 avatar Oct 18 '22 01:10 rapatel0

if you set a hotkey for Marking a Task ... you can just use a keystroke to specify what you want (with no cycle). The modal pops up, but keyboard input is fine.. you don't have to click anything.

Your example above could be:

  1. Convert to checkbox
  2. Ctrl-Shift-Enter (Mark Task)
  3. /

OR

  1. Convert to checkbox
  2. Ctrl-Shift-Enter (Mark Task)
  3. s

ebullient avatar Oct 18 '22 13:10 ebullient

Yeah, I know. I'm currently using that, but it's a bit clunky as a workflow. I want to enforce the progression from one status to another status. Going from in progress to waiting for example.

It would be a lot easier and faster to just hold down the CTRL button and then hit enter 3x. And if one makes a mistake, just hit shift enter a few times.

I could write a custom script to do this but it's just seems to be a natural feature for this plugin.

rapatel0 avatar Oct 18 '22 21:10 rapatel0

This was implemented as another plugin https://github.com/thingnotok/obsidian-toggle-list

@ebullient I think we can close this

rapatel0 avatar Nov 01 '22 00:11 rapatel0

This is included in the 1.0 release (BRAT at the moment)

ebullient avatar Jan 12 '23 16:01 ebullient