Skip to content

Instantly share code, notes, and snippets.

[alias]
hide = !f() { git ls-files -m "$@" | xargs -I{} git update-index --assume-unchanged {}\n}\n f;
hidden = !f() { git ls-files -v "$@" | grep "^[[:lower:]]" | cut -c3-\n}\n f;
unhide = !f() { git hidden "$@" | xargs -I{} git update-index --no-assume-unchanged {}\n}\n f;
@goaway
goaway / smart-caps-lock.md
Created March 4, 2019 19:23 — forked from tanyuan/smart-caps-lock.md
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.