Merge branch 'master' of gitee.com:klesh/dotfiles
This commit is contained in:
commit
bfe541e34d
|
@ -36,6 +36,10 @@
|
|||
"splitMode": "duplicate"
|
||||
},
|
||||
"keys": "alt+shift+d"
|
||||
},
|
||||
{
|
||||
"command": null,
|
||||
"keys": "ctrl+,"
|
||||
}
|
||||
],
|
||||
"copyFormatting": "none",
|
||||
|
|
11
win/setup/open-admin-cmd-explorer.reg
Normal file
11
win/setup/open-admin-cmd-explorer.reg
Normal file
|
@ -0,0 +1,11 @@
|
|||
Windows Registry Editor Version 5.00
|
||||
|
||||
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
|
||||
@="Admin Command Here"
|
||||
"NoWorkingDirectory"=""
|
||||
"HasLUAShield"=""
|
||||
"Position"="Top"
|
||||
"Icon"="C:\\Windows\\System32\\cmd.exe"
|
||||
|
||||
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
|
||||
@="cmd.exe /s /k pushd \"%V\""
|
10
win/win.ahk
10
win/win.ahk
|
@ -187,3 +187,13 @@ ToggleActiveWinMaximum() {
|
|||
WinMaximize, A
|
||||
}
|
||||
}
|
||||
|
||||
GetSelectedText() {
|
||||
tmp = %ClipboardAll% ; save clipboard
|
||||
Clipboard := "" ; clear clipboard
|
||||
Send, ^c ; simulate Ctrl+C (=selection in clipboard)
|
||||
ClipWait, 0, 1 ; wait until clipboard contains data
|
||||
selection = %Clipboard% ; save the content of the clipboard
|
||||
Clipboard = %tmp% ; restore old content of the clipboard
|
||||
return selection
|
||||
}
|
Loading…
Reference in New Issue
Block a user