I have set the Move line up command to Alt + ↑ (same as in Visual Studio Code) and it is really useful for moving list items around.
Recently I needed to add more data to each entry and tried to use a table, it works but is quite clunky to be dragging rows around, luckily there is a Table: Move row up command. I set it to Alt + ↑ once more but that conflicts with the Move line up, and does not work.
Proposed solution
A new command for both Move line up and Table: Move row up, something like Move block up?
Allowing conflicting hotkeys, as a special case here, or just anywhere.
Current workaround
Using different modifiers for each action (eg. Alt and Ctrl)
Sorry for bumping, but I just stumbled upon this issue and wanted to add my current workarround. I set up a shortcut to switch to Source mode (Ctrl + Shift + E in my case) order the table as lines there and switch back. Hopefuly this wil be useful, before a proper solution is implemented.
I ran into this issue a week or so ago, but I just re-assigned to only use the line move variant. It works like a charm for table rows also in my experience.
So I just got that one hotkey set for moving a line up (or down).
Obsidian should fire both hotkey presses if they both set up on one keybind, why block it even. I’m pretty sure there are some other cases when one would wish to set two actions on the same hotkey. But this one in particular… I want it
Following hotkeys exist (have to be set manually):
Move line down/up: moves current line (with cursor) one down or up (corresponds Alt+Down/Up in VS Code)
Table: Move line down/up: moves current table row (with cursor) one down or up
A hotkeys for moving frontmatter properties down/up inside preview mode doesn’t exist yet. Also it’s not possible to have the same hotkeys for two different actions. So one has to use different hotkeys for Move line down and Table: Move line down (which doesn’t make sense).
Proposed solution
Just make two single hotkeys Move line down/up that universally move lines, table rows and frontmatter properties down/up (Keep it Simple, Stupid).
Current workaround
Setting multiple hotkeys for line moves and table moves
Altering to source code view in tables/frontmatter and moving line down/up with the current hotkey.
Move line up puts “this line” above “a”. It’s bound by the table row.
Move row up puts the entire cell above “2”. It’s bound by the table.
I prefer separate shortcuts to maintain these separate functions. A combined shortcut would have to choose one function over the other or require switching to source mode and/or multi-selecting lines.
I support the other part of your request. Commands with hotkeys to move properties up and down in the Properties interface would be nice.
That’s a very fair point! Then it would make more sense to fix this problem more generally via conditional hotkeys. These would allow full customization to personal preferences while at the same time maybe solving many similar feature requests.