0
想知道是否有人知道控制在magit中滾動的參數。目前,當我處於緩衝區並保持按下空格鍵時,其他窗口中的差異視圖滾動到底部,並繼續回到頂部並滾動 - 實際上是無休止的。有沒有辦法讓它停在底部?Emacs magit diff-buffer滾動 - 如何在底部停止
想知道是否有人知道控制在magit中滾動的參數。目前,當我處於緩衝區並保持按下空格鍵時,其他窗口中的差異視圖滾動到底部,並繼續回到頂部並滾動 - 實際上是無休止的。有沒有辦法讓它停在底部?Emacs magit diff-buffer滾動 - 如何在底部停止
沒有爲沒有選擇,但你可以得到你想要的行爲被重新定義magit-diff-show-or-scroll-up
:
(defun magit-diff-show-or-scroll-up()
"Update the commit or diff buffer for the thing at point.
Either show the commit or stash at point in the appropriate
buffer, or if that buffer is already being displayed in the
current frame and contains information about that commit or
stash, then instead scroll the buffer up. If there is no
commit or stash at point, then prompt for a commit."
(interactive)
(magit-diff-show-or-scroll (lambda() (scroll-up))))
不錯..我猜你強迫'(到pCASE ..'不匹配並使滾動錯誤沒有操作。謝謝 - 它的工作原理! – RoyM
是的,這是如何工作的。 – tarsius