standardnotes / simple-task-editor

[Moved to https://github.com/standardnotes/app]
GNU Affero General Public License v3.0
11 stars 20 forks source link

Feature request: navigate tasks with arrow keys #3

Open karldw opened 6 years ago

karldw commented 6 years ago

Would it be possible to navigate through tasks with the arrow keys?

Current behavior: up and down arrows act the same as Home or End keys, moving the cursor within the currently selected task. Desired behavior: up and down arrows switch between different tasks.

moughxyz commented 6 years ago

Hmm interesting. I think that could make sense. It can be just a little bit confusing if you have a multiline task and want to navigate within it, but perhaps that's not as common a use case.

karldw commented 6 years ago

Another alternative would be for arrow keys to navigate within multiline tasks until you reach the last line of the task. Once you're in the last line, the next arrow press would take you to a different task.

Other things that surprised me with the task list extension:

I'm not sure you want all of these behaviors, but maybe they're worth considering.

moughxyz commented 6 years ago

Enter doesn't create a new task

Do you mean while you're inside the editor? True. The only way to create a new task is to use the input box and then press enter.

Backspace or Delete in an empty task don't delete the task

If you delete all the text in a task, then press enter, it should delete.

karldw commented 6 years ago

Ah! Cool, thanks. One other thing, the only way I can see to reorder tasks is to leave the task editor, edit the plaintext, and re-enter the task editor. Am I missing something?

moughxyz commented 6 years ago

Yup, you can reorder tasks by dragging from the checkbox :)

triangulum commented 5 years ago

Interestingly, I cannot reorder tasks on Linux... Works fine on macOS.

bryvin commented 5 years ago

@triangulum That is really odd. I am also on Linux and have just successfully re-ordered some of my tasks right now while testing.

Can you maybe try selecting the area directly around the checkbox and not exactly on the checkbox? Which distro are you using?

triangulum commented 5 years ago

@bryvin The area initially selected doesn't appear to make a difference - the results are the same as above. I'm running CentOS Linux release 7.5.1804 (Core).

I also appear to have a bunch of Dropped Text files on ~/Desktop that contain the contents of the tasks that were attempted to be reordered (ie. things like Task 1, Task 2 and so on).

But after killing and restarting the app, the bug has disappeared and the standard functionality is working again...

Also, does the iOS app support reordering of tasks too?

moughxyz commented 5 years ago

The iOS app doesn't support reordering due to gesture conflicts. Remains to be seen whether we can solve that one.