Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add MMV_NAME and MCP_NAME compile-time variablesv1.3.0 | Luca Matei Pintilie | 2023-09-14 | 1 | -3/+10 |
| | | | | | | | | | | | | | | | Due to the sheer popularity of the "mmv" name it might conflict with other programs installed on the user's computer. As such the MMV_NAME and MCP_NAME environmental variables can control the program's name at compile time, allowing the user to avoid name conflicts with other programs. If the variables are not set then they will silently default back to "mmv" and "mcp" respectively. Signed-off-by: Luca Matei Pintilie <luca@lucamatei.com> Co-authored-by: Thomas Voss <mail@thomasvoss.com> | ||||
* | Add support for copying files | Thomas Voss | 2023-08-25 | 1 | -8/+38 |
| | |||||
* | Use nanosecs for backup dirname | Thomas Voss | 2023-08-15 | 1 | -1/+1 |
| | | | | | | The user doesn’t need this level of precision, but using seconds might cause problems if two processes are spawned in quick succession to each other. Since we have the options, why not use the most precise one? | ||||
* | Name backup directories after current epoch | Thomas Voss | 2023-08-15 | 1 | -2/+5 |
| | |||||
* | We can terminate with EOF when using -iv1.0.1 | Thomas Voss | 2023-08-12 | 1 | -9/+0 |
| | |||||
* | Print to stderr with -d | Thomas Voss | 2023-08-12 | 1 | -1/+1 |
| | |||||
* | Run ‘cargo fmt’ | Thomas Voss | 2023-08-12 | 1 | -5/+20 |
| | |||||
* | When using -e, swap back to newlines from nul | Thomas Voss | 2023-08-12 | 1 | -5/+5 |
| | |||||
* | Change --dryrun to --dry-run | Thomas Voss | 2023-08-12 | 1 | -1/+1 |
| | |||||
* | Make -v 500x better | Thomas Voss | 2023-08-12 | 1 | -11/+34 |
| | |||||
* | Swap flags.nobackup for flags.backup | Thomas Voss | 2023-08-12 | 1 | -5/+17 |
| | |||||
* | Remove the cache directory after successful operation | Thomas Voss | 2023-08-12 | 1 | -2/+7 |
| | |||||
* | Add the -n option | Thomas Voss | 2023-08-12 | 1 | -11/+15 |
| | |||||
* | Backup the files being renamed | Thomas Voss | 2023-08-12 | 1 | -0/+31 |
| | |||||
* | Update cerm to v1.1.1 | Thomas Voss | 2023-08-12 | 1 | -26/+8 |
| | |||||
* | Add a helper ‘disp()’ function | Thomas Voss | 2023-08-07 | 1 | -3/+7 |
| | |||||
* | Take greater advantage of itertools | Thomas Voss | 2023-08-07 | 1 | -6/+8 |
| | |||||
* | Add an ‘is_terminal’ predicate | Thomas Voss | 2023-08-07 | 1 | -2/+6 |
| | |||||
* | Use block comments like a C-chad | Thomas Voss | 2023-08-06 | 1 | -3/+3 |
| | |||||
* | Fix comment formatting | Thomas Voss | 2023-08-06 | 1 | -1/+1 |
| | |||||
* | Get -0 and -i to play nice with each other | Thomas Voss | 2023-08-06 | 1 | -31/+61 |
| | |||||
* | Fix retarded rustfmt shit | Thomas Voss | 2023-08-06 | 1 | -2/+2 |
| | |||||
* | Implement the -i flag | Thomas Voss | 2023-08-06 | 1 | -48/+112 |
| | |||||
* | Add missing flag to usage string | Thomas Voss | 2023-08-06 | 1 | -1/+1 |
| | |||||
* | Move args parsing to Flags::parse | Thomas Voss | 2023-08-06 | 1 | -25/+28 |
| | |||||
* | Improve the -d flag | Thomas Voss | 2023-08-06 | 1 | -9/+12 |
| | | | | | | | Now when performing a dry run, you are shown the direct move from src to dst. This is a lot more helpful since the end user doesn’t really care about whatever temporary folder we store things in; the user just wants to make sure the command he’s about to execute will do what he expects. | ||||
* | Make the -e flag work as intended | Thomas Voss | 2023-08-06 | 1 | -8/+18 |
| | |||||
* | Formart the codebase | Thomas Voss | 2023-08-06 | 1 | -20/+19 |
| | |||||
* | Remove the error module and use cerm | Thomas Voss | 2023-08-02 | 2 | -111/+66 |
| | | | | Fuck proxit, all my homies hate proxit. | ||||
* | Use my new “proxit” crate | Thomas Voss | 2023-08-01 | 2 | -36/+6 |
| | |||||
* | Move some code out to move_path() | Thomas Voss | 2023-07-29 | 1 | -15/+14 |
| | |||||
* | Support -v, and make -d imply -v | Thomas Voss | 2023-07-29 | 1 | -5/+12 |
| | |||||
* | Build a 3-tuple intead of mutating a 2-tuple | Thomas Voss | 2023-07-29 | 1 | -19/+15 |
| | |||||
* | Copy+Delete because filesystems | Thomas Voss | 2023-07-29 | 1 | -2/+13 |
| | | | | | | | | | | | | Turns out that ‘fs::rename()’ calls ‘rename(2)’ under the hood. This is a problem because the temporary directory we use is typically located on a different filesystem than your home directory for example, and so this would fail. The shitty workaround here is to copy the files and then delete them. But it just keeps getting better! Turns out that despite the fact that ‘everything is a file’ on *NIX, we cannot just call ‘fs::copy()’ or ‘fs::remove_file()’ on directories; that would be too smart. | ||||
* | Minor comment reformat | Thomas Voss | 2023-07-29 | 1 | -2/+1 |
| | |||||
* | Reorder imports, and remove unused ones | Thomas Voss | 2023-07-29 | 1 | -2/+3 |
| | |||||
* | Genesis commit | Thomas Voss | 2023-07-29 | 3 | -0/+350 |