zedapp / zed

Rethinking code editing.
http://zedapp.org
MIT License
2.22k stars 162 forks source link

In vim keybinding, `^` and `I` is not correct #478

Closed farnoy closed 9 years ago

farnoy commented 9 years ago

It depends where the cursor is on the line.

Example (^ is the cursor):

  some indented text
^

Pressing ^ or I now will move to the first non-blank character of the line, which is the same as in Vim:

  some indented text
  ^

Repeating it again will move to the first character of the line:

  some indented text
^

Source: http://vimdoc.sourceforge.net/htmldoc/motion.html#^

Is this a bug in Ace, or Zed?

zefhemel commented 9 years ago

It's a bug in ACE, can you report it there?

farnoy commented 9 years ago

I'll close this then, thanks.

farnoy commented 9 years ago

This bug was fixed in the new version of Ace, can we update it in Zed?

farnoy commented 9 years ago

hmm, I see you've already updated it, https://github.com/zedapp/zed/commit/94a15f6bb3d6d6309c6f7874cbc7fbf0aec306b1, I'll check if it works.

farnoy commented 9 years ago

yup, all is well, I'll just use the locally built version until a new one hits the chrome webstore. Thanks!