This file contains 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
; How it works? Well, when you type a single word with erranous spellings to Google, it way "Did you mean ...". | |
; This AHK script grab that piece of Google Suggestion and pass it back to the clipboard. | |
; Purpose: select the world to the left of the cursor, and correct using Google: | |
; Credits: AutoHotkey Community (Linfeng is not able to find the original source.) | |
; Please comment if you are able to find the source of those fantastic regex expressions | |
;; Usage: use Ctrl + Alt + Shift + H, to select the word to the left of your active cursor, | |
;; and replace it with whatever Google corrects it to be. | |
;; Warning: only work best for very-close, but wrong, spellings. |
This file contains 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
; How it works? Well, when you type a single word with erranous spellings to Google, it way "Did you mean ...". | |
; This AHK script grab that piece of Google Suggestion and pass it back to the clipboard. | |
; Purpose: select the world to the left of the cursor, and correct using Google: | |
; Credits: AutoHotkey Community (Linfeng is not able to find the original source.) | |
; Please comment if you are able to find the source of those fantastic regex expressions | |
;; Usage: use Ctrl + Alt + Shift + H, to select the word to the left of your | |
;; active cursor, and replace it with whatever Google corrects it to be. | |
;; Warning: only work best for very-close, but wrong, spellings. |
This file contains 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
; Since Github refuse to render anything in the old Firefox 55, I need to switch to Tridactyl with the newer Firefox. | |
; Yet, the <c-w> is missing from Tridactyl, and it is impossible to implemnet an Insert mode there | |
; This maps <c-w> to delete the word, and <alt + q> to take out (close) a tab. | |
; Lastly, <Alt + Shift + Q> will close the entire window. It is impractical to kill all existing process as done on Mac. | |
#IfWinActive ahk_exe firefox.exe | |
;questionable piece, 2018-11-06: may not get used to it in the end. | |
!q:: send ^w | |
^w:: Send ^+{Left}{BS} | |
; End of questionable piece. | |
!+q:: send !{F4} |
This file contains 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
let blacklists = ["https://calendar.google.com/*","https://mail.google.com/*","http://www.yilan.io/*"] |
This file contains 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
" Snippet from my ~/.vimrc, where I use `Y` for fetching the absolute path, and use `<leader><leader>n` to fetch the name of the file. | |
" Other mappings were done a while ago. Kept for potential audience as they do demonstrate a wide variety of flags applicable for the expand() function. | |
if has('win32') | |
"Copy the full file path to windows clipboard. | |
nnoremap Y :let @* = expand("%:p")<CR> | |
"Copy the file name to windows clipboard. | |
nnoremap yyy :let @* = expand("%:p:t")<CR> | |
"Now using leaders: | |
" Full path | |
nnoremap <leader><leader>f :let @* = expand("%:p")<CR> |
This file contains 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
let blacklists = ["https://mail.google.com/*","http://localhost/*","https://calendar.google.com/*","https://www.overleaf.com/*","https://app.getpocket.com/*","https://gallery.mailchimp.com/*","https://colab.research.google.com/*","https://www.tumblr.com/*","https://www.youtube.com/*","https://docs.google.com/*","https://todoist.com/*","https://toggl.com/*","https://groups.google.com/*"] | |
" Settings |
This file contains 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
#IfWinActive ahk_exe PDFXCview.exe | |
; Note, this script is built on one major assumption: | |
; 1. that there is a labeled routine called CenterMouseOnActiveWindow, from: https://www.autohotkey.com/boards/viewtopic.php?t=60433 | |
; 2. that the Property window shall open at the **center** of the active window. For XChangeViewer, this is exactly the case. | |
~RButton:: | |
Hotkey, f, f, On | |
KeyWait, f, D T3 | |
Hotkey, f, f, Off | |
if(!ErrorLevel) { | |
; Send, {Esc} |
This file contains 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
# Store as `~/.config/zathura/zathurarc` | |
# Store the following in `~/.config/nvim/init.vim`. | |
# Though, with VimTeX, it is optional to populate the synctex setting in Zathura. | |
set synctex true |
This file contains 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
SCRIPT /home/llinfeng/vimfiles/plugged/vimwiki/autoload/vimwiki/diary.vim | |
Sourced 1 time | |
Total time: 0.000560 | |
Self time: 0.000560 | |
count total (s) self (s) | |
" vim:tabstop=2:shiftwidth=2:expandtab:textwidth=99 | |
" Vimwiki autoload plugin file | |
" Description: Handle diary notes | |
" Home: https://github.com/vimwiki/vimwiki/ |
This file contains 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
FUNCTION <SNR>167_update_hg_branch() | |
Defined: ~/vimfiles/plugged/vim-airline/autoload/airline/extensions/branch.vim:148 | |
Called 23 times | |
Total time: 0.002346 | |
Self time: 0.002071 | |
count total (s) self (s) | |
23 0.000465 0.000190 if airline#util#has_lawrencium() | |
let cmd='LC_ALL=C hg qtop' | |
let stl=lawrencium#statusline() |
OlderNewer