Author Topic: User defined DEFS window  (Read 1281 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
User defined DEFS window
« on: May 24, 2021, 09:21:20 PM »
DEFs window is great for languages that slick knows - it automatically tags functions, variables, etc.
What about log files, or other files that slick doesn't know?

UserDefs would "tag" based on user supplied regexs.
For example:
Code: [Select]
Tag         Level   RegEx (perl)     
Header      1       ^\o:v
SubHeader   2       ^( +)\o:v
Error       -       (?i:ERROR:)

This doesn't need to be as full featured as Defs is, but some basic regex matching would be great.
Ideally, this would tie into "List Current Context" in Find as well :-)


Hm... you could make an error browser by populating USERDEFS with the error parsing regexs.

USERDEFS would have to support selecting between different sets of expressions (for different filetypes). I don't know if slick could automatically detect the right userdefs configuration - sometimes it probably could.