Skip to content

Comments

Add -r shortcut to toggle absolute/relative line numbers#183

Open
Oliver-Looney wants to merge 1 commit intoPaulJuliusMartinez:mainfrom
Oliver-Looney:relative_line_number_toggle
Open

Add -r shortcut to toggle absolute/relative line numbers#183
Oliver-Looney wants to merge 1 commit intoPaulJuliusMartinez:mainfrom
Oliver-Looney:relative_line_number_toggle

Conversation

@Oliver-Looney
Copy link

@Oliver-Looney Oliver-Looney commented Feb 22, 2026

Hello, this is a cool project! Would like to make this change


Add -r shortcut to toggle absolute/relative line numbers

To close #134


>  cargo test
warning: method `clear_screen` is never used
  --> src/terminal.rs:57:8
   |
56 | pub trait Terminal: Write {
   |           -------- method in this trait
57 |     fn clear_screen(&mut self) -> Result;
   |        ^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `jless` (bin "jless" test) generated 1 warning
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
     Running unittests src/main.rs (target/debug/deps/jless-5cfd06cee43ef823)

...

test result: ok. 68 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
➜  cargo build
warning: methods `clear_screen`, `output`, and `clear_output` are never used
  --> src/terminal.rs:57:8
   |
56 | pub trait Terminal: Write {
   |           -------- methods in this trait
57 |     fn clear_screen(&mut self) -> Result;
   |        ^^^^^^^^^^^^
...
72 |     fn output(&self) -> &str;
   |        ^^^^^^
...
75 |     fn clear_output(&mut self);
   |        ^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `jless` (bin "jless") generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard shortcut to toggle relative/absolute line numbers?

1 participant