silverbulletmd / silverbullet

The knowledge tinkerer's notebook
https://silverbullet.md
MIT License
2.35k stars 169 forks source link

Allow parameter for `Page Picker` when creating a shortcut #782

Open bilogic opened 7 months ago

bilogic commented 7 months ago
- command: "{[Navigate: Page Picker]("Inbox/")}"
  key: "Ctrl-q"

I want to list out all pages starting with Inbox/, instead of having to type Inbox/ everytime after pressing ctrl+q.

Possible to add this feature? Thank you.

zefhemel commented 7 months ago

I think this should work already if you don't use double quotes inside double quotes, so e.g.:


- command: '{[Navigate: Page Picker]("Inbox/")}'
  key: "Ctrl-q"
bilogic commented 7 months ago

Yes, no more syntax error, but it has no effect, the Inbox/ "filter" was not applied. I'm expecting the Inbox/ to already be typed in, ready for me to just select using up/down arrow keys.

image

Another issue: ctrl-q could not be captured, I had to use ctrl+2 to test, this would be odd because even ctrl+n can be captured. I have checked that none of my Chrome extensions are in the way. I will file another issue for this

zefhemel commented 7 months ago

Ah sorry, yeah no it doesn't do that (yet).