Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Selecting text with option + shift + arrow behaves differently to other Mac apps #6485

Closed

Description

@gregplaysguitar

Atom doesn't seem to follow Mac convention in certain cases. To reproduce:

  1. Double click to highlight a word
  2. Option + shift + left arrow
  • In other apps, both words are now selected.
  • In atom, the selection is cleared and the cursor is now at the start of the original word.

Similarly, if the 2. is replaced with command + shift + left arrow, in Atom the extended selection doesn't include the originally selected word as it would in other apps.

(This is clearly a minor issue; but it's frustrating if you're used to this pattern. Atom is fantastic overall!)

Activity

  1. gregplaysguitar commented on Apr 23, 2015

    @gregplaysguitar
    Author

    On further thought, I think the underlying issue is that when you add to a selection on other Mac editors, it's always assumed that the selection should get bigger not smaller. Atom assumes the cursor is at the start of the selection though, so if trying to select text before the original selection, the original selection disappears. Another manifestation:

    1. Triple click a line (or hit ⌘ + l)
    2. Shift + up arrow
    • In other apps, two lines are now selected - the original and the one above
    • In Atom, nothing is selected, and the cursor is at the start of the originally selected line
  2. added and removed on Apr 23, 2015
  3. added
    mac
    and removed
    mac
    on Apr 23, 2015
  4. izuzak commented on Jul 30, 2015

    @izuzak
    Contributor

    Just wanted to mention that there's a similar discussion about this over at #6928 (comment) (issue which I just closed in favor of this one).

  5. nathansobo commented on Jul 30, 2015

    @nathansobo
    Contributor

    I'll add this to the quality initiative. Selection behavior should conform to expectations. We also have some subtle differences when double-click-dragging between words.

  6. added
    mac
    on Aug 18, 2016
  7. stale commented on Aug 29, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  8. bronson commented on Sep 12, 2017

    @bronson

    That's too bad. This really does seem like something that should be fixed.

  9. nathanielperales commented on Oct 3, 2017

    @nathanielperales

    I second this issue. I use alt + shift + left arrow & right arrow all the time to extend the selection by word. I definitely think this should be fixed. Or maybe someone can explain how to enable this in the settings or create a plugin. Thanks!

  10. chrisjshull commented on Jan 27, 2018

    @chrisjshull
    Contributor

    Triple-clicking and "Select Line" also work "incorrectly" for a Mac app. For both, the selection should not include the newline char at the end of the line (cursor should be at the very end of the selected line).
    (Would it be better to file a separate ticket, or lump Mac selection bugs together here?)

  11. bronson commented on Feb 14, 2018

    @bronson

    triple-clicking sounds like a separate issue.

  12. stale commented on Feb 14, 2019

    @stale

    Thanks for your contribution!

    This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:

    1. Verify that you can still reproduce the issue in the latest version of Atom
    2. Comment that the issue is still reproducible and include:
      • What version of Atom you reproduced the issue on
      • What OS and version you reproduced the issue on
      • What steps you followed to reproduce the issue

    Issues that are labeled as triaged will not be automatically marked as stale.

  13. brettz9 commented on Feb 28, 2019

    @brettz9

    This issue is really big for Mac users--being able to select whole words at a time (without the whole line) is very useful...

  14. lock commented on Aug 27, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  15. locked as resolved and limited conversation to collaborators on Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmacstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions