SublimeBlockCursor icon indicating copy to clipboard operation
SublimeBlockCursor copied to clipboard

Block cursor does not update in multiple views

Open netpro2k opened this issue 14 years ago • 4 comments

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

netpro2k avatar Dec 03 '11 22:12 netpro2k

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.

MSch avatar Jan 25 '12 13:01 MSch

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.

ignacysokolowski avatar Mar 26 '12 10:03 ignacysokolowski

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

netpro2k avatar May 18 '12 20:05 netpro2k

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?

deiga avatar Jan 30 '13 16:01 deiga