SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Features and/or Improvements => Topic started by: rowbearto on December 22, 2016, 07:04:22 pm

Title: Show C/C++ Function name in search results
Post by: rowbearto on December 22, 2016, 07:04:22 pm
Hi:

It would be very helpful if it could be possible to add an option so that when results are shown in search windows (Find in Files or Find->List all occurrences), that along with the line number we are also informed about which C/C++ function (or data structure) each result is in.

Rob
Title: Re: Show C/C++ Function name in search results
Post by: Clark on December 23, 2016, 02:36:50 pm
Definitely doable for List all occurrences. Might be hard to do for multi-file searching (not sure). Maybe the procedure could be added as the results are received. That seems doable to me.
Title: Re: Show C/C++ Function name in search results
Post by: rowbearto on December 23, 2016, 02:51:58 pm
Thanks Clark!
Title: Re: Show C/C++ Function name in search results
Post by: jporkkahtc on January 03, 2017, 02:46:56 am
This would be really nice.

For FIF, this could even be a post process ... as the results start pouring in, another thread gets to work adding context, such as function names.

Adding file tree and columns to the search results windows would make displaying this extra information even better.
Title: Re: Show C/C++ Function name in search results
Post by: rowbearto on September 20, 2017, 12:41:54 pm
Any chance this feature would make it into Version 22? It would be very useful.
Title: Re: Show C/C++ Function name in search results
Post by: Lee on September 20, 2017, 12:54:14 pm
Have you tried the new option in v22 in Search Results options for List current context?  The matches are sorted by
 filename, then by function in the results, and are collapsable.
Title: Re: Show C/C++ Function name in search results
Post by: rowbearto on September 20, 2017, 01:03:12 pm
Sweet! I did not notice that!

Just tried it with a single file search and it looks good! It would be nice to also have an option to print the function name on the same line as the search result too, I understand that could get a little busy though.

I just tried it with "Find in Files" though and SE appears to have frozen :(.
Title: Re: Show C/C++ Function name in search results
Post by: Lee on September 20, 2017, 01:07:21 pm
Whoa.  That was working earlier in the beta cycle, I will have see what changed.  I'll get it fixed.  Thanks for the report.
Title: Re: Show C/C++ Function name in search results
Post by: rowbearto on September 20, 2017, 01:13:18 pm
Thanks for taking a look! Also when I said "it would be a little busy though" to have function name on the same line, I don't mind the busy :). If you could squeeze in an option like this I would sincerely appreciate it.