Skip to content

Instantly share code, notes, and snippets.

@jschwinger233
Last active April 14, 2020 06:18
Show Gist options
  • Save jschwinger233/8c9f1427ad13b0db301a86b28527b560 to your computer and use it in GitHub Desktop.
Save jschwinger233/8c9f1427ad13b0db301a86b28527b560 to your computer and use it in GitHub Desktop.

安利浏览器插件 https://github.com/tridactyl/tridactyl/blob/master/readme.md

作为 vimium 的长期用户, 这次是瞬间抛弃 chrome, 只为使用 tridactyl.

highlights:

  1. 纠正了若干 vimium 的错误的 key bindings:
    1. vimium <S-^> 是在 latest tab 之间跳转, vim 里明明是 <C-^>, tridactyl 把这个纠正过来了
    2. vimium u / d 的功能是 vim 里的 <C-u> / <C-d> 翻页, tridactyle u 是恢复最近关闭的 tab, d 是关闭当前 tab
  2. 可以在输入框里 edit in vim!
    1. gi 选输入框
    2. <C-i> 打开 tridactyl native messenger, 需要配置系统的默认 editor 是 MacVim (如果你是 macOS 的话)
    3. 在弹出来 MacVim 里编辑, :x 保存退出, 文本就到浏览器输入框了
  3. 新增了很多其他操作
    1. b 搜索当前所有 tab, 比 vimium 的 tab 跳转好用
    2. t open url in a new tab, 可以很方便地搜索历史, 比 vimium 的 O 好用
    3. ;p 复制 element's text, 好用到哭, 比 vimium 的 visual mode 高到不知哪里去
    4. gF 连开 links 模式, vimium 我只能反复 F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment