Skip to content
New issue

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

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

Already on GitHub? # to your account

[CLOSED] Command-Shift-Arrow Selects Entire Line in Word Wrap Mode #3697

Open
core-ai-bot opened this issue Aug 29, 2021 · 10 comments
Open

[CLOSED] Command-Shift-Arrow Selects Entire Line in Word Wrap Mode #3697

core-ai-bot opened this issue Aug 29, 2021 · 10 comments

Comments

@core-ai-bot
Copy link
Member

Issue by ryanstewart
Wednesday May 22, 2013 at 08:44 GMT
Originally opened as adobe/brackets#3963


With a long line of text that causes word wrap to push the text to the next line when you use the Command-Shift-Left Arrow shortcut it selects the entire word-wrapped line. In Sublime Text and Text Edit that command only selects the text to the first column of that word wrapped line.

Result in Brackets when pushing Command-Shift-Left Arrow:

screenshot_5_22_13_1_41_am

Result in Sublime Text when pushing Command-Shift-Left Arrow:

screenshot_5_22_13_1_44_am

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday May 23, 2013 at 18:03 GMT


Same issue with Home & End -- CodeMirror goes to start of entire line, other editors go to start of wrapped line segment...

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Thursday May 23, 2013 at 18:52 GMT


File a CodeMirror issue codemirror/codemirror5#1544.

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Friday May 24, 2013 at 14:39 GMT


Remove "tracking" label since Marijn said that it is by design. But we can fix it by binding Home/End (Cmd-Left/Right) to "goLineLeft"/"goLineRight" (instead of the default "goLineStart"/"goLineEnd") on our end.

@core-ai-bot
Copy link
Member Author

Comment by ryanstewart
Friday May 24, 2013 at 16:13 GMT


Thanks@RaymondLim. This might not be something we want to fix, but it seems like it deviates enough from the other editors we compare Brackets to that it would be worth looking into. Is that a starter bug/feature level of complexity do you think?

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Friday May 24, 2013 at 16:17 GMT


Yes, it is definitely a starter bug. Just have to make sure that all the different keys (on Windows and Mac) are remapped for CodeMirror keymap.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Friday May 24, 2013 at 17:38 GMT


We should do some careful testing a/o code inspection though, to make sure switching commands doesn't change any other aspects of the Home/End behavior (for example, smart home?).

@core-ai-bot
Copy link
Member Author

Comment by njx
Monday Jun 03, 2013 at 18:45 GMT


Reviewed. Low priority, to@RaymondLim. Should figure out what the correct behavior is on Windows.

@core-ai-bot
Copy link
Member Author

Comment by pthiess
Monday Jun 03, 2013 at 18:46 GMT


@RaymondLim , low priority

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Saturday Jul 19, 2014 at 00:36 GMT


My comment about smart home above turned out to indeed be a problem. I've pinged Marijn to see if he has any suggestions for a clean way of getting both behaviors together... (Otherwise we'd have to duplicate ~10-20 lines of CM code into Editor).

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Wednesday Sep 17, 2014 at 18:02 GMT


Confirmed fixed on Win and Mac.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant