Search Unity

Feature Request Console "remembers" line clicked in search

Discussion in 'Editor & General Support' started by Sinister-Design, May 20, 2021.

  1. Sinister-Design

    Sinister-Design

    Joined:
    Sep 19, 2015
    Posts:
    66
    This is a relatively straightforward request. You can search to narrow down results in the console log (thank goodness), but unfortunately you can't see the surrounding context without dismissing the search--which in turn causes the line you wanted to disappear into the mists. My suggestion is simple: if a console log result is highlighted blue because the user clicked it, then when the search is dismissed, take to the user to the spot in the console log where that result appears. This will make the console log search feature dramatically more useful!
     
    Joe-Censored likes this.
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    That would be helpful.

    Something you could do now is to do your searches in the log file itself. You could also use commands like grep to help.

    Code (csharp):
    1. cat logfile.log | grep -i -C 20 "something to search for"
    This will show you 20 lines of context around anything in the log which matches. You can also download grep for Windows.
     
  3. justinas_p

    justinas_p

    Unity Technologies

    Joined:
    Nov 7, 2016
    Posts:
    6
    As far as I remember, this functionality was added in 2021.1.0a7