dcchambers / vb4c

vb4c has been archived - please direct all conversation to the original cVim project page: https://github.com/1995eaton/chromium-vim
MIT License
141 stars 13 forks source link

Will vb4c support switch tab when web not loaded complete? #10

Open gotnix opened 4 years ago

gotnix commented 4 years ago

Thank you for forking cVim and maintaining this project! I found that Vimium can navigate to other tab when the webpage is not fully loaded, would you add this feature to vb4c?

eastmancr commented 4 years ago

vb4c modifies pages as they load with the proper code to support the extension. This is the reason commands and keybindings don't work until the page is loaded and on chrome:// urls. In its current state this is unsupported and I don't think it can be implemented. Vimium is a browser that has access to the tabs at all times, vb4c "creates" a new instance every time a page is loaded by inserting itself into the html. I'm not sure if Chrome extensions even support this functionality as the JavaScript is run after the page loads but if it does this requires either a rewrite or a new core that supports it. Alright thinking about this comment a little bit more made me realize you were talking about the Chrome extension Vimium and not the Chrome fork Vimium, sorry about that. This probably could be implemented in a similar fashion to Vimium by implementing some of the code in vb4c/content_scripts in vb4c/background_scripts. This would still require significant rewrites, but it's possible.