gdh1995 / vimium-c

A keyboard shortcut browser extension for keyboard-based navigation and tab operations with an advanced omnibar
https://chrome.google.com/webstore/detail/vimium-c/hfjbmagddngcpeloejdejnfgbamkjaeg
Other
3.43k stars 254 forks source link

如何将用于用于定位链接和按钮的序号字符配置为默认小写? #1241

Open Zim-Inn opened 1 month ago

Zim-Inn commented 1 month ago

我使用edge版的vimium-c插件,按f弹出的链接和按钮编码中如果包含字母,则我必需按住shift才能定位该字母,这是为什么呢? 我希望实现在绝大多数场景中,仅通过fxx来定位到网页上的任一可点击元素.

这是我的快捷键映射配置

unmapAll
map ? showHelp
map <a-/> enterInsertMode
# map <a-/> openUrl \
  url="vimium://status/toggle-disabled/^%20<a-/>"
map <a-?> enterInsertMode key="<a-?>"
# map <c-b:i> editText run="replace,_$s%20%s_"
map <a-t> createTab
map <a-r> reloadTab

map w scrollPageUp
map s scrollPageDown
map a scrollLeft
map d scrollRight
map q scrollUp
map e scrollDown
map W scrollToTop
map S scrollToBottom
map A goBack
map D goForward
map Q goPrevious
map E goNext

map r reload
map R reloadGivenTab
map f LinkHints.activate
run <v-lh> LinkHints.activate$s mask=
run vq lh WithQueue
run vr v button="right"
run va lh CopyLinkUrl
run vt lh CopyLinkText
run vs lh SearchLinkText
run vb vs keyword="bing"
run vc vt
run vC lh CopyImage
map vv LinkHints.activateHover \
  toggle={".bilibili-player-area":"video-control-show"}
run vz lh Leave
run vd lh DownloadLink
run vD lh DownloadImage
run vi lh Edit
run vI lh OpenImage
map vp LinkHints.activateOpenUrl
run Gg lh OpenInNewTab
run vg Gg newtab="force"
run vT lh OpenVomnibar
run vE v action="edit-url"
run vV lh Select
map o Vomnibar.activate
map g Vomnibar.activateInNewTab
map t Vomnibar.activateTabSelection preferTabs="new"
run T t tree="from-start" currentWindow
map h Vomnibar.activateHistoryInNewTab
map ve Vomnibar.activateUrl
map b Vomnibar.activateBookmarksInNewTab
map <c-s-d> duplicateTab
map z restoreTab
map x removeTab goto="previous,near" highlighted
map j previousTab
map k nextTab
map Z restoreGivenTab
map Xx removeRightTab
map Xz closeTabsOnLeft $count=-1
map Xc closeTabsOnRight $count=1
map Xa closeOtherTabs
map Ct copyWindowInfo type="tab"
map Ca copyCurrentUrl type="frame"
map c autoCopy url decode
map Cs searchAs
map Cv autoOpen
map V openCopiedUrlInCurrentTab
run Ce V \
  keyword="v.math-copy"
map <c-v> openCopiedUrlInNewTab copied="urls"

map u goUp
run i focusInput:(<c-m>:W+150wait)%cfocusInput \
  o.keep o.select="all-line" o.reachable=false \
  o.clickable=".js-toggle-inline-comment-form" \
  o.prefer="#js-issues-search,#searchEngines"
# map i focusInput $if={"before":"v1.92.0"}

map n nextFrame
map UU goToRoot
map Uu goUp trailingSlash
map Uf parentFrame
map N moveTabToNewWindow
map I moveTabToIncognito
map <a-n> moveTabToNextWindow tabs
map <c-i> toggleCS
map <c-s-i> enableCSTemp
map <a-s-i> clearCS
map p visitPreviousTab acrossWindows
map Pp togglePinTab
map Pn passNextKey
run Pm Pn normal
map <a-m> toggleMuteTab

map / enterFindMode postOnEsc
map . performFind
map , performBackwardsFind
map <a-.> performAnotherFind
map ; enterVisualMode
map : enterVisualLineMode
run <f8> ;
map > moveTabRight
map < moveTabLeft
run m Marks.activate$s#swap mask=
run M m Create
map <c-m> mainFrame
map <a-s-h> clearFindHistory

run ` m
run ~ M
map <a-~> Marks.clearGlobal
map <a-`> Marks.clearLocal

map <f1> simBackspace
map <s-f1> switchFocus select="all-line"
map <s-f12> focusOrLaunch url="vimium://options" \
  reuse="reuse-in-cur-wnd"

run <v-sia> searchInAnother##keyword=$s mask

map Gn toggleVomnibarStyle
Zim-Inn commented 1 month ago

为什么linkHintNumbers会出现字母? 这个配置对应于我在设置页面编辑的用于标识链接序号的字符. image

Zim-Inn commented 1 month ago

原来是因为我不小心开启了使用链接和按钮的文字来在提示模式列出的对象中筛选这个选项,导致每次必须按大写