{"id":374,"date":"2010-04-20T09:20:46","date_gmt":"2010-04-20T08:20:46","guid":{"rendered":"http:\/\/www.any-where.de\/blog\/?p=374"},"modified":"2010-09-21T13:46:40","modified_gmt":"2010-09-21T12:46:40","slug":"count-search-results-in-gedit","status":"publish","type":"post","link":"https:\/\/www.any-where.de\/blog\/count-search-results-in-gedit\/","title":{"rendered":"Count search results in gedit."},"content":{"rendered":"<p><small><strong>Update September 21:<\/strong><br \/>\nAfter all, I found some time to reimplement the algorithm for highlighting XML. It is now triggered by a new button in the toolbar. As it now does not run automatically, this will be another improvement to overall speed. Feel free to download the new version at the provided download link below or at <a href=\"http:\/\/github.com\/mmuell23\/mmuell23\">github<\/a>!<\/p>\n<p><strong>Update May 5:<\/strong><br \/>\nCount results are now being displayed in the Status Bar instead of an alert window. Also, there were a couple of bug fixes. Feel free to download the new version at the provided download link below or at <a href=\"http:\/\/github.com\/mmuell23\/mmuell23\">github<\/a>!<\/small><\/p>\n<p>Lately I was looking for a small but missing feature in <a href=\"http:\/\/live.gnome.org\/Gedit\/\" target=\"_blank\">gedit<\/a>: I needed to be able to count all occurrances of a selected word. This is a standard feature in many other editors such as Notepad++ in the Windows world, for example. However, I didn&#8217;t come across a solution on the net, so I decided to write a little plug-in myself.<\/p>\n<p><strong>What it does:<\/strong> After marking a word the plug-in counts all occurrances of the selection in the current document. It adds a new button to the toolbar and an entry to the menu right in the &#8220;Search&#8221; section. On top of that you may trigger counting the selection by hitting &#8220;CTRL+SHIFT+F&#8221;.<span style=\"text-decoration: line-through;\"> A small pop-up window will appear and show the results of the search.<\/span> The results will be displayed in the status bar of the window.<\/p>\n<p><strong>How to use it:<\/strong> Simply mark a word, and have a look at the statusbar: The number of search results will be displayed there.<\/p>\n<p><a href=\"http:\/\/www.any-where.de\/blog\/wp-content\/uploads\/2010\/05\/counted_elements.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-375\" title=\"Plug-in to count occurrances of selection in current document\" src=\"http:\/\/www.any-where.de\/blog\/wp-content\/uploads\/2010\/05\/counted_elements.png\" alt=\"\" width=\"322\" height=\"106\" \/><\/a><\/p>\n<p>If you find it useful, feel free to download the plug-in here:<\/p>\n<p><strong>Donwload at github:<a href=\"http:\/\/github.com\/mmuell23\/mmuell23\" target=\"_blank\"><br \/>\nhttp:\/\/github.com\/mmuell23\/mmuell23<\/a><\/strong><\/p>\n<pre>git clone http:\/\/github.com\/mmuell23\/mmuell23.git\r\ncp -r mmuell23\/gedittools\/* ~\/.gnome2\/gedit\/plugins<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Update September 21: After all, I found some time to reimplement the algorithm for highlighting XML. It is now triggered by a new button in the toolbar. As it now does not run automatically, this will be another improvement to overall speed. Feel free to download the new version at the provided download link below &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.any-where.de\/blog\/count-search-results-in-gedit\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Count search results in gedit.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,4],"tags":[128,241,130],"class_list":["post-374","post","type-post","status-publish","format-standard","hentry","category-linux","category-programming-the-web","tag-gedit","tag-linux","tag-plug-in"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":20,"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/posts\/374\/revisions\/455"}],"wp:attachment":[{"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.any-where.de\/blog\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}