bigfive / atom-sublime-select

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

Selecting doesn't work for the first, already open editor #111

Open Ingramz opened 8 years ago

Ingramz commented 8 years ago
  1. Open up a document
  2. Reload window
  3. Cannot select until switched to a different tab
RishiKulshreshtha commented 8 years ago

I'm using:

and its working totally fine at my end.

Please try to update your package https://github.com/bigfive/atom-sublime-select/releases/tag/v1.7.2

Ingramz commented 8 years ago

sscs

votdev commented 8 years ago

It does not work without restarting the atom editor after the plugin has been updated, but after that it works as expected.

Ingramz commented 8 years ago

Restarting the editor is equivalent to reloading. The first already-open document will not have the selection activated caused by this change.

None of the observed events are triggered when the editor is opened.

bigfive commented 7 years ago

I cant reproduce this with the "first already-open document". Is this still an issue for you?

Ingramz commented 7 years ago

Interesting, I did not see your reply.

I just now tested this on both mac and windows, clean Atom installs, both have this issue.

I'll try explaing again: Have two files text documents open in a single editor window and nothing else in a configuration that can be seen from the gif (no split panes etc). Next restart the editor with keyboard shortcut or using menu (View->Developer->Reload Window). Now try selecting on the document that you see that is already open - that should fail. Switch to the other open document and try selecting there - should work. Then switch back to the first document to verify that now selecting works there too.

You can visualize this by adding a debug print to the switch_editor_handler method and using developer console to see that the method does not get triggered if the editor documents were already opened when the application loads (meaning there's no change in active pane item nor a pane is created or destroyed; just loaded previously existing editor state).

mocenigo commented 4 years ago

Still open. Issue #160 is a duplicate of this, I just realised. Issue still present in v 1.7.5