Skip to content

How to show "Last modified" timestamp for each found file in result list? (prepended or as additional column) #1285

Closed

Description

@pstein

Assume I search in all *.pdf files on a partition for a certain pattern.

The result list contains 20 matches.

Unfortunately I cannot see the last modified timestamp of each file.

How can I tell dnGrep to show this "Last modified" timestamp (sortable in format yyyy.mm.dd hh.mm.ss) either
as new separate column or prepended to each file name in result list?

Activity

  1. fade2gray commented on Mar 9, 2025

    @fade2gray

    You can view the file details by hovering the mouse cursor over each result (#1011) - being able to sort by timestamp would be useful.

  2. doug24 commented on Mar 9, 2025

    @doug24
    Contributor

    This has been requested a least a few times in the past - #954 for one. I have tried adding columns to the results tree, but it did not work. Just appending more data - last write time, file size, etc., makes it very difficult to read.

    You can sort the results by 'Last write time' and get the date and time in the tooltip as @fade2gray says above.

    Another idea would be to replace the results tree with a list of files, like Windows file explorer in Details view. Then it could show file path, file name, match count, read only, date modified, size or other data in columns. You could then drill down into a selected file with a double click, button or keyboard shortcut and show the matches in a format similar to the second level of the current tree. But you would be looking at one file at a time and you would lose is the ability to view the match results from multiple files and continuously scroll through them as you can now.

    This would be a lot of work, and I don't know if I have the time to work on it.

  3. florinbuda85 commented on Apr 2, 2026

    @florinbuda85

    hey @doug24 ,

    i just came here with the same issue - a grid display would be very helpful. please consider making this change

  4. VladTester255 commented on Apr 7, 2026

    @VladTester255
    Contributor

    Пожалуй соглашусь что при определенных событиях это помогает в поиске данных.
    Возможно лучшее решение не заменять текущий вид, а добавить переключатель на вид как в explorer.

  5. doug24 commented on Apr 20, 2026

    @doug24
    Contributor

    Everyone: I had some time to work on this (with a lot of help from Claude Opus 4.6) and have made a lot of progress. This is an optional view: you can switch between this new Details view and the original view.

    The columns shown below are resizable, sortable, and dragged to reorder. All changes are stored in the dnGrep settings file. Sorting by column uses the same sorting as on the Sort menu. Opening the tree node works the same as before, showing lines with matches. The context menu is the same as before but is attached only to the file name column.

    These columns match up with the information shown on the original view, plus the file size, file type, and last modified date. The Path is the relative path from the search directory, as in the original view. The Info column is currently used for the Excel sheet name or the PowerPoint slide number.

    Are there any other columns you would like to see in the details view? Anything else I have missed?

    Image
  6. fade2gray commented on Apr 20, 2026

    @fade2gray

    Excellent, as always. 👍

  7. florinbuda85 commented on Apr 21, 2026

    @florinbuda85

    Looks very impressive! Thank you! It's a big step that is helpful.

    There's a thing that might help (although I never quite needed it): an "export the list" functionality. I'm only mentioning it here because i'm imagining that is not very hard to implement.

  8. doug24 commented on Apr 21, 2026

    @doug24
    Contributor

    @florinbuda85 Exporting the data should already be covered by the last five items on the More... menu (just to the right of the Sort button). The three 'Copy' items copy data in various formats to the clipboard. There are also three file formats which can be customized using the Report options.

  9. doug24 commented on May 12, 2026

    @doug24
    Contributor

    Added in v4.7.54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions