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

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
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: 6823
  • Hero Points: 526
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: 2335
  • Hero Points: 132
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: 2620
  • Hero Points: 210
  • 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: 2335
  • Hero Points: 132
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: 1299
  • Hero Points: 130
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: 2335
  • Hero Points: 132
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: 1299
  • Hero Points: 130
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: 2335
  • Hero Points: 132
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.