o
odin.langpkg.dev
packages / tool / term-tools

term-tools

4355335tool

tools for the windows terminal

No license · updated 3 months ago

term-tools

tools / commands for the terminal, written in odin

! only tested/works on windows
! requires utf-8 terminal, not the pre-installed command prompt on windows
! requires NerdFont for icons

ls

replacement for dir command
lists all files in directory / subdirectories

  -w:XX -> set max line width, min is 24
  -d:XX -> set sub dir depth, min is 0
  -f:XX -> set max files shown in subdirs, <=0 means no cap
  -dir  -> only show dirs
  -p:X  -> set preset
  -X    -> set preset
  
  example:
  > ls
  > ls path/to/dir
  > ls -w:30 
  > ls -w:30 -d:2 -f:0
  > ls path/to/dir -w:30 -d:2 -f:0
  > ls path\to\dir -w:30 -d:2 -f:0
  > ls -dir -d:100
  > ls -p:0
  > ls -0

logo


config-file

set the default values and presets for setting multiple values
at once uding -p:X or -X commands
presets go up to [preset:9]

[width] 40
[depth] 0
[files] 1
[dirs]  true

// preset

[preset:0] {
  [width] 40
  [depth] 1
  [files] 0
  [dirs]  false
}
[preset:1] {
  [width] 40
  [depth] 2
  [files] 0
  [dirs]  false
}
[preset:2] {
  [width] 40
  [depth] 3
  [files] 0
  [dirs]  false
}

todo

  • ! names sometimes immediately after icon
  • appropriate file icons
  • config file for default settigs ?
  • use color ?
  • add -conf / -config command to print path of config file and result

todo

  • ls / dir
  • copy / xcopy
  • rename
  • delete
  • git wrapper ?
    • xyz ""

    • -> git add & commit -m "USER: " & push
  • cat
    • dump md files