Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support easy re-arranging of folded blocks #49886

Closed
mhchem opened this issue May 15, 2018 · 5 comments
Closed

support easy re-arranging of folded blocks #49886

mhchem opened this issue May 15, 2018 · 5 comments
Assignees
Labels
editor-drag-and-drop Editor UI drag-and-drop operations feature-request Request for new features or functionality

Comments

@mhchem
Copy link

mhchem commented May 15, 2018

I want to be able to easily reorder the definitions in a file.
I get the best overview about the structure of my file when everything is folded.
So, I want to be able to reorder the definitions (of functions, classes, etc.) in a file when it is folded.

Example:

One can easily see the classes, interface, functions.

Now I want to rearrange them. This doesn't work.

If I select a folded function (2 lines) and want to move it with the keyboard, I can use 'Move Line Down' (Alt+ArrowDown), but that will not skip over folded blocks, but run into them.

If I try to move the selected block by mouse (drag&drop), the folding gets lost.

Same for the clipboard (cut&paste).

I don't see a single way to do what I want.

@vscodebot
Copy link

vscodebot bot commented May 15, 2018

@vscodebot vscodebot bot added editor editor-contrib Editor collection of extras labels May 15, 2018
@aeschli aeschli changed the title [Folding] Support easy re-arranging of folded blocks [folding] support easy re-arranging of folded blocks May 28, 2018
@aeschli aeschli changed the title [folding] support easy re-arranging of folded blocks support easy re-arranging of folded blocks May 28, 2018
@aeschli aeschli assigned rebornix and unassigned aeschli May 28, 2018
@rebornix rebornix added the feature-request Request for new features or functionality label Sep 5, 2018
@rebornix rebornix removed their assignment Sep 5, 2018
@rebornix rebornix added editor-drag-and-drop Editor UI drag-and-drop operations and removed editor-contrib Editor collection of extras labels Oct 24, 2019
@rebornix rebornix added this to the Backlog milestone Oct 24, 2019
@HerbCaudill
Copy link

+1 to this request.

In general, there are a number of user gestures that apply to a single line. When the line in question is the head of a folded area, these apply to the first line of the folded area, which I'm pretty sure is never what anyone wants.

rearrange-folded-vscode

It would be great if all of these applied to the entire folded area, instead of just to the first line:

  • Triple-click to select an entire line
  • Ctrl-X, Ctrl-C, or Ctrl-L to cut, copy, or clear the line the cursor is in (with nothing selected)
  • Alt-Up and Alt-Down to move the current line up or down (with nothing selected)

@rebornix rebornix self-assigned this Nov 2, 2020
@rebornix rebornix modified the milestones: Backlog, Backlog Candidates Nov 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Feb 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-drag-and-drop Editor UI drag-and-drop operations feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

6 participants
@rebornix @HerbCaudill @alexdima @aeschli @mhchem and others