random pastes when selecting
when using this multiselect, whatever is in the clipboard is automatically pasted to each cursor. i'm on ubuntu 14.04
update:
this is happening because middle click is mapped to paste by default... this is ridiculous behaviour. unsure how to change it
:+1: having the same issue.
The middle mouse in Linux pastes whatever is highlighted, which means that using the middle mouse for something like this would cause major issues. Using your normal mouse button, if possible (I'm still figuring out how to do that), would fix it.
Edit: I have fixed it.
I have changed the chunk of code in the config to the following:
when 'win32'
selectKey: 'altKey'
mainMouseNum: 1
middleMouseNum: 2
enableMiddleMouse: true
when 'darwin'
selectKey: 'altKey'
mainMouseNum: 1
middleMouseNum: 2
enableMiddleMouse: true
when 'linux'
selectKey: 'altKey'
mainMouseNum: 1
middleMouseNum: 1
enableMiddleMouse: false
else
selectKey: 'altKey'
mainMouseNum: 1
middleMouseNum: 1
enableMiddleMouse: false
Notice that the last two have the mouse numbers changed. I also changed the shiftKey to altKey so that it behaves like Visual Studio, which is pretty much a software industry standard at this point.
Having this issue as well, and I think @matt-della has a good solution for it. Why is this package assigning a behavior to a key that already has a default behavior in that operating system? The only problem is, altKey also has the default of moving the window, but that's one that can at least be changed without patching gtk.
@jhealy86 I realized that Linux systems often assign the alt key to move windows around the screen, so using the alt key would also be sub-optimal. However, I do believe that properly configuring either alt-shift or ctrl-shift to override the shift key behavior should work, as long as the middle-click is removed from the equation.
I just changed mine to ctrlKey, and you do lose Linux's multi-select with that, but I've honestly never used that feature, and Atom has other (better) ways to do it. So I think that's what I'm going to stick with.
As noted, this was due to the way ubuntu pastes using middle mouse button. Key combinations are now configurable for linux.