This file contains hidden or 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
#!/bin/bash | |
echo '"\e[A": history-search-backward' >> ~/.inputrc | |
echo '"\e[B": history-search-forward' >> ~/.inputrc | |
echo 'set show-all-if-ambiguous on' >> ~/.inputrc | |
echo 'set completion-ignore-case on' >> ~/.inputrc | |
echo "run ' bind -f ~/.inputrc ' to enable better history completion." |
This file contains hidden or 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
" :actionlist可以查询所有命令 | |
" 基本思路 | |
" w 比如全屏、分屏 | |
" g 跳转 | |
" z 比如打开最近修改的文件那种了 | |
" q 关闭标签 | |
" e 运行/调试 | |
" t 任务 | |
set showmode |
This file contains hidden or 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
## Templates for custom ## | |
.toArray : convert to array | |
java.util.Collection → $expr$.toArray(new $arrayType:guessElementType(expr)):"Object"$[0]) | |
.toList : convert to List | |
ARRAY → java.util.Arrays.asList($expr$) | |
java.util.Collection → new java.util.ArrayList<>($expr$) | |
java.lang.Iterable → java.util.stream.StreamSupport.stream($expr$.spliterator(), false).collect(java.util.stream.Collectors.toList()) | |
java.util.Map → new ArrayList<>($expr$.entrySet()) |
This file contains hidden or 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
// 链接:https://gitee.com/moyihai/codes/virzeh8mdy3n1kq5w2ucg97/raw?blob_name=gistfile1.txt | |
// create map | |
mapkey('zT', '#8Open a URL', function(){ | |
Front.openOmnibar({type: "URLs", extra: "getAllSites"}); | |
}); | |
mapkey('<Space>', '#1Click on an Image or a button', function(){ | |
Hints.create("img, button", Hints.dispatchMouseClick); | |
}); | |
Front.registerInlineQuery({ | |
url: "http://fanyi.youdao.com/openapi.do?keyfrom=YouDaoCV&key=659600698&type=data&doctype=json&version=1.2&q=", |