thegreatsuspender icon indicating copy to clipboard operation
thegreatsuspender copied to clipboard

Integration with cVim / Vimium

Open rafi opened this issue 9 years ago • 19 comments

I'm an avid cVim user, and I love The Great Suspender. However, on suspended tabs, cVim stops working. Is there a way I could keep using both these awesome plugins together?

rafi avatar Aug 09 '15 14:08 rafi

I was experiencing this issue myself, so I'm glad someone beat me in reporting it. I love both extensions a lot. It would be nice if they'd play nice together.

tmttn avatar Jan 12 '16 10:01 tmttn

I have the same problem. @deanoemcke is it possible to whitelist extensions so we can whitelist cVim?

kalbasit avatar Dec 01 '16 20:12 kalbasit

+1 definitely would love this

boorac avatar Nov 05 '17 15:11 boorac

Can you give me a bit more information on what is breaking in cVim (specifically)? The problem is most likely that extensions cannot function on another extensions tab. All suspended tabs belong to the Great Suspender extension. I don't think there is a way to work around this. But I would need a more specific example to be sure.

deanoemcke avatar Nov 27 '17 14:11 deanoemcke

The comments on this PR are also quite relevant: https://github.com/deanoemcke/thegreatsuspender/pull/423

I think essentially, they implemented the problematic keyboard shortcuts inside The Great Suspender. Not a solution that I think is really correct..

deanoemcke avatar Nov 27 '17 15:11 deanoemcke

@deanoemcke In a suspended tab, cVim doesn't work at all. You can't even use J/K to navigate through tabs, none of cVim features work.

rafi avatar Nov 27 '17 17:11 rafi

@deanoemcke this could be solved by loading the suspended page externally (as-in accessed via regular http/https) instead of chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/suspended.html. cVim (or any other extension) does not work over chrome-extension://.

kalbasit avatar Nov 27 '17 19:11 kalbasit

bump

madhukar93 avatar Jan 05 '18 05:01 madhukar93

@kalbasit you are correct that the problem could be resolve by using an external web address for suspended tabs. this however makes it dependent on an external site being up (as well as having an internet connection locally). It also significantly affects chrome restart time when restoring a lot of suspended tabs. They currently load almost instantly. And most importantly, it reduces the extension's performance memory-wise which is the primary use case for the extension.

Unfortunately, I cannot allow this feature request to impact the core performance of the extension :(

deanoemcke avatar Feb 06 '18 18:02 deanoemcke

@deanoemcke could you at least provide an option in the settings allowing us to set a custom URL for the suspended page?

kalbasit avatar Mar 01 '18 23:03 kalbasit

@kalbasit this would break a lot of functionality. the contents of a suspended tab would be out of my control. it would be a pretty significant code rewrite to implement.

Perhaps you could try my other extension, The Great Discarder. This uses native chrome discarding functionality rather than redirecting to a suspended page. Perhaps it will play nicer with vimium (i haven't tried it sorry).

deanoemcke avatar Mar 12 '18 05:03 deanoemcke

Perhaps you could try my other extension, The Great Discarder. This uses native chrome discarding functionality rather than redirecting to a suspended page. Perhaps it will play nicer with vimium (i haven't tried it sorry).

Unfortunately starting from Chromium 61.x there is an issue with focusing of discarded tabs. Therefore it doesn't play much nicer with Vimium/cVim :cry:.

dumblob avatar Aug 25 '18 06:08 dumblob

If you're on a Mac, you can change the shortcuts in System Preferences > Keyboard > Shortcuts and add app specific shortcuts for Chrome. I just use ^J and ^K instead of J and K and it's close-enough-ish.

https://superuser.com/questions/497526/how-to-customize-google-chrome-keyboard-shortcuts

jnelson180 avatar Nov 27 '18 17:11 jnelson180

I have a suggestion here, as a vimium user for a long time and a new user of TGS I's struggling a bit. So basically the only things I think someone needs to use on a suspended tab is J and K to change tabs, I also notice that TGS already has some keyboard shortcuts that the user can implement (I'm using Ctrl + s to un/suspend tabs, It's not an easy implementation to add the 'next tab' and 'prev tab' shortcuts?

It can have a default to J and K or simply have no defaults and vimium users implement the shortcut by their own.

Eduruiz avatar Apr 18 '19 18:04 Eduruiz

@Eduruiz that sounds like a good compromise and I raise my hand for that.

dumblob avatar Apr 18 '19 19:04 dumblob

Any update on this?

schlowm0 avatar Mar 24 '20 02:03 schlowm0

It seems that what @Eduruiz is proposing is the best compromise. +1 to it.

afedulov avatar May 11 '20 20:05 afedulov

Any solutions so far?

abnerf avatar Sep 18 '20 20:09 abnerf

I second @Eduruiz suggestion here. Would be great to have this option

krzkrzkrz avatar Dec 28 '20 16:12 krzkrzkrz