Comments (4)
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.
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](https://private-user-images.githubusercontent.com/604444/273173288-78bf8957-2a55-489a-bbfa-0e3c4b59e4e3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAxNDc3NzYsIm5iZiI6MTcxMDE0NzQ3NiwicGF0aCI6Ii82MDQ0NDQvMjczMTczMjg4LTc4YmY4OTU3LTJhNTUtNDg5YS1iYmZhLTBlM2M0YjU5ZTRlMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMxMVQwODU3NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYjczNzA5ZGY1ODZiMzdkODcxNTg1MThjMTMyM2VkYTE4NmU2MGJjOThiODBhNTJhZmMyZmRkNDg0MmM4YjhjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.JfAFtprMB-hW-rqq8cvM-ZxMOHWOqmgwVPuyLe8XUkc)
Cursor on the error line:
![Screenshot 2023-10-06 at 10 55 08](https://private-user-images.githubusercontent.com/604444/273173307-8f06698a-c055-447b-b6f4-87f0582c1f53.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAxNDc3NzYsIm5iZiI6MTcxMDE0NzQ3NiwicGF0aCI6Ii82MDQ0NDQvMjczMTczMzA3LThmMDY2OThhLWMwNTUtNDQ3Yi1iNmY0LTg3ZjA1ODJjMWY1My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMxMVQwODU3NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03YzY2MzRkMWQ1YTU2NmUwMTZiNDdkMWVkNDJhYzQ5Njk0N2IyZDQxMjZkZjgyNjgyYTJlZTFlMjFmNTk2ZTM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.nApmvkTRn2B6eM0wsxIR-cA4xEKBfma3xomGOHAnTTY)
from lnav.
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.
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)
- Allow "o"/"shift+O" opid hotkey in pretty print view
- Cannot scroll in parser view HOT 3
- Logs with mixed timestamp formats confuse timestamp parsing HOT 5
- Pressing CTRL + j cannot jump to the previous hit that was found
- Local variables are not working in a rewriter script HOT 1
- getting current log line JSON data and issues related to it HOT 4
- Add support for 256 color ANSI escape sequences HOT 2
- arguments of lnav scripts are not expanded in sql queries consistently HOT 2
- :sh seem to have 1000ms performance overhead HOT 2
- Invoking of external commands does not work with lnav -e HOT 2
- There is no way to read hidden fields HOT 2
- Cannot capture the output of external command (:sh displays it)? HOT 5
- converter with stdin
- "ssh [email protected]" - Connection reset by peer HOT 2
- Stuck when SSH connect to ARM host
- Crash during indexing large file HOT 2
- sssd logs in lnav -C report "no format found for file" HOT 5
- Prepend timestamps option `-t` is no longer supported in `v0.12.0-beta1` HOT 8
- Min-width is not enforced when using max-width and abbrev overflow HOT 1
- Prompt existing overwrites when using `lnav -i <file>` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lnav.