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

FR - Delete block shortcut #89

Open
paulochang opened this issue Dec 28, 2023 · 4 comments
Open

FR - Delete block shortcut #89

paulochang opened this issue Dec 28, 2023 · 4 comments

Comments

@paulochang
Copy link

paulochang commented Dec 28, 2023

Currently I use ⌘ + Down / Up to navigate to a block (although the cursor positioning is a bit weird)
Then ⌘ + A to select it then Delete to delete it.

Is it difficult to add a shortcut say... ⌘ + D to remove a block?

This along with the block navigation mode would make it easier to use. If you can point me out to the shortcuts code I might even be able to do it myself.

Thanks for the app! Loving it!

Edit: I just found out the clues I needed on #85 so I might be able to do a PR shortly. Feel free to comment here if you have any thoughts.

@heyman
Copy link
Owner

heyman commented Dec 28, 2023

Personally, I delete the current block by pressing ⌘-A Backspace Backspace, though I don't do it very often since I mostly just keep adding new blocks at the bottom. However, I can see it being a useful key binding if you often delete blocks.

⌘/Ctrl + D is already bound to selectNextOccurence which creates an additional selection of the next occurrence of the current selection, so it would have to be some other default key binding.

The question is also where the cursor should go when a block is deleted. At the end of the previous block perhaps? Unless it was the first block that was deleted, in that case maybe at the start of the next block (the new start block)?

@ubuntudroid
Copy link

I'd really love to have that as I like my scratchpad to only show currently relevant things - I'm a fan of inbox zero. 😅 The suggestions for text cursor placement after deletion absolutely make sense to me.

Looking forward to seeing this in heynote at some point!

@heyman
Copy link
Owner

heyman commented Jan 25, 2024

Heh, I gave up on inbox zero many years ago 😅
image

I think this feature makes sense, especially once we have custom key bindings in place.

@hanoii
Copy link
Contributor

hanoii commented Apr 8, 2024

I'd love/need this as well:

Personally, I delete the current block by pressing ⌘-A Backspace Backspace, though I don't do it very often since I mostly just keep adding new blocks at the bottom. However, I can see it being a useful key binding if you often delete blocks.

I tried this, but it dosen't work if the block is the topmost. I generally add a new block in the top when I want to do a small temporary note, a quiclist or something, and then removing it is cumbersone. If I backspace from the previous block I lost the formatting on the second block (it becomes the formatting of the first).

CMD+Backspace is probably a good shortcut and you can undo it with CMD+Z as it is currently

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

4 participants