GithubHelp home page GithubHelp logo

Comments (4)

tstack avatar tstack commented on June 19, 2024

Try turning on cursor-mode by pressing CTRL + X. You can permanently enable cursor mode by running the following :config command:

:config /ui/movement/mode cursor

from lnav.

bagonyi avatar bagonyi commented on June 19, 2024

Thank you for pointing out cursor-mode, it is indeed a good workaround.

The only issue I have noticed, is that when moving between the error messages in cursor-mode using the e key, the line under focus will cause the text to be hidden, due to the background and foreground colours being the same.

Cursor not on the error line:

Screenshot 2023-10-06 at 10 54 51

Cursor on the error line:

Screenshot 2023-10-06 at 10 55 08

from lnav.

bagonyi avatar bagonyi commented on June 19, 2024

Another issue I am seeing is that in cursor mode the chronological navigation using the r/R keys appears to be somewhat broken.

If in cursor mode I go to the first line in the log file, type :goto 1 seconds later, and press the r key a few times, the cursor advances second by second, as expected. When I press the R key, the cursor goes back to a second earlier. However, when I press the R key a 2nd time, nothing happens, it just stays on the same line. If I exit cursor mode, the R key starts to function as expected.

from lnav.

tstack avatar tstack commented on June 19, 2024

The only issue I have noticed, is that when moving between the error messages in cursor-mode using the e key, the line under focus will cause the text to be hidden, due to the background and foreground colours being the same.

Ah, sorry, this is a bug in the default theme. Maybe try a different one for now, I usually use the monocai theme. You can change the theme with the :config command. For example, to set it to monocai, you would do:

:config /ui/theme monocai

If in cursor mode I go to the first line in the log file, type :goto 1 seconds later, and press the r key a few times, the cursor advances second by second, as expected. When I press the R key, the cursor goes back to a second earlier. However, when I press the R key a 2nd time, nothing happens, it just stays on the same line. If I exit cursor mode, the R key starts to function as expected.

I can replicate this, thanks! I'll get it fixed right away.

from lnav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.