tim-cli 0.1.0

Command line text editor like vim. But tim.
Documentation
  • Coverage
  • 0%
    0 out of 15 items documented0 out of 4 items with examples
  • Size
  • Source code size: 38.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.19 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 21s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Nvt500/Tim
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Nvt500

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