Open roblourens opened 1 year ago
Can I submit a PR for this issue?
@weartist I think this requires more thoughts on how these commands should work.
@jrieken I know you do something similar with the inline chat, maybe I should copy your solution
I think first there should be simple commands that replicate the UI button actions:
"Fold unchanged region"
, same as the button at the top of the region"Expand next folded region"
and "Expand previous folded region"
, same as the "Show all" buttonThen, maybe this combined with context keys can achieve the keybind CTRL+up/down
suggested. For example "isAboveCollapsedRegion"
when the next line is collapsed.
On top of that there could be a command to expand/collapse line by line instead of the whole region. So you could hold/tap CTRL+up/down
to expand a few lines like you can do now with dragging.
Expand/fold all command requested at https://github.com/microsoft/vscode/issues/188416 already with a PR
Testing #186213
I've noticed that if I use cmd+down/up, it will unfold that region and move the cursor in. I can't find any other keyboard shortcuts for it and the commands don't show up in the command palette. Just one option that comes to mind