如何为 vi 键绑定添加 xdvi 中的 find-previous 或 xpdf 中的 findPrevious?

发布于 2024-08-16 11:32:55 字数 364 浏览 3 评论 0 原文

有没有办法在 xdvi 中添加 find-previous 函数或在 xpdf 中添加 findPrevious 函数?这些相当于打开搜索对话框并已选中“向后搜索”选项的功能。

我需要这样的函数才能

bind ? any findPrevious

在我的 .xpdfrc 和

xdvi.mainTranslations: #override\
                                 <Key>?:find-previous()

.Xdefaults 中定义键绑定。然后我在这两个程序中都会有一套完整的类似 vi 的键绑定。

Is there a way to add a find-previous function in xdvi or a findPrevious function in xpdf? Those would be equivalent to a function that brings up the search dialog with the "Search backwards" option already checked.

I need such functions in order to define keybindings

bind ? any findPrevious

in my .xpdfrc and

xdvi.mainTranslations: #override\
                                 <Key>?:find-previous()

in my .Xdefaults. I'd then have a complete set of vi-like keybindings in both programs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情独悲 2024-08-23 11:32:55

您可能需要更改 xpdf 的代码。我读过一次xpdf的源代码,它提供了search-backwards功能,但没有给出按键绑定。

You may have to change the code of xpdf. I read the source code of xpdf once, it provides the search-backwards function, but does not give a key binding.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文