 
 <#d::
   send ^d
+  return
+
+; cursor
+^d::
+  if is_terminal()
+    send %A_ThisHotKey%
+  else
+    send {DEL}
+  return
+
+; cursor
+^e::
+  if is_terminal()
+    send %A_ThisHotKey%
+  else
+    send {END}
+  return
+
+; cursor
+^f::
+  if is_terminal()
+    send %A_ThisHotKey%
+  else
+    send {Right}
+  return
+
+^+f::
+  if is_terminal()
+    send %A_ThisHotKey%
+  else
+    send ^f
   return
 
 ; win+d -> win+m

  return

<^n::
  send #n
  return

<#r::

SetKeyDelay 0


; Mac-style commands (Win + {key})

; cursor
^a::
  if is_terminal()
    send %A_ThisHotKey%
  else
    send {HOME}
  return

<#a::
  send ^a
  return

^b::
  if is_terminal()
    send %A_ThisHotKey%
  else
    send {Left}
  return

<#b::
  if is_vscode()
    send %A_ThisHotKey%
