Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Cltr+Shift+Up/Down awareness of checkbox list indentation / nested items #3193

Open
dandv opened this issue Dec 29, 2024 · 1 comment

Comments

@dandv
Copy link
Contributor

dandv commented Dec 29, 2024

Is your feature request related to a problem? Please describe.

I use hierarchical checkbox lists, like so:

- [ ] Make breakfast
- [ ] Clean house|  <-- cursor location 1
    - [ ] Clean bedroom
    - [ ] Clean kitchen
    - [ ] Clean living room
- [ ] Go for a run|  <-- cursor location 2

Let's say my caret is a location 1 and I want to move the whole "Clean the house" tree before "Make breakfast" (to reward myself with food after I finish that task :).

Describe the solution you'd like

Ctrl+Shift+Up on - [ ] Clean house will break up the hierarchy, and the list will look like this:

- [ ] Clean house|  <-- cursor location 1
- [ ] Make breakfast
    - [ ] Clean bedroom
    - [ ] Clean kitchen
    - [ ] Clean living room
- [ ] Go for a run|  <-- cursor location 2

Similarly, if I press Ctrl+Shift+Up at cursor location 2, I'd like - [ ] Go for a run to land before - [ ] Make breakfast. But what happens is:

- [ ] Clean house
- [ ] Make breakfast
    - [ ] Clean bedroom
    - [ ] Clean kitchen
- [ ] Go for a run|  <-- cursor location 2
    - [ ] Clean living room

Describe alternatives you've considered

Use an actual TODO list application like MyLifeOrganized, which has hierarchical awareness when moving items.

Additional context

Would be nice if dragging checkbox items with the mouse was also aware of hierarchies.

@pbek
Copy link
Owner

pbek commented Dec 29, 2024

Are we talking about moving a whole selection, or just at a cursor position?
What happens with checkbox lists in code blocks?

Wouldn't it be easier to just jump to the beginning of the line, then move the line up or down and press Tab / Shift-Tab to adjust the indent?

Use an actual TODO list application like MyLifeOrganized, which has hierarchical awareness when moving items.

But they have an actual TreeView, not a text editor, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants