在Emacs,我该如何选择用键盘完成列表? [英] In Emacs, how do I select the completion list with the keyboard?
问题描述
当我制表完整的小缓冲区和Emacs在新的缓冲区显示完成列表,我怎么切换到该缓冲区不使用鼠标?
When I tab-complete in a minibuffer and Emacs displays a completion list in a new buffer, how do I switch to that buffer without using the mouse?
我试过 C-X 0
,但只是切换到第一个缓冲区,在外面我进入迷你缓冲区。
I tried C-x o
, but that just switched to the first buffer, out of which I entered the minibuffer.
我也试过 CX b
,但是这给了我命令试图使用迷你缓冲区,而在小缓冲区
。
I also tried C-x b
, but that gives me command attempted to use minibuffer while in minibuffer
.
最后,我试过 CX< C-右GT;
,这给了我不能切换中的缓冲区小缓冲区窗口
。
Lastly I tried C-x <C-right>
, which gives me cannot switch buffers in minibuffer window
.
编辑:我谈到在我的例子完成迷你缓冲区中,但能够访问来自一个普通的缓冲区内完成列表(使用键盘)也很重要,对我来说,并没有工作。在 MV
快捷方式被提出,但它只是似乎是由的Mx访问迷你缓冲区内工作
,在所有其他缓冲区我已经试过, MV
势必向下滚动命令
并不会切换到完成列表。我并不甚至似乎在其他minibuffers工作。 !或者
I spoke about minibuffer completion in my example, but being able to access the completion list (using the keyboard) from within a regular buffer is also important to me, and not working. The M-v
shortcut was suggested, but it only seems to work inside the minibuffer accessed by M-x
, in every other buffer I've tried, M-v
is bound to scroll down command
and does not switch to the completion list. I doesn't even seem to work in other minibuffers. For example, it doesn't work in the shell command minibuffer invoked by M-!
either.
推荐答案
您可以使用<大骨节病> MV 骨节病>(记录的这里),它切换到完成缓冲区并把光标放在第一个完成:
You can use M-v (documented here) which switches to the completion buffer and puts the cursor on the first completion:
打字的M-V,而在小缓冲区,选择示出的窗口
完成列表(交换机到完工)。这铺平了道路使用的方式
下面的命令。 &LT;上一页&GT;
或&LT;&之前GT;
不相同。你也可以
在其他方面选择窗口...
Typing M-v, while in the minibuffer, selects the window showing the completion list (switch-to-completions). This paves the way for using the commands below.
<PageUp>
or<prior>
does the same. You can also select the window in other ways...
编辑:根据您的修改原来的问题正是你要求的是切换到落成缓冲更多的全球性的方式是什么样子。有一个函数交换机到完井
的选择列表落成 - 你可能会认为功能绑定到你选择的,例如一键:
It looks like based on your edit to the original question that what you're asking for is a way to switch to the completions buffer more globally. There is a function switch-to-completions
that selects the completions list - you might consider binding that function to a key of your choosing, e.g.:
(define-key global-map (kbd "C-x t") 'switch-to-completions)
例如,这样的结合让我切换到从落成Shell命令:通过调用<大骨节病>米 - 骨节病>,并将光标放在第一个可能完成
For example, such a binding allows me to switch to completions from "Shell command: " invoked by M-!, and places the cursor on the first possible completion.
这篇关于在Emacs,我该如何选择用键盘完成列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!