roam-unofficial / roam-toolkit

Roam force multiplier
MIT License
475 stars 43 forks source link

Vim mappings wishlist #95

Open Stvad opened 4 years ago

Stvad commented 4 years ago
Stvad commented 4 years ago
butterywombat commented 4 years ago

some ideas..

Mostly I've been too lazy to figure out how to get surfingkeys and this to work better together- think I'm mostly missing left sidebar nav and forward/back browser history nav :D

lkhphuc commented 4 years ago

+1 for making this work better with other vim-mapping extension. The people that are likely to use this features are likely installed an full-fledge vim-mapping extension such as Surfingkey or Vimium already.

Currently it doesn't work too well with each other, because of the overlapping normal mode and the override of Escape Key. I'm wondering if vim mode operate directly on Roam's native block-selection mode would be better than having a separate Normal mode as the current implementation?

Stvad commented 4 years ago

@lkhphuc for now what I do re Surfingkeys is unmap everything but a select number of mappings like https://gist.github.com/Stvad/02d3d40b08e9505c548e00bba05ccea0#file-surfingkeys_config-js-L185

neildurant commented 4 years ago

+1 for ctrl-o / ctrl-i jumplist style behaviour. It feels like the only essential thing missing is being able to jump back.

lkhphuc commented 4 years ago

@lkhphuc for now what I do re Surfingkeys is unmap everything but a select number of mappings like https://gist.github.com/Stvad/02d3d40b08e9505c548e00bba05ccea0#file-surfingkeys_config-js-L185

Hey thank for the link, especially for the Roam clickable stuffs. The workflow with SurfingKey is much better now. FWIW, because I use the horizontal layout in Roam, I keep the page scrolling functionality jkhl in SurfingKey and remap Roam-toolkit block movement using Shift+H/J/K/L.

unmapAllExcept([
    'f', 'F', '/', 'C', '?', 't', 'T', 'S', 'D', 
    'j', 'k', 'J', 'K', 'cs', 'cS',
], /roamresearch\.com/i);

Edit: SurfingKey scroll doesn't follow Block selection so I revert to normal i/j/k/l navigation.

lkhphuc commented 4 years ago

Toggle page expanded/collapsed in block references/query

Would be great to collapse block while inside the block as well, more like vim folding. Currently can only fold/unfold at the parent block.

Stvad commented 4 years ago

One thing I miss from Workflowy (I think) is "collapse to parent" - on repeat of the collapse shortcut it'd jump to parent and then collapse it.

Stvad commented 4 years ago

@neildurant @butterywombat what would ctrl-o/i do in this case? IMHO remapping browser back/forward does not seem too valuable..

alok commented 4 years ago
lkhphuc commented 4 years ago
* [ ]  delete block (possible with alt-k but i'd like a vim shortcut for it)

We already has dd for that, though it's not effective 100% of the time at the moment. Sometime press d bring me to insert mode.

* [ ]  duplicate block (same as above)

Already has y and k working as well.

* [ ]  `/` to open search bar (maybe even allow `n`/`N` to go through search results, though that is of less certain value)

Do you have SurfingKey, you can use it for this.

macintacos commented 4 years ago

Any chance there could be a mapping for "go to sibling"? For example, let's say I have the following:

- item 1
    - item 2
        - item 3
- item 4

and I have "item 4" selected, there's no easy way that I can see to go to "item 1" unless you manually go up up up to it (or use the mouse, which naturally we're trying to avoid 🙂).

That, and relative line number jumping would be 👨‍🍳 💋

Stvad commented 4 years ago

Open current block in zoomed in view/sidebar from normal mode. (Ctrl-o/Ctrl-shift-o in the insert mode)

Stvad commented 4 years ago

Click on page/references filter followed by autofocus of the search field in resulting window

Stvad commented 4 years ago

Open daily pages in Sidebar (should be possible by simulating Shift+click on "daily notes" now)

idr4n commented 4 years ago

Open current block in zoomed in view/sidebar from normal mode. (Ctrl-o/Ctrl-shift-o in the insert mode)

It would be great to have a mapping to zoom in and out but in normal mode.

boonshin commented 4 years ago

I look forward to using . to repeat the last command if that's possible.

the-nurk commented 3 years ago

I've got the following for general suggestions and I didn't know where to put them other than in the wishlist issue