Author Topic: Search results - sort files by path  (Read 249 times)

Dennis

  • Senior Community Member
  • Posts: 3982
  • Hero Points: 517
Search results - sort files by path
« on: June 20, 2024, 05:02:19 PM »
Currently, there does not seem to be any order to the way files are inserted in the Search Results tool window.  It would help a lot if they were sorted by path.  For example, I have log files that are in directories with the date and time encoded in the directory name.  If they were sorted, it would be much easier to follow the sequence of events.  This could be an option, if performance is a concern.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6919
  • Hero Points: 531
Re: Search results - sort files by path
« Reply #1 on: June 20, 2024, 11:52:22 PM »
Try setting def_search_result_sorted_filenames to 1. This effects performance but it should still be fast enough.

Tools>Options>Editing>Search>Sort Find in Files search results by filename

« Last Edit: June 20, 2024, 11:54:32 PM by Clark »

Dennis

  • Senior Community Member
  • Posts: 3982
  • Hero Points: 517
Re: Search results - sort files by path
« Reply #2 on: June 21, 2024, 01:48:09 PM »
Cool!  I was just looking in the wrong place.

Dennis

  • Senior Community Member
  • Posts: 3982
  • Hero Points: 517
Re: Search results - sort files by path
« Reply #3 on: June 21, 2024, 02:14:36 PM »
It would be helpful if there were a way to modify a setting like this in Admin.xml.

Code: [Select]
<DefVar Name="def_search_result_sorted_filenames" Value="1"/>
I frequently spin up a new editor in a default configuration to search log directories:  vs +new -sc /tmp/defcon7 .

Dennis

  • Senior Community Member
  • Posts: 3982
  • Hero Points: 517
Re: Search results - sort files by path
« Reply #4 on: June 21, 2024, 02:47:57 PM »
Something like this:  Would also need to add docs about the new tag(s) to Admin.xml

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6919
  • Hero Points: 531
Re: Search results - sort files by path
« Reply #5 on: June 21, 2024, 09:55:47 PM »
I can't seem to get this patch file to work. I wonder if it's because it's for a CRLF file. Please post the entire new file so I can diff it to see the changes.

Dennis

  • Senior Community Member
  • Posts: 3982
  • Hero Points: 517
Re: Search results - sort files by path
« Reply #6 on: June 24, 2024, 05:06:29 PM »
attached.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6919
  • Hero Points: 531
Re: Search results - sort files by path
« Reply #7 on: June 24, 2024, 07:06:53 PM »
Thanks. We will add this to the next hot fix build.