Searching package for comment content
Hi, all. Does anyone have any ideas on this? I would like to be able to do a quick text search in all classes and methods in a package for text. for instance, when i see an opportunity for a refactor, i put a comment something like: "TODO: break this method apart here" and move on.. it would be great if i could quickly find all methods in my package that contain the text "TODO" in a comment somewhere. Thanks!
On 09 Mar 2015, at 15:44, sergio_101 <sergio.rrd@gmail.com> wrote:
Hi, all.
Does anyone have any ideas on this?
I would like to be able to do a quick text search in all classes and methods in a package for text.
for instance, when i see an opportunity for a refactor, i put a comment something like:
"TODO: break this method apart here"
and move on..
it would be great if i could quickly find all methods in my package that contain the text "TODO" in a comment somewhere.
You can just add self flag: #TODO. âdo this complex thing laterâ¦" search for senders of TODO -> list of everything. Or add the description as the argument to #flag: self flag âTODO: break this method apart hereâ. Marcus
Or you can add <todo: 'fix me'> and then search for methods using the pragma todo: Andrei On Mon, Mar 9, 2015 at 3:51 PM, Marcus Denker <marcus.denker@inria.fr> wrote:
On 09 Mar 2015, at 15:44, sergio_101 <sergio.rrd@gmail.com> wrote:
Hi, all.
Does anyone have any ideas on this?
I would like to be able to do a quick text search in all classes and methods in a package for text.
for instance, when i see an opportunity for a refactor, i put a comment something like:
"TODO: break this method apart here"
and move on..
it would be great if i could quickly find all methods in my package that contain the text "TODO" in a comment somewhere.
You can just add
self flag: #TODO. âdo this complex thing laterâ¦"
search for senders of TODO -> list of everything.
Or add the description as the argument to #flag:
self flag âTODO: break this method apart hereâ.
Marcus
I always do: self flag: #todo. âAn explanation hereâ probably not the best⦠but works. Esteban
On 09 Mar 2015, at 15:55, Andrei Chis <chisvasileandrei@gmail.com> wrote:
Or you can add
<todo: 'fix me'> and then search for methods using the pragma todo:
Andrei
On Mon, Mar 9, 2015 at 3:51 PM, Marcus Denker <marcus.denker@inria.fr <mailto:marcus.denker@inria.fr>> wrote:
On 09 Mar 2015, at 15:44, sergio_101 <sergio.rrd@gmail.com <mailto:sergio.rrd@gmail.com>> wrote:
Hi, all.
Does anyone have any ideas on this?
I would like to be able to do a quick text search in all classes and methods in a package for text.
for instance, when i see an opportunity for a refactor, i put a comment something like:
"TODO: break this method apart here"
and move on..
it would be great if i could quickly find all methods in my package that contain the text "TODO" in a comment somewhere.
You can just add
self flag: #TODO. âdo this complex thing laterâ¦"
search for senders of TODO -> list of everything.
Or add the description as the argument to #flag:
self flag âTODO: break this method apart hereâ.
Marcus
thanks all! this is just what i was looking for.. On Mon, Mar 9, 2015 at 11:01 AM Esteban Lorenzano <estebanlm@gmail.com> wrote:
I always do:
self flag: #todo. âAn explanation hereâ
probably not the best⦠but works.
Esteban
On 09 Mar 2015, at 15:55, Andrei Chis <chisvasileandrei@gmail.com> wrote:
Or you can add
<todo: 'fix me'> and then search for methods using the pragma todo:
Andrei
On Mon, Mar 9, 2015 at 3:51 PM, Marcus Denker <marcus.denker@inria.fr> wrote:
On 09 Mar 2015, at 15:44, sergio_101 <sergio.rrd@gmail.com> wrote:
Hi, all.
Does anyone have any ideas on this?
I would like to be able to do a quick text search in all classes and methods in a package for text.
for instance, when i see an opportunity for a refactor, i put a comment something like:
"TODO: break this method apart here"
and move on..
it would be great if i could quickly find all methods in my package that contain the text "TODO" in a comment somewhere.
You can just add
self flag: #TODO. âdo this complex thing laterâ¦"
search for senders of TODO -> list of everything.
Or add the description as the argument to #flag:
self flag âTODO: break this method apart hereâ.
Marcus
you can even use a nautilus plugin that shows you the list of all the flag: method in a package. Le 9/3/15 15:51, Marcus Denker a écrit :
On 09 Mar 2015, at 15:44, sergio_101 <sergio.rrd@gmail.com> wrote:
Hi, all.
Does anyone have any ideas on this?
I would like to be able to do a quick text search in all classes and methods in a package for text.
for instance, when i see an opportunity for a refactor, i put a comment something like:
"TODO: break this method apart here"
and move on..
it would be great if i could quickly find all methods in my package that contain the text "TODO" in a comment somewhere.
You can just add
self flag: #TODO. âdo this complex thing laterâ¦"
search for senders of TODO -> list of everything.
Or add the description as the argument to #flag:
self flag âTODO: break this method apart hereâ.
Marcus
Hi Sergio, use the finder, write TODO in the search area, select Source instead of Selectors, and you're set. Thierry 2015-03-09 15:44 GMT+01:00 sergio_101 <sergio.rrd@gmail.com>:
Hi, all.
Does anyone have any ideas on this?
I would like to be able to do a quick text search in all classes and methods in a package for text.
for instance, when i see an opportunity for a refactor, i put a comment something like:
"TODO: break this method apart here"
and move on..
it would be great if i could quickly find all methods in my package that contain the text "TODO" in a comment somewhere.
Thanks!
participants (6)
-
Andrei Chis -
Esteban Lorenzano -
Marcus Denker -
sergio_101 -
stepharo -
Thierry Goubier