Skip to content

joaocarvalhoopen/less_fp_-_Simple_less_with_fixation_points

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

less_fp - Simple less with fixation points.

In principle it's is supposed to help you read a little bit faster.

Description

This simple program reads a text file, paginate's and shows it with fixation points in bold. In principal they are supposed to allow you to read faster.
Use Esc to quit.
Use 'q' to prev_page.
Use 'a' to next_page.
Use '/' to search for a string.
Use '/' to search + Enter key to exit search mode.
Use 'p' to prev found string.
Use 'n' to next found string.
Use mouse or keyboard for terminal resize.
I tested it under Linux maybe it works under Windows.
This is a nostalgia project, so that I could remember the Sintra green terminals that emulated VT100 terminals, in my first years of college :-)

Screenshots

Help screen

Program help

Output screen

Output text example

You can press 'a' to go to the next page or 'q' to go to the previous page.
You can make a search for a string, by pressing in '/' and entering the search string.

Output enter the string to search example

You can press 'n' to go to the next founded word or 'p' to go to the previous founded word.
You can make a search for a string, by pressing in '/' and press Enter to exit search mode. Or enter a new search string. The current search string will be in bold.

Output result of search example

To compile and run

# Compile for debug
cargo build  

# or

# Compile for release
cargo build --release


# Run the program 
cargo run -- --help

# or 

cargo run -- --file alice.txt

# or

./target/debug/less_fp --file alice.txt

# or

./target/release/less_fp --file alice.txt

Dependencies

clap = "3.1.18"
unic-normal = "0.9.0"
crossterm = "0.23.2"

References

License

MIT Open Source license.

Have fun!

Best regards,
João Nuno Carvalho

About

In principle it's is supposed to help read a little bit faster.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages