Skip to content

Instantly share code, notes, and snippets.

@andrewfraley
Last active March 31, 2023 01:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewfraley/1055b7411e0215c98a43fda25bb085d0 to your computer and use it in GitHub Desktop.
Save andrewfraley/1055b7411e0215c98a43fda25bb085d0 to your computer and use it in GitHub Desktop.
add windows terminal alt+~ shortcut
; https://medium.com/@andrew.fraley/osx-like-keyboard-shortcuts-for-windows-10-113cfd532699
; https://gist.github.com/andrewfraley/1055b7411e0215c98a43fda25bb085d0
; alt = !
; win = #
#SingleInstance force
; Make ctrl-a and ctrl-e go to the end and beginning of lines by sending home and end keys
$^a::send {Home}
$^e::send {End}
; Make Alt-a select all
$!a::send ^a
; Make alt c and alt v also do copy paste like OSX
$!c::send ^c
$!v::send ^v
; Use alt+s to save by sending ctrl-s
$!s::send ^s
; Use alt=z to ctrl-z
$!z::send ^z
; Use alt=x to ctrl-x
$!x::send ^x
; alt-f to ctrl-f
$!f::send ^f
; Spectacle window management shortcuts
; Maximize window with alt+win+f
$#!f::send #{Up}
; Change desktops with ctrl-arrows
$^Right::send #^{Right}
$^Left::send #^{Left}
; ctrl-up = win + tab
$^Up::send #{Tab}
; Get cmdr / conemu to work with alt-~ (quake style drop down terminal, I use this for iterm2 on OSX)
; $!`::send ^``
; Get Windows Terminal to work with alt-~ (quake style drop down terminal, I use this for iterm2 on OSX)
$!`::send #``
; Fix alt issues
alt::return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment