mirror of
				https://github.com/rbreaves/kinto.git
				synced 2025-11-04 05:14:01 +01:00 
			
		
		
		
	- Sublime Text 3 keymaps corrections, completed remaps for Windows
This commit is contained in:
		@@ -213,13 +213,60 @@ $^+Right::Send +{End}
 | 
			
		||||
#If
 | 
			
		||||
 | 
			
		||||
#IfWinActive ahk_exe sublime_text.exe
 | 
			
		||||
    ; Remap Ctrl+Shift to behave like macOS Sublimetext
 | 
			
		||||
    ; Will extend cursor to multiple lines
 | 
			
		||||
    #+Up::send {shift up}^!{Up}
 | 
			
		||||
    #+Down::send {shift up}^!{Down}
 | 
			
		||||
 | 
			
		||||
    ; Remap Ctrl+Cmd+G to select all matches
 | 
			
		||||
    #^g::send !{F3}
 | 
			
		||||
    #^Up::send !{O}                                         ; Switch file
 | 
			
		||||
    #^f::send {F11}                                         ; toggle_full_screen
 | 
			
		||||
    ^!v::send {Ctrl Down}k{Ctrl Up}{Ctrl Down}v{Ctrl Up}    ; paste_from_history
 | 
			
		||||
    ^Up::Return                                             ; cancel scroll_lines up
 | 
			
		||||
    ^!Up::send ^{Up}                                        ; scroll_lines up
 | 
			
		||||
    ^Down::Return                                           ; cancel scroll_lines down
 | 
			
		||||
    ^!Down::send ^{Down}                                    ; scroll_lines down
 | 
			
		||||
    #+Up::send {shift up}^!{Up}                             ; multi-cursor up
 | 
			
		||||
    #+Down::send {shift up}^!{Down}                         ; multi-cursor down
 | 
			
		||||
    ^PgDn::Return                                           ; cancel next_view
 | 
			
		||||
    ^PgUp::Return                                           ; cancel prev_view
 | 
			
		||||
    ^+{::send ^{PgDn}                                       ; next_view
 | 
			
		||||
    ^+}::send ^{PgUp}                                       ; prev_view
 | 
			
		||||
    ^!Right::send ^{PgDn}                                   ; next_view
 | 
			
		||||
    ^!Left::send ^{PgUp}                                    ; prev_view
 | 
			
		||||
    Insert::Return                                          ; cancel toggle_overwrite
 | 
			
		||||
    ^!O::send {Insert}                                      ; toggle_overwrite
 | 
			
		||||
    !c::Return                                              ; cancel toggle_case_sensitive
 | 
			
		||||
    ^!c::send !{c}                                          ; toggle_case_sensitive
 | 
			
		||||
    ^h::Return                                              ; cancel replace
 | 
			
		||||
    ^!f::send ^{h}                                          ; replace
 | 
			
		||||
    ^+h::Return                                             ; cancel replace_next
 | 
			
		||||
    ^!e::send ^+{h}                                         ; replace_next
 | 
			
		||||
    F3::Return                                              ; cancel find_next
 | 
			
		||||
    ^g::send {F3}                                           ; find_next
 | 
			
		||||
    *F3::Return                                             ; cancel find_prev, find_under, find_all_under
 | 
			
		||||
    ^+g::send +{F3}                                         ; find_prev
 | 
			
		||||
    #!g::send ^{F3}                                         ; find_under
 | 
			
		||||
    #!+g::send ^+{F3}                                       ; find_under_prev
 | 
			
		||||
    #^g::send !{F3}                                         ; find_all_under
 | 
			
		||||
    ^+Up::Return                                            ; cancel swap_line_up
 | 
			
		||||
    #!Up::send ^+{Up}                                       ; swap_line_up
 | 
			
		||||
    ^+Down::Return                                          ; cancel swap_line_down
 | 
			
		||||
    #!Down::send ^+{Down}                                   ; swap_line_down
 | 
			
		||||
    ^Pause::Return                                          ; cancel cancel_build
 | 
			
		||||
    #c::send ^{Pause}                                       ; cancel_build
 | 
			
		||||
    F9::Return                                              ; cancel sort_lines case_s false
 | 
			
		||||
    F5::send {F9}                                           ; sort_lines case_s false
 | 
			
		||||
    #F9::Return                                             ; cancel sort_lines case_s true
 | 
			
		||||
    #F5::send #{F9}                                         ; sort_lines case_s true
 | 
			
		||||
    !+1::Return                                             ; cancel set_layout
 | 
			
		||||
    ^!1::send !+1                                           ; set_layout
 | 
			
		||||
    !+2::Return                                             ; cancel set_layout
 | 
			
		||||
    ^!2::send !+2                                           ; set_layout
 | 
			
		||||
    !+3::Return                                             ; cancel set_layout
 | 
			
		||||
    ^!3::send !+3                                           ; set_layout
 | 
			
		||||
    !+4::Return                                             ; cancel set_layout
 | 
			
		||||
    ^!4::send !+4                                           ; set_layout
 | 
			
		||||
    !+5::Return                                             ; cancel set_layout
 | 
			
		||||
    ^!5::send !+5                                           ; set_layout
 | 
			
		||||
    !+8::Return                                             ; cancel set_layout
 | 
			
		||||
    ^!8::send !+8                                           ; set_layout
 | 
			
		||||
    !+9::Return                                             ; cancel set_layout
 | 
			
		||||
    ^!9::send !+9                                           ; set_layout
 | 
			
		||||
#If
 | 
			
		||||
 | 
			
		||||
#IfWinActive ahk_group terminals
 | 
			
		||||
 
 | 
			
		||||
@@ -175,9 +175,9 @@ define_keymap(re.compile("Sublime_text", re.IGNORECASE),{
 | 
			
		||||
    K("Super-RC-f"): K("f11"),                  # toggle_full_screen
 | 
			
		||||
    K("C-M-v"): [K("C-k"), K("C-v")],           # paste_from_history
 | 
			
		||||
    K("C-up"): pass_through_key,                # cancel scroll_lines up
 | 
			
		||||
    K("Super-M-up"): K("C-up"),                 # scroll_lines up
 | 
			
		||||
    K("C-M-up"): K("C-up"),                     # scroll_lines up
 | 
			
		||||
    K("C-down"): pass_through_key,              # cancel scroll_lines down
 | 
			
		||||
    K("Super-M-down"): K("C-down"),             # scroll_lines down
 | 
			
		||||
    K("C-M-down"): K("C-down"),                 # scroll_lines down
 | 
			
		||||
    K("Super-Shift-up"): K("M-Shift-up"),       # multi-cursor up
 | 
			
		||||
    K("Super-Shift-down"): K("M-Shift-down"),   # multi-cursor down
 | 
			
		||||
    K("C-PAGE_DOWN"): pass_through_key,         # cancel next_view
 | 
			
		||||
@@ -207,9 +207,9 @@ define_keymap(re.compile("Sublime_text", re.IGNORECASE),{
 | 
			
		||||
    # K("M-C-g"): K("M-Refresh"),                 # Chromebook - find_all_under
 | 
			
		||||
    K("Super-C-g"): K("M-f3"),                  # Default - find_all_under
 | 
			
		||||
    K("C-Shift-up"): pass_through_key,          # cancel swap_line_up
 | 
			
		||||
    K("Super-C-up"): K("C-Shift-up"),           # swap_line_up
 | 
			
		||||
    K("Super-M-up"): K("C-Shift-up"),           # swap_line_up
 | 
			
		||||
    K("C-Shift-down"): pass_through_key,        # cancel swap_line_down
 | 
			
		||||
    K("Super-C-down"): K("C-Shift-down"),       # swap_line_down
 | 
			
		||||
    K("Super-M-down"): K("C-Shift-down"),       # swap_line_down
 | 
			
		||||
    K("C-Pause"): pass_through_key,             # cancel cancel_build
 | 
			
		||||
    K("Super-c"): K("C-Pause"),                 # cancel_build
 | 
			
		||||
    K("f9"): pass_through_key,                  # cancel sort_lines case_s false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user