Trowser

A browser for large line-oriented text files, implemented in Tcl/Tk.
Download

Trowser Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL v3
  • Price:
  • FREE
  • Publisher Name:
  • Tom Zoerner
  • Publisher web site:
  • http://search.cpan.org/~tomzo/Video-ZVBI-0.2.3/ZVBI.pm

Trowser Tags


Trowser Description

A browser for large line-oriented text files, implemented in Tcl/Tk. Trowser is a browser for large line-oriented text files, implemented in Tcl/Tk. Trowser application is meant as an alternative to "less". Compared to less, trowser adds color highlighting, a persistent search history, graphical bookmarking, separate search result (i.e. filter) windows and flexible skipping of input from pipes to STDIN. Trowser has a graphical interface, but is designed to allow browsing via the keyboard at least to the same extent as less. Key bindings and the cursor positioning concept are derived from vim.Note: in this context "line-oriented" denotes that each line of text is considered a data unit. Color highlighting (including search matches) will always apply the highlight to the complete text line.RationaleTrowser was developed for sifting through debug output files written by software under development. Such debug files can get very large; in the extreme, there could be a line of trace written for every entered function (e.g. documenting the call and actual parameters) and one more line every time a function is left. When debugging complex exceptions, it's often necessary to analize several hundreds or thousands of lines of debug trace to understand the cause.Such analysis usually starts by first looking at top-level events (e.g. stimuli by the environment) and then digging down into the details. trowser was developed to facilitate this process. Of course one could also use standard tools such as grep or awk and less or vim to tackle this task, but this way lots of repetitive manual hacking on the command line is required. For an every-day task, it seems worth to invest some time into automating the process in a specialized tool.As of the initial 1.0 release, many of trowser's features are still not that much different from what can be found in various regular text editors. Future development may extend the filtering capabilities though (e.g. by allowing multiple search results windows and pre-defined stacks of search patterns to allow quick folding-in and -out of trace detail levels.) Additionally, trowser already has the capability to automatically parse data out of the trace file which can be included in bookmarks and search results list and could easily be extended in that direction for different applications. With less than 7000 lines of code trowser still is a relatively small application (in large part thanks to the powerful "text" widget in Tk) so there's only a low barrier of getting familiar with the source code to allow extending or adapting the functionality for your own needs. Here are some key features of "Trowser": · The first screenshot shows the main window with a text which has color highlighting applied and an ongoing incremental search (for an expression which matches the line marked in yellow) plus three bookmarked text lines; · The second screenshot shows the highlight pattern editor dialog (holding the patterns used for the previous screenshot); · The third screenshot shows the search history dialog (i.e. a list of previously used search patterns) and the search result list (the list is filled with all lines matching the three patterns selected in the search history list shown above; one line is highlighted in yellow as it matches a new search in the main window); · The fourth window shows the bookmark list (these are the lines marked with a blue dot in the first screenshot); · The last screenshot shows the pipe load dialog which pops up when the input stream exceeds the buffer size to allow skipping excessive input data What's New in This Release: · Background highlighting tasks have been improved in respect to scrolling or jumping, so that no incompletely highlighted text portions become visible anymore. · Background search and highlighting tasks have been made "smoother" so that interactive use is less hindered. · A bug in background task management has been fixed which sometimes led to an infinite lock-up of background tasks. · The display of progress bars and status messages has been changed to work better with some older window managers (which previously painted those windows with decorations and failed to force them to the top.) · A work-around for a Tk text(3) anomaly which caused very slow processing of the "Discard text below/above cursor" command was added. · The performance and usability of several search list commands was improved by changing them into background tasks with progress bar and allowing to abort ongoing tasks via the "Escape" key. · A confirmation dialog was added before aborting an ongoing search, offering to delay the new command until the current operation is completed. · The performance of the "frame number" calculation in the search list was improved by extending the cache. · Search "all" was improved to keep the currently selected text line visible (i.e. instead of scrolling away upon insertions.) · Key bindings (ALT-N and ALT-P) and command buttons were added to allow restricting "search all" to matches below or above the current cursor position. · Key bindings "u" and CTRL-r were added to the main window, to allow quick undo or redo of additions to the search list. · The search history was extended to remember the case match and regular expression options. · A new command was added to the search list dialog which allows importing line number lists (such as generated by grep -n) · Vim compatibility of key bindings in the main window was improved by adding jump stack control commands CTRL-o and CTRL-i and extending the list of commands which allow repeat counts.


Trowser Related Software