Skip to content
/ edfp Public

A visual-editor based command line tool for manipulating files.

License

Notifications You must be signed in to change notification settings

RyanMcG/edfp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

edfp

edit file paths


WIP

Currently this program does behave as described below, but maybe not as you would expect in all cases.

Usage

ls | edfp

edfp reads stdin, assumes each line is a path to a file object (file or directory) and allows for easy manipulation of those objects.

  1. Changing the name of the file will rename it.
  2. Clearing the line will delete it.

Example

$ mkdir playground && cd playground
$ touch a b c
$ ls
a b c
$ ls | edfp

Your VISUAL (or EDITOR if unset) program of choice will be opened with each line representing a file path:

a
b
c

Let's say you edit it to this:

x

y

Write and quit your editor. You'll be prompted like so:

DELETE the following files:

        b

RENAME the following files:

        a → x
        c → y

Would you like to make the changes described above (y/n)?

Type y and hit enter!

$ ls
x y

You renamed ax and cy and deleted b. Good job!

Build

cargo build

License

MIT. See LICENSE.

About

A visual-editor based command line tool for manipulating files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages