GithubHelp home page GithubHelp logo

Vim Mode: Move Block up and down should enter insert mode AND move the block, instead of only entering insert mode about roam-toolkit HOT 4 OPEN

nicksettoon avatar nicksettoon commented on August 12, 2024
Vim Mode: Move Block up and down should enter insert mode AND move the block, instead of only entering insert mode

from roam-toolkit.

Comments (4)

tntmarket avatar tntmarket commented on August 12, 2024

Hmm, do they work when you're already in insert mode? The command just calls the native command+shift+arrow, which also doesn't move highlighted blocks.

We should probably make it so if you're in normal mode, it both enters and moves the block though

from roam-toolkit.

nicksettoon avatar nicksettoon commented on August 12, 2024

Hmm, do they work when you're already in insert mode? The command just calls the native command+shift+arrow, which also doesn't move highlighted blocks.

We should probably make it so if you're in normal mode, it both enters and moves the block though

Ok. When already in insert mode the commands do nothing. Also I don't think entering insert mode after moving the block is a good idea. Having the hotkey do one thing and one thing only is important I think. I would never use the insert mode after I move a block personally. In fact it would make me very annoyed.
Ideally, I would like to be able to move blocks like I do in vscode. I've got alt+h/j/k/l for moving left, down, up, and right respectively.

from roam-toolkit.

tntmarket avatar tntmarket commented on August 12, 2024

Does the native command+shift+arrow shortcut work for you when you turn off roam toolkit?

I agree that the shortcut should just move the block, not go into insert mode, and stay in normal mode.

It's just that the command+shift+arrow shortcut is the simplest way to shift blocks right now, and it can only be accessed while focused on a block. (Maybe we could simulate drag+drop with the mouse, but that'd be trickier to implement)

I previously tried to make the shortcut go

  • enter insert mode
  • shift block
  • exit insert mode

In succession, but this makes it laggy, especially when you want to shift blocks multiple times quickly.

from roam-toolkit.

nicksettoon avatar nicksettoon commented on August 12, 2024

yes! ctrl+shift+up does work. However, it has a weird quirk where when moving up, it moves the view port up, but when moving down it doesn't. It's really annoying especially to someone who likes the viewport to only change when I tell it to. That's a default roam thing right? So I don't expect you to be able to change it.

I find dragging and dropping with the mouse to be finicky, cause you've gotta drop it in the exact right spot to keep it at the same indent level, not move it one indent to the right under the block above.

any chance on getting hotkeys for indenting and outdenting tho? I'd love to have those on alt+h/l

from roam-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.