I thought it would be useful if I could somehow hide the exact file name in each line. Or attach the file name to each line in the file.
This way, I don't need to parse the file name from the view. This might be useful in case the right spot on the line is difficult to find, or if the file name contains a newline character (eek), or if I would like to mangle the file name for presentation purposes.
So far I could not find a way to insert invisible text into a view. One idea I had is to just add a Python instance variable to the view:
- Code: Select all
self.view.list_of_files = some_array