emmetio / emmet-eclipse

Emmet for Eclipse
http://emmet.io
343 stars 74 forks source link

"Match Pair Outward" keyboard shortcut (Ctrl + D) conflicted to eclipse's "Delete Line" #27

Open tan9 opened 11 years ago

tan9 commented 11 years ago

After installing emmet, I can't use Ctrl+D to delete line in my eclipse, even when I unbind the "Match Pair Outward" command in Preferences / General / Keys.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1290395-match-pair-outward-keyboard-shortcut-ctrl-d-conflicted-to-eclipse-s-delete-line?utm_campaign=plugin&utm_content=tracker%2F311127&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F311127&utm_medium=issues&utm_source=github).
iBiryukov commented 10 years ago

+1. This affects me too

calledT commented 10 years ago

me too,and I can't find way to solve this problem

edu791 commented 10 years ago

The solution:

Go to Window -> Preferences -> General -> Keys There you can bind and unbind key commands, so in order to avoid conflicts with Ctrl + D, you have to unbind the default actions and then search for "Math Pair Outward" and apply the key to it inside the Aptana Editor.

You can do it to other Emmet keys wich cause conflicts.

Tested on Aptana Studio 3. Eclipse should work too.

jzaruba commented 10 years ago

@edwardoyarzun I might be misunderstanding your "solution" but from the original post it appears to me that the actual issue is that unbinding does not work.

Also these commands remain there even after uninstalling Emmet. I can see them in Keys list, they don't have any shortcuts listed on them, but when hitting a shortcut you have to choose one of 2 matching commands every single time. When I hit Ctrl+D a list pops in the bottom right corner of my screen where I have to choose either [Delete Line] or [Match Pair Outward].

cnlevy commented 10 years ago

As a temporary workaround, just press ENTER after pressing Ctrl+D, it will execute the 'Delete Line' command

jzaruba commented 10 years ago

@cnlevy :)))

acdcjunior commented 10 years ago

This happened to me as well. :+1:

The good part (at least for me :) is that going to Window -> Preferences -> General -> Keys worked.

Firstly I went to Match Pair Outward and changed its hotkey (to Ctrl+Shift+Alt+D, but I suppose any, or none at all, would work), and then went back to Delete Line and reassigned Ctrl+D to it (somehow it was not assigned anymore).

Not it works as good as before.

shelltea commented 10 years ago

@acdcjunior Thanks!The problem have been solved.

paulvi commented 10 years ago

I guess the discussion goes about these lines

https://github.com/emmetio/emmet-eclipse/blob/master/io.emmet.eclipse/plugin.xml#L137-L142

What should be short-cut for those commands?

Should it be Ctrl+P ? (P is for Pair)

uso1980 commented 5 years ago

I had the same issue but I fixed it by deleting the directory .metadata in my workspace. I restarted Eclpse and all shortcuts started to work :)