mirror of
				https://github.com/rbreaves/kinto.git
				synced 2025-11-04 05:14:01 +01:00 
			
		
		
		
	Merge pull request #265 from rbreaves/hotfix
- Added manual code completion for vscode and sublimetext. Closes #264
This commit is contained in:
		@@ -363,6 +363,7 @@ $^Backspace::Send +{Home}{Delete}
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
; Sublime Text Remaps for VS Code
 | 
					; Sublime Text Remaps for VS Code
 | 
				
			||||||
#IfWinActive ahk_group vscode
 | 
					#IfWinActive ahk_group vscode
 | 
				
			||||||
 | 
					    #Space::Send ^{Space}                                ; Basic code completion
 | 
				
			||||||
    ; Remap Ctrl+Shift to behave like macOS Sublimetext
 | 
					    ; Remap Ctrl+Shift to behave like macOS Sublimetext
 | 
				
			||||||
    ; Will extend cursor to multiple lines
 | 
					    ; Will extend cursor to multiple lines
 | 
				
			||||||
;    #+Up::send ^!{Up}                                   ; ST2CODE
 | 
					;    #+Up::send ^!{Up}                                   ; ST2CODE
 | 
				
			||||||
@@ -375,6 +376,7 @@ $^Backspace::Send +{Home}{Delete}
 | 
				
			|||||||
#If
 | 
					#If
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#IfWinActive ahk_exe sublime_text.exe
 | 
					#IfWinActive ahk_exe sublime_text.exe
 | 
				
			||||||
 | 
					    #Space::Send ^{Space}                                   ; Basic code completion
 | 
				
			||||||
    #^Up::send !{O}                                         ; Switch file
 | 
					    #^Up::send !{O}                                         ; Switch file
 | 
				
			||||||
    #^f::send {F11}                                         ; toggle_full_screen
 | 
					    #^f::send {F11}                                         ; toggle_full_screen
 | 
				
			||||||
    ^!v::send {Ctrl Down}k{Ctrl Up}{Ctrl Down}v{Ctrl Up}    ; paste_from_history
 | 
					    ^!v::send {Ctrl Down}k{Ctrl Up}{Ctrl Down}v{Ctrl Up}    ; paste_from_history
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -213,6 +213,7 @@ define_keymap(None,{
 | 
				
			|||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define_keymap(lambda wm_class: wm_class.casefold() not in mscodes,{
 | 
					define_keymap(lambda wm_class: wm_class.casefold() not in mscodes,{
 | 
				
			||||||
 | 
					    K("Super-Space"): K("C-Space"),         # Basic code completion
 | 
				
			||||||
    # Wordwise remaining - for Everything but VS Code
 | 
					    # Wordwise remaining - for Everything but VS Code
 | 
				
			||||||
    K("M-Left"): K("C-Left"),               # Left of Word
 | 
					    K("M-Left"): K("C-Left"),               # Left of Word
 | 
				
			||||||
    K("M-Shift-Left"): K("C-Shift-Left"),   # Select Left of Word
 | 
					    K("M-Shift-Left"): K("C-Shift-Left"),   # Select Left of Word
 | 
				
			||||||
@@ -272,6 +273,7 @@ define_keymap(re.compile(codeStr, re.IGNORECASE),{
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Keybindings for Sublime Text
 | 
					# Keybindings for Sublime Text
 | 
				
			||||||
define_keymap(re.compile("Sublime_text", re.IGNORECASE),{
 | 
					define_keymap(re.compile("Sublime_text", re.IGNORECASE),{
 | 
				
			||||||
 | 
					    K("Super-Space"): K("C-Space"),             # Basic code completion
 | 
				
			||||||
    K("C-Super-up"): K("M-o"),                  # Switch file
 | 
					    K("C-Super-up"): K("M-o"),                  # Switch file
 | 
				
			||||||
    K("Super-RC-f"): K("f11"),                  # toggle_full_screen
 | 
					    K("Super-RC-f"): K("f11"),                  # toggle_full_screen
 | 
				
			||||||
    K("C-M-v"): [K("C-k"), K("C-v")],           # paste_from_history
 | 
					    K("C-M-v"): [K("C-k"), K("C-v")],           # paste_from_history
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user