Code Monkey home page Code Monkey logo

topovica's Introduction

Topovica

It's an acronym for "The Only Parts Of Vimperator I Care About". This project exists because as of version 57, the Vimperator extension will no longer work. Over the years, I have acquired significant muscle memory in browsing with Vimperator and, while there are other extensions that present similar interfaces, they are just different enough to be jarring. Instead of retraining, it's probably more fun to reimplement the subset of Vimperator that I am used to, so that's what I am going to do.

Currently implemented

Command mode

Page Movements

h,j,k,l → left, down, up and right, respectively

CTRL-D, CTRL-U → 10x j and 10x k, respectively

gg, G → top of page, bottom of page

ge, gE → moves to the next and previous scrollable elements, respectively. (impacts h,j,k,l)

/ → search page for text matches

Tab movements

gt, gT, g^, g$ → next tab, previous tab, first tab, last tab, respectively

:buffer, b → brings up the buffer selector interface. typing will search buffers for matching indexes or titles, displaying them as hints. Tab or Shift+Tab cycles between hints. Pressing Enter jumps to the first match if no hint is selected, else to the selected hint

Tab creation/deletion

d → delete: close tab

u → undo: restore most recently deleted tab

Navigation

:open, :o, o → opens a url or does a search in the current tab. hints work the same way as :buffer

:tabnew → opens a url or does a search in a new tab. hints work the same way as :buffer

CTRL-I, CTRL-O → forward and back

f, F → displays indexes for links: typing in those indexes follows the link in the current tab or a new tab, respectively

r, R → hard and soft (use cache) refresh the page, respectively. yes, why shouldn't the default behaviour be hard refresh? =)

Misc

y → copies the current url to the clipboard

Insert mode

We currently detect insert mode when currently focused element is input, textarea or select

Credits

I referred to existing projects when I encountered functionality I couldn't figure out how to implement.

Known issues

  1. ge and gE do not work with frames. Also somewhat wonky. The check for scrollable elements is not perfect.

  2. CTRL-O sometimes lands you in the previous page with :open activated if you don't release the "O" button quickly enough.

  3. :open and :tabnew occasionally cause an "undefined" hint to be displayed. This is irritating but doesn't really affect my usage, so I don't care. Feel free to suggest a patch if you can be arsed to find out why.

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.