You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cursor does not go to the end of line when pressing "End" with word wrap enabled #19644
editor-coreEditor basic functionalityfeature-requestRequest for new features or functionalitygood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunities
Clément Michard (@clemtoy)
It seems like different editors have their own way to deal with this situation.
I just tested this behavior in Visual Studio 2015 Community, and the result is same as in VSCode.
I am currently looking at this issue and trying to change the behavior of the end button.
However, I think it is important to understand the opinion from the VSCode team as flowmemo (@flowmemo) has mentioned. Is the opinion from the VSCode team equal with what Clément Michard (@clemtoy) suggests?
Clément Michard (@clemtoy)Soo Jae Hwang (@misoguy) thanks for your continuous input on this. I can see reasons that why going to the start/end of both line and screen line is necessary. So instead of raising other users' concern, I prefer the second proposal: double press Home/End.
Reacted by Alexandru Dima, Clément Michard, Soo Jae Hwang, flowmemo and Kim Christensen
Peng Lyu (@rebornix) It's been a while since this code has been implemented and added to the PR #21338. It'd be nice to get some kind of feedback when you get the chance :) Thanks!
Peng Lyu (@rebornix) Thanks for the comments! I'll see what I can do about them.
For the comment on navigating between view parts, that was a minor bug in the code and I had them fixed before being merged :) It should be consistent now.
BTW, I think it's best that you submit the reviews by clicking the Finish your review button seen on the screenshot :) So that I can see them on github and reply to the comments directly.
Peng Lyu (@rebornix) No problem~ I was working on another issue and didn't really have the time to take a second look at it anyways :) I'll try get on the comments for #21338 this week~
Currently when you press Home at the first non whitespace column of a line which has indentation, it goes to the beginning of a line(column 0).
Should this behavior be kept?
(If it should be kept situation 2, which is the multi cursor mode will look more complex)
multi cursor mode. Home command
multi cursor in different file lines with different indentation.
Should all the cursors go to the first non whitespace?
multi cursor in different wrapped lines of a file line.
Should all the cursors go to the first non whitespace of the file line or the wrapped line?
End command also has the same issue just vice versa.
I'm not sure if this explanation is enough to understand...Please comment for further explanation :)
Sublime Text on my macOS works as follows with wrapped lines:
cmd+right -> end of wrapped line
cmd+right x2 -> end of line
cmd+left -> first character of wrapped line
cmd+right x2 -> first character of line
cmd+right x3 -> column 0
ctrl+E -> end of line
ctrl+A -> column 0
I would like to be able to set up my keybindings so that I can use it the same way. Note: ctrl+E/A are basically system wide on macOS, except for some programs (such as VSCode)
editor-coreEditor basic functionalityfeature-requestRequest for new features or functionalitygood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunities
Activity
rebornix commentedon Feb 1, 2017
We have defined a bunch of target positions for
cursorMovecommand as belowApparently we should add
lineEndandlineStartas well. A good contribution candidate for beginners.flowmemo commentedon Feb 13, 2017
It seems like #15121 reported a similar issue.
So, what is the expected behavior of 'Home' and 'End' with word-wrap?
clemtoy commentedon Feb 14, 2017
flowmemo (@flowmemo)
At least:
Better (as Sublime Text does):
flowmemo commentedon Feb 14, 2017
Clément Michard (@clemtoy)
It seems like different editors have their own way to deal with this situation.
I just tested this behavior in Visual Studio 2015 Community, and the result is same as in VSCode.
What is the opinion from VSCode team?
misoguy commentedon Feb 15, 2017
I am currently looking at this issue and trying to change the behavior of the end button.
However, I think it is important to understand the opinion from the VSCode team as flowmemo (@flowmemo) has mentioned. Is the opinion from the VSCode team equal with what Clément Michard (@clemtoy) suggests?
clemtoy commentedon Feb 21, 2017
Peng Lyu (@rebornix) What is your opinion?
rebornix commentedon Feb 21, 2017
Clément Michard (@clemtoy) Soo Jae Hwang (@misoguy) thanks for your continuous input on this. I can see reasons that why going to the start/end of both line and screen line is necessary. So instead of raising other users' concern, I prefer the second proposal: double press Home/End.
2 remaining items
misoguy commentedon Mar 14, 2017
Peng Lyu (@rebornix) It's been a while since this code has been implemented and added to the PR #21338. It'd be nice to get some kind of feedback when you get the chance :) Thanks!
rebornix commentedon Mar 14, 2017
Soo Jae Hwang (@misoguy) I left comments there but seems you didn't see it :) https://github.com/Microsoft/vscode/pull/21338/files#r103243328
BTW, did you have a test on #22005 (comment) as well?
misoguy commentedon Mar 15, 2017
Peng Lyu (@rebornix) That's wierd...because I can't find any comment at https://github.com/Microsoft/vscode/pull/21338/files#r103243328
Could you check it one more time and make sure that your review has been submitted?
Regarding the test, do you mean the test code for
editorStacksModel? If so, it is implemented as commit 039a54drebornix commentedon Mar 15, 2017
It's about
invokeAll, we need to support multiple cursors :)See above screenshot :)
misoguy commentedon Mar 16, 2017
Peng Lyu (@rebornix) Thanks for the comments! I'll see what I can do about them.
For the comment on navigating between view parts, that was a minor bug in the code and I had them fixed before being merged :) It should be consistent now.
BTW, I think it's best that you submit the reviews by clicking the
Finish your reviewbutton seen on the screenshot :) So that I can see them on github and reply to the comments directly.rebornix commentedon Mar 16, 2017
Sorry for making you wait for so long Soo Jae Hwang (@misoguy) now I finally know the difference between A Single Comment and Start a Review :(
misoguy commentedon Mar 20, 2017
Peng Lyu (@rebornix) No problem~ I was working on another issue and didn't really have the time to take a second look at it anyways :) I'll try get on the comments for #21338 this week~
misoguy commentedon Mar 20, 2017
Clément Michard (@clemtoy) Peng Lyu (@rebornix) flowmemo (@flowmemo) After implementing the changes to the behavior of
HomeandEndbutton commands, it seems to me that there are some type of different situations that should be clarified.Currently when you press
Homeat the first non whitespace column of a line which has indentation, it goes to the beginning of a line(column 0).Should this behavior be kept?
(If it should be kept situation 2, which is the multi cursor mode will look more complex)
multi cursor mode.
HomecommandShould all the cursors go to the first non whitespace?
Should all the cursors go to the first non whitespace of the file line or the wrapped line?
Endcommand also has the same issue just vice versa.I'm not sure if this explanation is enough to understand...Please comment for further explanation :)
marcushv commentedon Mar 30, 2017
Sublime Text on my macOS works as follows with wrapped lines:
I would like to be able to set up my keybindings so that I can use it the same way.
Note: ctrl+E/A are basically system wide on macOS, except for some programs (such as VSCode)
Have Ctrl+A go to line start on OSX (microsoft#19644)
clemtoy commentedon Jun 2, 2017
Thank you very much !