tim-cli

Crates.iotim-cli
lib.rstim-cli
version0.1.0
sourcesrc
created_at2024-08-20 21:40:11.954524
updated_at2024-08-20 21:40:11.954524
descriptionCommand line text editor like vim. But tim.
homepagehttps://github.com/Nvt500/tim
repositoryhttps://github.com/Nvt500/tim
max_upload_size
id1345802
size39,334
Nvt5 (Nvt500)

documentation

README

Tim

Crates.io

Command line text editor like vim. But tim.

It lets you open a file in your terminal to edit files with word wrap and an undo functionality.

Tim also includes a file explorer to quickly select the correct file.

Installation

cargo install tim-cli

Please rename the executable to tim since it will be downloaded as tim-cli because someone had to take the name.

Commands

Command line text editor like vim. But tim.

Usage: tim <FILE_PATH> [OPTIONS]

Options:
    -c, --create        Creates but doesn't open file
    -d, --delete        Deletes file
    -r, --rename [NAME] Renames file to [NAME] or user inputted
    -b, --dark          White on black
    -l, --light         Black on white

Usage: tim [OPTIONS]

Options:
    -f, --files         Opens a file explorer to pick a file to open
    -h, --help          Shows commands
    -k, --keybinds      Shows keybinds/controls

Examples

tim foo.txt --create            // Creates foo.txt
tim foo.txt --rename bar.txt    // Renames foo.txt to bar.txt
tim bar.txt --delete            // Deletes bar.txt

tim foo.txt -- create           // Creates foo.txt
tim foo.txt -- rename           // Renames foo.txt to bar.txt
Enter a new name for the file:
bar.txt

tim bar.txt -- delete           // Deletes bar.txt

Pretty self-explanatory.

Controls

Text Editor:
    Esc, End, Delete, Ctrl-S => Exit
    Arrow Keys => Move Cursor
    Ctrl-Z => Undo

File Explorer:
    Esc, End, Delete, Ctrl-S => Exit
    Arrow Keys => Move Cursor
    Enter, Space => Select
    Backspace => Parent Directory
Commit count: 0

cargo fmt