danielmagnussons / orgmode

orgmode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system.
MIT License
753 stars 70 forks source link

Overrides standard mac Option-Arrow movement between words #39

Closed filiph closed 9 years ago

filiph commented 10 years ago

After installing orgmode, whenever I want to move by words to the left (with Option-Left), Sublime opens a new tab. This happens in non-orgmode tabs, too.

After removing the orgmode package from Sublime, all works well again.

Sublime version 2.0.2, build 2221; orgmode version 1.7.8.

julianwilke commented 10 years ago

Same with Sublime Text 3, build 3059; orgmode version 1.7.8.

rcherny commented 10 years ago

Do we have any idea what is causing this? I have been working on a client's PC for a month or so and I went back to my Mac and was really confused. Glad to see this ticket, I thought I'd gone nuts.

If we had any ideas then we could at least submit a pull request or something.

danielmagnussons commented 10 years ago

Sounds wierd, and I can't reproduce on windows. Try run orgmode without navigation_history.py maybe(?).

https://github.com/danielmagnussons/orgmode/blob/master/navigation_history.py

rcherny commented 10 years ago

The word-to-word short cuts on Windows and Mac are different, so you won't see it on Windows.

This is a Mac issue.

rcherny commented 10 years ago

I can confirm that the keymap settings described in the navigation_history.py file for Macs, and then if modified or even commented out in ~/Library/Application Support/Sublime Text 3/Packages/orgmode/Default.sublime-keymap restores the original Mac (option+arrow) word by word navigation.

As such I think that this isn't a bug so much as a default setting that merits a change, perhaps?

andrewkowalik commented 10 years ago

+1 This is a terrible default setting and warrants a change for Mac.

jiffyclub commented 9 years ago

+1 for changing this. I had no idea why my navigation was messed up all of a sudden. I'm glad I found this issue with an explanation.

danielmagnussons commented 9 years ago

Fix is here; https://github.com/danielmagnussons/orgmode/commit/dfd2f3e43fe413531fec6070fff7c0fdd426d5c6

Changed OSX default keymap to super+-> Found here, http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts#Browsers_.2F_Go_menu