bigfive / atom-sublime-select

Enable 'sublime style' multiline selection boxes to Atom editor http://atom.io
MIT License
233 stars 49 forks source link

Cursor jumping to above lines when selecting #155

Closed werunom closed 5 years ago

werunom commented 6 years ago

When I attempt to select a column of text by ctrl+left-click, the cursor jumps from the present line to some line above. Below is the gif for the same.

jumping cursor

The same thing happens even when I change the hotkey. Also, I had disabled most of the relevant installed packages while reproducing this.

Atom version - 1.23.3 OS - manjaro linux

werunom commented 6 years ago

I did tried this with three kinds of scenarios. Below gif illustrates those three situations. Only in the last one, the cursor jumps without doing column selection.

jumping cursors 2

Note - if its relevant, this is a plain txt file whose grammar has been set as source.gfm

snow212-cn commented 6 years ago

122 @bigfive has given up this tool? Not a response for a year

daeh commented 6 years ago

same issue but cursor jumps to end of document. essentially makes the package unusable, which is such a shame as it's one of the functionalities that I use the most in sublime.

snow212-cn commented 6 years ago

@bigfive has not a single activity for more than a year already. Probably he's no longer the earth. Everyone we have to dissolve now, bye.

bigfive commented 6 years ago

Hey. I've been a busy guy lately (2 kids under 5)

If you would like to contribute feel free, ill even give you (or anyone else who is interested) write access to the repo if you would like to help maintain the addon.

On 24 Apr. 2018 3:28 pm, "v1-hermit" notifications@github.com wrote:

@bigfive https://github.com/bigfive has not a single activity for more than a year already. Probably he's no longer the earth. Everyone we have to dissolve now, bye.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bigfive/atom-sublime-select/issues/155#issuecomment-383831664, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmpaWd2ujPQRPtxbnxOb8JBoQKF1KTBks5trtQigaJpZM4R3MfN .

snow212-cn commented 6 years ago

I'd like to help but I don't have the ability. Give the access to someone else who can fix the problem please.

bencooling commented 6 years ago

@daeh An alternative I found helpful is multi-cursor.

daeh commented 6 years ago

thanks, @bencooling. I'm sad to lose option-click-drag multi-cursor looks like the best atom has to offer atm.

andrei-1111 commented 5 years ago

@bigfive , I'm interested in looking for a fix to this. Where do you think we should start checking?

snow212-cn commented 5 years ago

@bigfive, you're free enough to be busy with this repo ExMachina. You'd rather completely ignore sublime-select even when here's someone instrested in it. You've been a real busy guy!

bigfive commented 5 years ago

^ found the stalker ;)

OK, consider me bullied into giving this a go. I imagine its to do with how I'm converting the cursor position into line/character position. It obviously breaks when theres a long line above the place you are selecting and you have line wrapping on. I'll see what I can do, maybe atom has recently added some helpful API functions I can use.

bigfive commented 5 years ago

@werunom Ive just released a new patch for this. Let me know if it fixes the issue for you. Thanks for your patience :)