A keyboard interface to the web, inspired by Kakoune

#1

First tease of a keyboard interface to the web, inspired by Kakoune.

2 Likes
#2

I have Vimium installed in my Firefox, and it’s pretty cool, but a Kakoune-themed extension would be cooler.

#3

It’s inspired by Kakoune, but differs a bit for the modes. Modal is based around the concept of contexts, as opposed to modes. For instance, you can have a page mapping on y to yank the page URL and the same key to yank a link address.

map(context, keys, command, description)

Example – Add mappings to yank pages and links:

modal.map('Command', ['KeyY'], () => Clipboard.copy(location.href), 'Copy page address')
modal.map('Link', ['KeyY'], (event) => Clipboard.copy(event.target.href), 'Copy link address')

Custom contexts are also supported (there is three by default). For example, you can create a context for videos (like illustrated in the video) and have h, j, k, l to seek or increase the volume.

#4

Oh wow, this looks awesome!!!

#5

Agreed, this is extremely cool! I too use Vimium but have wanted a more Kakoune-like experience in the browser. The contexts idea is clever and looks to be quite flexible. I’ll have to set aside some time to tinker around with your plugin. Do you have eventual plans to publish it as an official extension without having to loading it via developer mode?

#6

Maybe later but not currently.

Currently I’m working on a native messaging application to be able to execute external commands. A use case could be to create mpv playlists on-the-fly with the hint mode, or search a tab with dmenu.

#7

Here is a quick demo for playing videos with mpv and tab search with dmenu.