简体   繁体   English

在emacs中编辑I-search字?

[英]Edit I-search word in emacs?

When I search in the text, I type Cs, then type the word, then type Cs again and again, the cursor go forward to next locations of found words. 当我在文本中搜索时,我键入Cs,然后键入单词,然后反复键入Cs,光标前进到找到的单词的下一个位置。 The problem is, once I go to next word, I could not edit the search word in the mini buffer at the button, if I press Backspace, it goes to the previous found word in the text, but not deleting the last letter in the search word at the bottom. 问题是,一旦我转到下一个单词,我就无法在按钮的迷你缓冲区中编辑搜索词,如果我按退格键,它会转到文本中之前找到的单词,但不会删除该单词中的最后一个字母。在底部搜索单词。 How can I get back to edit the word when doing the search? 如何在搜索时返回编辑单词?

You can use Me at any time during Isearch to edit the search string. 您可以在Isearch期间随时使用Me来编辑搜索字符串。 When done editing, just resume searching (eg, with Cs ). 完成编辑后,只需继续搜索(例如,使用Cs )。

我从不喜欢isearch中退格的默认行为,所以我删除了搜索字符串的最后一个字符:

(define-key isearch-mode-map (kbd "<backspace>") 'isearch-del-char)

一旦按下退格键次数按下退格键,它就会开始删除字符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM