Mac上结合Chrome快捷键使用Vimium
vimium是Chrome浏览器的一个插件,用来以键盘流的方式操纵Chrome
帮助
?:打开帮助
前进后退
H:后退(Chrome下⌘ + [ or ⌘ + Left arrow)
L:前进(Chrome下⌘ + ] or ⌘ + Right arrow)
窗口
打开
Chrome下⌘ + n:打开一个新窗口
关闭
Chrome下⌘ + Shift + w:关闭当前窗口
标签页
打开
t:创建一个新的空标签页(Chrome下⌘ + t)
o:在当前页打开
O:在新标签页打开
b:在当前页打开书签
B:在新标签页打开书签
关闭
x:关闭当前标签页(Chrome下⌘ + w)
恢复
X:恢复刚刚关闭的标签页(Chrome下⌘ + Shift + t)
切换
J:上个标签页
K:下个标签页
g0:第一个标签页
g$:最后一个标签页
T:在当前打开的标签页中选择一个进行切换
Vimium
浏览当前页面:
? show the help dialog for a list of all available keys
h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
d scroll down half a page
u scroll up half a page
f open a link in the current tab
F open a link in a new tab
r reload
gs view source
i enter insert mode -- all commands will be ignored until you hit Esc to exit
yy copy the current url to the clipboard
yf copy a link url to the clipboard
gf cycle forward to the next frame
gF focus the main/top frame
导航到新页面:
o Open URL, bookmark, or history entry
O Open URL, bookmark, history entry in a new tab
b Open bookmark
B Open bookmark in a new tab
使用find:
/ enter find mode
-- type your search query and hit enter to search, or Esc to cancel
n cycle forward to the next find match
N cycle backward to the previous find match
有关高级用法,请参阅Wiki上的正则表达式。
浏览您的历史记录:
H go back in history
L go forward in history
操纵标签:
J, gT go one tab left
K, gt go one tab right
g0 go to the first tab
g$ go to the last tab
^ visit the previously-visited tab
t create tab
yt duplicate current tab
x close current tab
X restore closed tab (i.e. unwind the 'x' command)
T search through your open tabs
W move current tab to new window
<a-p> pin/unpin current tab
使用标记:
ma, mA set local mark "a" (global mark "A")
`a, `A jump to local mark "a" (global mark "A")
`` jump back to the position before the previous jump
-- that is, before the previous gg, G, n, N, / or `a
其他高级浏览命令:
]], [[ Follow the link labeled 'next' or '>' ('previous' or '<')
- helpful for browsing paginated sites
<a-f> open multiple links in a new tab
gi focus the first (or n-th) text input box on the page
gu go up one level in the URL hierarchy
gU go up to root of the URL hierarchy
ge edit the current URL
gE edit the current URL and open in a new tab
zH scroll all the way left
zL scroll all the way right
v enter visual mode; use p/P to paste-and-go, use y to yank
V enter visual line mode
Chrome
Action | Shortcut |
---|---|
Open a new window | ⌘ + n |
Open a new window in Incognito mode | ⌘ + Shift + n |
Open a new tab, and jump to it | ⌘ + t |
Re-open the last closed tab, and jump to it | ⌘ + Shift + t |
Jump to the next open tab | ⌘ + Option + Right arrow |
Jump to the previous open tab | ⌘ + Option + Left arrow |
Jump to a specific tab | ⌘ + 1 through ⌘ + 8 |
Jump to the last tab | ⌘ + 9 |
Open the previous page in your browsing history for the current tab | ⌘ + [ or ⌘ + Left arrow |
Open the next page in your browsing history for the current tab | ⌘ + ] or ⌘ + Right arrow |
Closes the current tab or pop-up | ⌘ + w |
Closes the current window | ⌘ + Shift + w |
Minimise the window | ⌘ + m |
Hide Google Chrome | ⌘ + h |
Quit Google Chrome | ⌘ + q |