<p dir="ltr">Vašku, if we agree on adding more search engines to g.search, I suggest to define the features and interface (--help output) now and I can start think about more generic concept of the code</p>
<p dir="ltr">modules<br>
maps, groups<br>
mapsets<br>
locations?<br>
regions<br>
...</p>
<p dir="ltr">OR and AND flag</p>
<p dir="ltr">terminal output, shell script output, json output</p>
<p dir="ltr">this starts to be pretty heavy module :-) <br><br></p>
<br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 28, 2015, 02:25 Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Nov 27, 2015 at 6:06 PM, Jachym Cepicky <span dir="ltr"><<a href="mailto:jachym.cepicky@gmail.com" target="_blank">jachym.cepicky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p dir="ltr">ahoj Vašku,</p>
<p dir="ltr">not sure about the maps. wouldn't be better to extend g.list?</p></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Perhaps, the search could include title names as well - this would be the extension to g.list. This makes sense as you usually know if you are searching maps/groups/... or modules.<br><br>On the other hand, g.search could provide unified simple search interface for searching/listing maps and modules - a simple "fulltext" search for word. This would wrap more general g.list pattern search interface. There is few other things we could search: Mapsets, Locations, and color tables. But let's ignore this for now.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p dir="ltr">about the name: g.module.search?<br></p></blockquote><div>g.search aspect<br>g.module.search aspect<br>g.search.module aspect<br><br>g.module.search sounds good. In GUI the tree and search tab is called Search modules, renamed from ambiguous Module search. Your original g.search is shorter and since it will be used in the command line, we should probably keep it short. So, at the end, I would keep g.search unless somebody is against that.<br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p dir="ltr">need to work on the output a bit more...<br></p></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Also, keep in mind that the XML may change at one point. See explanations in:<br><br>[GRASS-dev] wxgui_items.xml: outdated<br><a href="https://lists.osgeo.org/pipermail/grass-dev/2015-October/077137.html" target="_blank">https://lists.osgeo.org/pipermail/grass-dev/2015-October/077137.html</a><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p dir="ltr">would -g flag be useful as well?</p></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Certainly, although not for me now.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p dir="ltr">glad you like it </p></blockquote><div>I suggest to put it to trunk as soon as you are comfortable with the code and basic features.<br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span><font color="#888888">
<p dir="ltr">jachym<br>
</p></font></span><div><div>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 27, 2015, 17:13 Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Nov 27, 2015 at 10:51 AM, Jachym Cepicky <span dir="ltr"><<a href="mailto:jachym.cepicky@gmail.com" target="_blank">jachym.cepicky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I've tried to implement command line alternative to module search based on keywords, which is available in the gui - it's called g.search</div><div><br></div><div>Any chance, you might find this useful ? Any comment to the source code and outputs?</div><div><br></div><div><a href="https://github.com/jachym/g.search" target="_blank">https://github.com/jachym/g.search</a><span><font color="#888888"><br></font></span></div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I think it is awesome:<br><br>$ g.extension extension=g.search url=<a href="https://github.com/jachym/g.search" target="_blank">https://github.com/jachym/g.search</a><br>$ g.search MLC<br><br>i.gensig<br> Description: Generates statistics for i.maxlik from raster map.<br> Keywords: imagery,classification,supervised classification,Maximum Likelihood Classification,MLC,signatures<br><br>i.maxlik<br> Description: Classifies the cell spectral reflectances in imagery data. Classification is based on the spectral signature information generated by either i.cluster, g.gui.iclass, or i.gensig.<br> Keywords: imagery,classification,Maximum Likelihood Classification,MLC<br></div><div><br></div><div>The code is minimalistic, so the duplication with GUI code is minimal or none.<br></div><div><br></div><div>I suggest to put it to trunk, but to consider the name first. g.search sounds good but does it search modules or maps or both? Are the maps a possible extension of the current functionality?<br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Vaclav<br></div></div></div></div></blockquote></div>
</div></div></blockquote></div></div></div></blockquote></div>