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

unify visual line handling #5803

Merged
merged 1 commit into from Jun 26, 2014
Merged

unify visual line handling #5803

merged 1 commit into from Jun 26, 2014

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented May 7, 2014

Extra change on top of @ivanov pr #5768 to have more consistent handling of visual lines.

In a long wrapped line End/Cmd-Right will go to the end of the visual line which seem more logical.
Cmd-Left beginning of line. I did note rebind Ctrl-Left because there is already custom logic in code mirror for "smart" beginning of line.

@minrk minrk added this to the 2.1 milestone May 7, 2014
@ivanov
Copy link
Member

ivanov commented May 7, 2014

my sense is that cell.js isn't the right place for this (also it's an OS X specific key binding that you're inserting in for everyone).

There's an if (platform === 'MacOS') { block in keyboardmanager.js that might be more appropriate for a change like this?

@Carreau
Copy link
Member Author

Carreau commented May 7, 2014

(also it's an OS X specific key binding that you're inserting in for everyone)

IIUC Cmd only exist on macs so this should not have effect on non-macs.

There's an if (platform === 'MacOS') { block in keyboardmanager.js that might be more appropriate for a change like this?

I can try, but as I understand it keyboardmanager.js handle only what need to interact with IPython, and otherwise lets go through what is codemirror specific. Why would we want people to configure codemirror bindings with our custom keyboard handler when codemirror already have a number of commands that are already availlable.

@Carreau
Copy link
Member Author

Carreau commented May 15, 2014

codemirror demo: http://codemirror.net/demo/indentwrap.html

@Carreau
Copy link
Member Author

Carreau commented May 16, 2014

From the dev meeting this should be tested on a non-osx machine and we might want to bring the default upstream in codemirror.

@damianavila
Copy link
Member

codemirror demo: http://codemirror.net/demo/indentwrap.html

This demo is Codemirror 4.1, I do not know if it is the same in Codemirror 3... I suppose it is, just saying if you see some inconsistencies...

@minrk minrk modified the milestones: 2.2, 2.1 May 20, 2014
@takluyver
Copy link
Member

Dev meeting: Just check on Windows, then merge.

@minrk
Copy link
Member

minrk commented Jun 26, 2014

Seems to behave sensibly on Windows. Merging.

minrk added a commit that referenced this pull request Jun 26, 2014
unify visual line handling
@minrk minrk merged commit b68cb43 into ipython:master Jun 26, 2014
@Carreau Carreau deleted the ulh branch June 27, 2014 07:38
@Carreau Carreau mentioned this pull request Jun 27, 2014
minrk added a commit that referenced this pull request Jul 7, 2014
Extra change on top of @ivanov pr #5768 to have more consistent handling of visual lines.

In a  long wrapped line End/Cmd-Right will go to the end of the visual line which seem more logical.
Cmd-Left beginning of line. I did note rebind Ctrl-Left because there is already custom logic in code mirror for "smart" beginning of line.
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
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

Successfully merging this pull request may close these issues.

None yet

5 participants