Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jakeroggenbuck/format-filename

Format filenames to a command-line friendly format
https://github.com/jakeroggenbuck/format-filename

Last synced: 5 days ago
JSON representation

Format filenames to a command-line friendly format

Awesome Lists containing this project

README

        

# Format filename
Format filenames to a command-line friendly format

![image](https://github.com/JakeRoggenbuck/format-filename/assets/35516367/02a60dc3-a694-4dd4-8976-d269940727c9)

## Why?
I often find myself in the command-line running programs like [Neovim](https://neovim.io/) (aliased to `v`) on text files or [Zathura](https://github.com/pwmt/zathura) on PDF files.
I usually name files with underscores, as it's easier to type out than a space when using the command-line. Similarly, I often don't use slashes, parentheses, or any other character that needs to be [excaped](https://en.wikipedia.org/wiki/Escape_character) for the reason of not having to type out more than needed. However, not all files are named this way by default, so this program makes it easier to change it quickly. It's also a good excuse to write something in [Rust](https://www.rust-lang.org/) ( :crab: ).

## Usage

```
formatfilename 0.1.0
Format filenames to a command-line friendly format

USAGE:
formatfilename

FLAGS:
-h, --help Prints help information
-V, --version Prints version information

ARGS:
Input file
```