chrome
小狐狸
小狐狸
  • UID31694
  • 注册日期2010-01-22
  • 最后登录2022-03-25
  • 发帖数61
  • 经验17枚
  • 威望0点
  • 贡献值8点
  • 好评度0点
阅读:2604回复:5

Pentadactyl, Passkeys 的复杂功能怎么用?

楼主#
更多 发布于:2011-04-10 08:19
对Vimp3的状态栏无爱,暂时叛逃dactyl阵营,关于 Passkeys 取代 feedsomekeys 问题,

帮助中叙述:

More subtle and complex pass through can be achieved using groups and mode-specific mappings utilizing the <Pass> pseudo-key.


参考链接:

https://groups.google.com/group/pentada ... c62835d1e#

group! greader -locations=https://www.google.com/reader/*
nnoremap -group greader  J  j<pass>


group! greader -locations=https://www.google.com/reader/*
map -b J <C-v>j

以上试过都无效,

到底该怎么用啊?
chrome
小狐狸
小狐狸
  • UID31694
  • 注册日期2010-01-22
  • 最后登录2022-03-25
  • 发帖数61
  • 经验17枚
  • 威望0点
  • 贡献值8点
  • 好评度0点
1楼#
发布于:2011-04-10 08:19
峄峰:set passkeys+=<URL>:<Keys>
要 Pass 的单键放在冒号后面,组合键用","分割
例如 在 twitter 屏蔽 j、k、s、r、v、?、-、n、回车,几个单键和 gh、gr、Shift+r 几个组合键可以写成
set passkeys+=twitter.com:jksrv?-n<CR>,gh,gr,<S-r>`

要用 Group 也行,就是比较麻烦:
 
 group gr -locations=https://www.google.com/reader/*
 noremap -g=gr j <Pass> //还原 j 的本来功能;
 noremap -g=gr K <C-v>k //用大写 K 还原小写 k 的功能。
回到原帖


noremap -g=gr K <C-v>k


我想要的就是这个功能, pass后再映射,语法貌似没错,可就是无效啊T_T
游客

返回顶部