github tstack/lnav v0.12.2-beta1

latest releases: v0.12.3, v0.12.3-beta6, v0.12.3-beta5...
pre-release7 months ago

lnav v0.12.2

Features:

  • Added a journald:// URL handler that will call journalctl
    and pass any query parameters as options. For example, the
    following command:

    $ lnav 'journal://?since=yesterday'
    

    Will execute the following and capture the output:

    journalctl --output=json -f --since=yesterday
    
  • Added the "last-word" line-format field shortening algorithm
    from @flicus.

  • Added a stats.hist PRQL transform that produces a histogram
    of values over time.

  • The preview for the :open command will now show a listing
    of archive contents.

  • Added humanize_id SQL function that colorizes a string using
    ANSI escape codes.

  • Added mouse support that can be toggled with F2 or enabled
    by default with: :config /ui/mouse/mode enabled. With
    mouse support enabled, many of the UI elements will respond to
    mouse inputs:

    • clicking on the main view will move the cursor to the given
      row and dragging will scroll the view as needed;
    • shift + clicking/dragging in the main view will highlight
      lines and then toggle their bookmark status on release;
    • double-clicking will select the underlying token and
      drag-selecting within a line will select the given text;
    • when text is selected, a menu will pop up that can be used
      to filter based on the current text, search for it, or copy
      it to the clipboard;
    • clicking in the scroll area will move the view by a page and
      dragging the scrollbar will move the view to the given spot;
    • clicking on the breadcrumb bar will select a crumb and
      selecting a possibility from the popup will move to that
      location in the view;
    • clicking on portions of the bottom status bar will trigger
      a relevant action (e.g. clicking the line number will open
      the command prompt with :goto <current-line>);
    • clicking on the configuration panel tabs (i.e. Files/Filters)
      will open the selected panel and clicking parts of the
      display in there will perform the relevant action (e.g.
      clicking the diamond will enable/disable the file/filter);
    • clicking in a prompt will move the cursor to the location.
      This is new work, so there are likely to be some glitches.
  • Added a selected_text column to the lnav_views table that
    reports information about text that was selected with a mouse.
    This makes it possible to script operations that use the
    selected text as an input.

Interface changes:

  • The bar charts in the DB view have now been moved to their
    individual columns instead of occupying the whole width of
    the view. The result is much cleaner, so the charts are
    now enabled by default again.

  • Cursor mode in the main view is now the default instead of
    using the top line as the focus. You can change back by
    running:

    :config /ui/movement/mode top

  • In the parser details panel (opened by pressing p), you
    can now hide/show fields by moving the cursor line to the
    given field and pressing the space bar or by clicking on
    the diamond with the mouse.

Bug Fixes:

  • With the recent xz backdoor shenanigans, it seems like a good
    time to add some checks for data being hidden by escape codes:
    • File names with escape sequences are now displayed in quotes
      with backslash escapes.
    • Text that has the same foreground and background colors will
      have the background set to a contrasting color.
  • Sub-millisecond time values should now be preserved when
    displaying JSON-lines logs.
  • A crash during initialization on Apple Silicon and MacOS 12
    has been fixed.
  • A crash when previewing non-text files.
  • Various fixes to make lnav usable as a PAGER.

Don't miss a new lnav release

NewReleases is sending notifications on new releases.