[英]Emacs: How do i move the cursor directly to (interactive command line?) without a mouse
How do I move the cursor directly here 如何在此处直接移动光标
without a mouse? 没有鼠标?
In your current situation, you can use M-minus Cx o , or press Cx o twice. 在您目前的情况下,您可以使用M-minus Cx o ,或按两次Cx o 。 Cx o invokes the
other-window
function which moves the cursor to the next window, prefixing it with -
moves it to the previous one. Cx o调用
other-window
函数,该函数将光标移动到下一个窗口,前缀为-
将其移动到前一个窗口。
This is a better way to select the minibuffer, regardless from where your point is set now, and won't do anything when there actually is no minibuffer. 这是选择迷你缓冲区的更好方法,无论您现在的位置在何处,并且在实际上没有迷你缓冲区时都不会执行任何操作。
I actually copied the answer (since this is a duplicate question) from Trey Jackson 我实际上是从Trey Jackson那里复制了答案 (因为这是一个重复的问题)
(defun switch-to-minibuffer-window ()
"switch to minibuffer window (if active)"
(interactive)
(when (active-minibuffer-window)
(select-window (active-minibuffer-window))))
(global-set-key (kbd "<f7>") 'switch-to-minibuffer-window)
如果启用(windmove-default-keybindings)
则可以根据需要多次键入S- <down> (切换到您所在的窗口下方的窗口(windmove-default-keybindings)
来选择迷你缓冲区。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.