Author Topic: Show C/C++ Function name in search results  (Read 1030 times)

rowbearto

  • Senior Community Member
  • Posts: 947
  • Hero Points: 44
Show C/C++ Function name in search results
« 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

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4160
  • Hero Points: 294
Re: Show C/C++ Function name in search results
« Reply #1 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.

rowbearto

  • Senior Community Member
  • Posts: 947
  • Hero Points: 44
Re: Show C/C++ Function name in search results
« Reply #2 on: December 23, 2016, 02:51:58 pm »
Thanks Clark!

jporkkahtc

  • Senior Community Member
  • Posts: 1499
  • Hero Points: 125
  • Text
Re: Show C/C++ Function name in search results
« Reply #3 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.

rowbearto

  • Senior Community Member
  • Posts: 947
  • Hero Points: 44
Re: Show C/C++ Function name in search results
« Reply #4 on: September 20, 2017, 12:41:54 pm »
Any chance this feature would make it into Version 22? It would be very useful.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1150
  • Hero Points: 106
Re: Show C/C++ Function name in search results
« Reply #5 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.

rowbearto

  • Senior Community Member
  • Posts: 947
  • Hero Points: 44
Re: Show C/C++ Function name in search results
« Reply #6 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 :(.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1150
  • Hero Points: 106
Re: Show C/C++ Function name in search results
« Reply #7 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.

rowbearto

  • Senior Community Member
  • Posts: 947
  • Hero Points: 44
Re: Show C/C++ Function name in search results
« Reply #8 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.