2011-03-26 31 views
8

IDE,如Eclipse,CodeBlocks和編輯器(如Notepad ++)會突出顯示雙擊單詞的所有實例。我在gedit中錯過了這個功能。當然,我可以按Ctrl + k突出顯示所有實例,但這很奇怪。無論如何,這個功能可以通過插件添加到gedit中嗎?是否有任何其他編輯器可以在Linux中執行此操作,在gedit中雙擊所有匹配的單詞

回答

7

我覺得這個插件不想要你想要的:在gedit中的喜好

git clone http://github.com/mmuell23/mmuell23.git 
cp -r mmuell23/gedittools/* ~/.gnome2/gedit/plugins 

激活插件並配置它,如你所願。

Credits to https://github.com/mmuell23/mmuell23

6

我剛剛針對編寫Gedit 3插件(與Gedit 2不兼容)進行了博客。如果你知道Python並擁有Gedit 3,那麼這個插件不會那麼困難。你想要實現Gedit.ViewActivatable接口並利用Gedit.Document API提供的搜索功能。

Writing Plugins for Gedit 3 with Python