Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block cursor does not update in multiple views #1

Open
netpro2k opened this issue Dec 3, 2011 · 4 comments
Open

Block cursor does not update in multiple views #1

netpro2k opened this issue Dec 3, 2011 · 4 comments

Comments

@netpro2k
Copy link
Owner

netpro2k commented Dec 3, 2011

If the same file is open in multiple tabs, the block cursor only works correctly in the first tab that was opened

@MSch
Copy link
Contributor

MSch commented Jan 25, 2012

I'd like to fix this. But I'm new to Sublime Text. How do I open a file in multiple tabs? Sublime always switches to the tab where the file is opened for me.

@ignacysokolowski
Copy link

I'm not sure if it's not about layouts. When i switch to 2 columns layout (Shift+Alt+2) or any other layout than Single, and I open a file in new view - block cursor works correctly only in the first view.

@netpro2k
Copy link
Owner Author

I can confirm this as well. Pretty new to sublime plugin API, so I am very likely making some incorrect assumptions

@deiga
Copy link
Contributor

deiga commented Jan 30, 2013

I got an idea after a bit of browsing through the API. you can get the window from the current view via view.window(), Window has the function window.views() which returns a list of views, which length increases when another tab is opened, in either a split etc.

Couldn't you just loop through the views and set the block cursor on each of them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants