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 request: Stop deletion at beginning of block #266

Open
brokosz opened this issue Sep 13, 2024 · 1 comment
Open

Feature request: Stop deletion at beginning of block #266

brokosz opened this issue Sep 13, 2024 · 1 comment

Comments

@brokosz
Copy link

brokosz commented Sep 13, 2024

Have you searched existing Github issues to see if someone has already requested this feature?
Yes

Is your feature request related to a problem? Please describe.
When holding in the delete key to delete a LOT of text in a block, it's easy to lose track of the cursor or get momentarily distracted and then all of a sudden you're deleting the contents of the previous block. If you have a LONG block and then several short blocks, it's easy to wipe it all out without noticing.

Describe the solution you'd like
When holding the delete key to text out of a block, it would be great that when the cursor reaches the beginning of the block it either stops and I have to let go of the key and re-engage to move to the previous block and keep deleting or if there was an interrupt (like a 0.7s pause) before the previous block begins deleting as well.

Describe alternatives you've considered
Not holding in delete? 😉 There's probably a behavior change (⌘ + A, del) I could do here, but the muscle memory is strong.

Additional context
Steps to recreate:

  1. add several blocks to the buffer
  2. go to the end of the bottom block
  3. hold in the delete key and watch everything get wiped out

Thanks for all the great work on this app!

@brokosz
Copy link
Author

brokosz commented Sep 13, 2024

Also I think this would very complimentary to block locking.

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

No branches or pull requests

1 participant