Giter Site home page Giter Site logo

exwm-firefox-evil's Introduction

https://melpa.org/packages/exwm-firefox-evil-badge.svg

exwm-firefox-evil - Evil-mode keys in firefox

exwm-firefox-evil makes firefox’s control scheme modal. It uses vi-like keys and doesn’t require any addons. It does this by implementing exwm-firefox-core which sends fake keys to firefox using exwm.

To get link-hints you have to download a link-hint addon to firefox and define a new function to send that key to firefox on call like those in exwm-firefox-core.

Install

(require 'exwm-firefox-evil)
;; Auto enable exwm-firefox-evil-mode on all firefox buffers
(add-hook 'exwm-manage-finish-hook 'exwm-firefox-evil-activate-if-firefox)

You also need to add escape to exwm-input-prefix-keys so that escape is passed to emacs instead of firefox.

(dolist (k `(
	     escape
	     ))
  (cl-pushnew k exwm-input-prefix-keys))

Keep in mind that this affects all exwm-applications. If you want to get your escape key back in those applications you could bind the escape key to (exwm-input--fake-key 'escape) in your own minor mode that activates in all exwm-buffers just like I did in this package. For the conditional statement to avoid firefox buffers, just negate the checks in the function exwm-firefox-evil-activate-if-firefox

Know bugs

Mouse clicks only works in insert state

exwm-firefox-evil's People

Contributors

patrickfreed avatar walseb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

exwm-firefox-evil's Issues

Mouse doesn't work in normal-state

As mentioned here, mouse clicks don't work in normal-state. This is because normal-state in this package runs this: (setq-local exwm-input-line-mode-passthrough t) which disables all exwm binds. The solution to this would be to send fake mouse presses in exwm-firefox-evil-mode-map when clicking, etc.

I will put this issue on my todo list as it has annoyed me too, so it will probably be fixed in a week or two. In the meantime, if anyone wants to submit a pull request for this, please do!

Make escape not also press tab in firefox

It's annoying how escape always presses tab, but it's necessary to be able to escape the search bar after you press "o". This can be fixed by either finding a firefox keybind which ONLY escapes the search bar when pressed and nothing else, or by making the buggy experimental branch of this repo stable, which solves this problem by using the minibuffer to search instead of the actual firefox search-bar

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.