-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented editor override, general cleanup
- This implements #44 (minus the configuration file proposal) I.e. there is now an -e / --editor command line option which will override the value in the EDITOR environment variable or the default (currently hardcoded as "vim") - Logic to pick editor in this order moved to main() 1. Command line option from -e / --editor 2. EDITOR environment variable 3. "vim" (this should be further adjusted to a more suitable platform-specific default value) - Added more context if the editor command fails (shows the attempted command now) - Bumped version to 1.6.1 in Cargo.toml - Changed the value name for the rename_command option to COMMAND - General cleanup based on "cargo clippy" output: * Removed "use tempfile" * Removed "use wild" * Calling new.replacen() with char instead of string * .into_iter() -> .iter() * Changed a number of &Vec<*> arguments to &[*] * Deriving also from Eq in addition to PartialEq
- Loading branch information
Showing
4 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "pipe-rename" | ||
version = "1.5.0" | ||
version = "1.6.1" | ||
authors = ["Marcus Buffett <[email protected]>"] | ||
description = "Rename your files using your favorite text editor" | ||
homepage = "https://github.com/marcusbuffett/pipe-rename" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters