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

[CLOSED] Ctrl+right arrow skips too many tokens #665

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

[CLOSED] Ctrl+right arrow skips too many tokens #665

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

Comments

@core-ai-bot
Copy link
Member

Issue by peterflynn
Tuesday Apr 17, 2012 at 22:00 GMT
Originally opened as adobe/brackets#670


Start with this JS in Brackets:

function fn1() {
    myFunc("foo",bar);
}
obj.blah();
  1. Put the cursor at the beginning of the text
  2. Press ctrl+right arrow (or Mac, alt+right arrow) a few times

Result:
Sequence is: end of "myFunc" (before opening paren), end of "foo" (but before closing quote), end of "bar" (before closing paren)... and then skips to the end of "obj" (before the dot) on the next line

Expected:
In Sublime, the sequence is: end of "myFunc", start of "foo" (after opening quote), end of "foo", start of "bar" (after comma), end of "bar", end of line (after semicolon), start of next line (before curly brace), end of line (after curly brace), start of "obj", end of "obj" (before dot).

IntelliJ is the same.

Eclipse is the same (although by default it will also stop in the middle of "myFunc" due to the camelcasing).

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Tuesday Apr 17, 2012 at 22:04 GMT


Similar to #627, this isn't a huge glaring bug, but it makes navigating around via keyboard feel just subtly flaky in a hard-to-place way.

@core-ai-bot
Copy link
Member Author

Comment by njx
Tuesday Apr 24, 2012 at 17:54 GMT


QRB marking "to user story" for keyboard shortcut story.

@core-ai-bot
Copy link
Member Author

Comment by pthiess
Thursday May 10, 2012 at 01:47 GMT


Moved to Trello - Card 272

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Friday Mar 22, 2013 at 23:50 GMT


This was fixed in CodeMirror recently: codemirror/codemirror5@047e0f5.

See discussion thread for details: https://groups.google.com/d/msg/codemirror/WOoqlDuIbaY/1u4ugOukHOIJ.

The behavior is not quite as described above: in cases where a line contains only one word (or no word: blank, all whitespace, all non-word chars, etc.) it doesn't match Sublime and other editors. But it is much improved.

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

No branches or pull requests

1 participant