Skip to content

Instantly share code, notes, and snippets.

#
# __author__ = "lexxish"
#
from dragonspeak.rules.vim_helper import VimHelper
from dragonspeak.rules.vim_mode import VimMode
class SurfingKeysMode():
CARET_MODE = 1
NORMAL = 2
@fjrti
fjrti / chrome_patch_for_Surfingkeys.diff
Last active March 16, 2019 17:32
Surfingkeys support in Chrome reserved page
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index f637193e644f..60f9f5cd3644 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -147,6 +147,10 @@ void NavigatorImpl::CheckWebUIRendererDoesNotDisplayNormalURL(
->GetController()
->GetBrowserContext(),
url);
+ bool whitelistedSurfingkeys = url.host() == "gfbliohnnapiefjpjlpjnehglfpaknnc";
+ if (whitelistedSurfingkeys) {
@dotiful
dotiful / surfingkeys-config.js
Last active April 10, 2020 20:45
Surfingkeys config. Map your keys for web surfing, expand your browser with javascript and keyboard https://addons.mozilla.org/en-US/firefox/addon/surfingkeys_ff/?src=search
/**
* Surfingkeys config.
*
* An extension that adds Vim-like bindings to your browser in order to extend
* it using JavaScript and a keyboard.
*
* @link https://git.io/surfingkeys
* @author Artem Medvedev <dotiful@gmail.com>
*
* Created at : 2019-01-15
@decoyjoe
decoyjoe / Surfingkeys-conf.js
Last active May 2, 2020 23:59
Surfingkeys-Conf
// Using lots of good settings from: https://github.com/b0o/surfingkeys-conf/blob/master/conf.js
// ---- Unmaps ----//
// Normal mode unmaps
const unmaps = [
'x', 'ZQ', 'ZZ',
'ZR', 'sob', 'soB',
'sow', 'soW', 'sb',
'sB', 'sw', 'sW',
@haxscramper
haxscramper / Surfingkeys_settings.js
Created March 19, 2018 08:44
Setting for surfingkeys chrome extension
var remapArray =
[
[';', 'R'], // One tab right
['l', 'E'], //One tab left
[',', 'S'], //History back
['t', 'on'], // New Tab
['z', 'X'], // Restore closed tab
['.', 'D'], // History forward
['<', '<<'], // Move tab left
['>', '>>'], // Move tab right
@amiroslaw
amiroslaw / surfingkeys.json
Last active January 29, 2022 19:50
surfingkeys config
const {
aceVimMap,
mapkey,
unmap,
imap,
imapkey,
getClickableElements,
vmapkey,
map,
cmap,
@jasondavis
jasondavis / Markdown_2_HTML.ahk
Created February 23, 2018 00:03
AutoHotScript (AHK) Markdown 2 HTML GUI App
#NoEnv
#SingleInstance force
#Include jsonFormatter.ahk
SetBatchLines, -1
Gui, Add, Text, X10 Y10, Markdown:
Gui, Add, Edit, x10 y36 w400 h600 vmarkdown
Gui, Add, Text, X420 y10, HTML Text Result:
Gui, Add, Edit, X420 y36 w400 h600 vresult ReadOnly
@duguyipiao
duguyipiao / surfingkeys.js
Last active December 8, 2018 13:48
Config of surfingkeys
// Remap
// '>_w' is a temp key
map('>_w', 'w');
map('w', 'S');
map('S','>_w');
unmap('>_w');
map('q','D');
map('h','E');
map('l','R');
map('u','X');
@zloeber
zloeber / bootstrapwindows10.ps1
Last active March 12, 2024 07:39
Boxstarter Windows 10 Configuration
<#
The command to run, built from the raw link of this gist
Win+R
iexplore http://boxstarter.org/package/url?<RAW GIST LINK>
OR (if you don't like the way the web launcher force re-installs everything)