Skip to content

Instantly share code, notes, and snippets.

@llinfeng
Created November 6, 2018 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save llinfeng/3876ec51d184dea2af5610608e0352b5 to your computer and use it in GitHub Desktop.
Save llinfeng/3876ec51d184dea2af5610608e0352b5 to your computer and use it in GitHub Desktop.
Restore <c-w> to delete a word in Firefox, with solutation to Tridactyl
; Since Github refuse to render anything in the old Firefox 55, I need to switch to Tridactyl with the newer Firefox.
; Yet, the <c-w> is missing from Tridactyl, and it is impossible to implemnet an Insert mode there
; This maps <c-w> to delete the word, and <alt + q> to take out (close) a tab.
; Lastly, <Alt + Shift + Q> will close the entire window. It is impractical to kill all existing process as done on Mac.
#IfWinActive ahk_exe firefox.exe
;questionable piece, 2018-11-06: may not get used to it in the end.
!q:: send ^w
^w:: Send ^+{Left}{BS}
; End of questionable piece.
!+q:: send !{F4}
#IfWinActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment