Skip to content

Start selection from padding #5626

Closed

Description

Description of the new feature/enhancement

This is just a minor UX issue, but I'd intuitively expect that text selection is also possible if I start dragging with mouse from the padding (i.e. the margin between the content and window border). Were it possible, it would also make selection from the beginning of a line much easier.

In most of the text editors starting to drag from the left padding also selects full lines. That is maybe not needed in a terminal, but it's perhaps still something to consider, whether it'd be beneficial and expected. Most of those work so that the selection stays in the full line mode even if you drag onto the content area, but I also started to think whether it'd make sense in a terminal to only select full lines if the drag stays on the left padding, and select normally (last line is selected up to the mouse position) if the drag moves onto the content. In any case, this full-line selection from left padding is not as expected a functionality than the possibility to start normal selection from padding (any side of the padding).

Activity

  1. added
    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
    on Apr 28, 2020
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Apr 28, 2020
  3. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Apr 28, 2020
  4. zadjii-msft commented on Apr 28, 2020

    @zadjii-msft
    Member

    Wait I could have swore we fixed this with #4282/#4506 - Elmo Allén (@synchronos-t) what version of the Terminal are you using?

  5. added
    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    and removed
    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
    on Apr 28, 2020
  6. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Apr 28, 2020
  7. DHowett-MSFT commented on Apr 28, 2020

    @DHowett-MSFT
    Contributor

    So, this is part feature request part bug. There's the immediate bug ("I can't begin a selection if I start in the gutter"), and the request that gutter selection select the whole line like a word processor.

    Just tried in 0.9 (before any selection changes), and the gutter doesn't allow selection there either. The linked changes are for unfocused terminals -- this is about padding in a focused one, presumably.

    I'm going to take off NAF and triage this into "1.x"

  8. removed
    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to something
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Apr 28, 2020
  9. synchronos-t commented on Apr 29, 2020

    @synchronos-t
    Author

    Yes, sorry, should've provided the version number. Here they are, although I believe it doesn't matter that much any more. Yesterday I was using 0.11.1121.0 and now just updated to 0.11.1191.0. And yes, this was about selection in a focused terminal.

    I thought about it yesterday whether to file this as a bug report or a feature request, and wasn't sure which one would be more suitable. After all, even the first part is just an usability enhancement, not something that is clearly broken. Anyway, I'd be happy with just the first part fixed; the second was more like a food for thought that came to mind while thinking about the selection from padding.

    Anyway, good work with the Terminal so far!

  10. carlos-zamora commented on Jun 3, 2020

    @carlos-zamora

    Huh. So, if you click on the space created by the padding (defined by SwapChainPanel.Margin()), you do not activate the PointerPressed handler. But this space in the UI belongs to the SwapChainPanel (because, where else would it go?). Dustin L. Howett (@DHowett) would this be a bug to file on WinUI?

  11. DHowett commented on Jun 3, 2020

    @DHowett
    Member

    Margin applies outside a xaml element. Padding applies inside a xaml element. Consider: did we use the wrong one?

  12. ghost added
    In-PRThis issue has a related PR
    on Jun 4, 2020
  13. ghost closed this as completedin #6343on Jul 7, 2020
  14. ghost added a commit that references this issue on Jul 7, 2020
    63fbd9f
  15. ghost removed
    In-PRThis issue has a related PR
    on Jul 7, 2020
  16. ghost added
    Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
    on Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Issue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions