Last active
March 31, 2023 01:32
-
-
Save andrewfraley/1055b7411e0215c98a43fda25bb085d0 to your computer and use it in GitHub Desktop.
add windows terminal alt+~ shortcut
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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