Releases: SerhiiStets/fed
v0.2.0
Now support command that could open the folder in explorer using aliases and the folder's number in the favorites list.
Full Changelog: v0.1.0...v0.2.0
v0.1.0
FED
fed is a command line tool for saving and accessing your favourite folders via the terminal.
Full Changelog: https://github.com/SerhiiStets/fed/commits/v0.1.0
Usage
There are two options to work with folders: via list numbers and aliases.
add
Add directories that you like or use '.' to add the current directory to your favourites.
Use -a [alias] [directory] to add a folder with an alias to access it later.
$ fed add .
E:\Scripts\fed directory is added to favourites.
$ fed add /home/
fed: /home/ is already in favourites.
$ fed add -a python_projects E:\Python
E:\Python directory is added to favourites.
$ fed add C: E: C:\Users
fed: C: is already in favourites.
E: directory is added to favourites.
C:\Users directory is added to favourites.
ls
List all your favourite directories or the number you like.
Alises are showned in [] braces.
$ fed ls
fed: Favourite folders:
1. C:
2. E:\Scripts\fed
3. E:
4. [python_projects] E:\Python
Use the number with fed <cd> command to cd into the selected directory
$ fed ls 2
fed: Favourite folders:
1. C:
2. E:\Scripts\fed
Use the number with fed <cd> command to cd into the selected directory
cd
Since it is impossible to move from the directory the program was run at, fed copies the commands to the user's clipboard. That way, using Ctrl + V a user can then navigate to the favourite folder without typing the whole root. Use the number in the list of favourite folders or folder alias for quick access to 'cd' command.
- For Windows, moving between drives requires additional command like 'C: ' before cd
$ fed cd 2
fed: /home/ is your directory.
The command <cd /home/> is copied to your clipboard.
Use Ctr+V to get the command.
$ cd /home/
$ fed cd 1
fed: C:\Users is your directory.
The command <C: && cd C:\Users> is copied to your clipboard.
Use Ctr+V to get the command.
$ C: && cd C:\Users
$ fed cd python_projects
fed: E:\Desktop is your directory.
The command <E: && cd E:\Python> is copied to your clipboard.
Use Ctr+V to get the command.
$ E: && cd E:\Python
clean
Remove folder from favourities. Use 'all' for full cleanup and '.' to remove the current folder.
Folder can also be cleaned up by the number it is on the list or using given folder alias.
$ fed clean all
fed: favourite folders are now empty.
$ fed clean .
fed: The directory E:\Scripts\fed is deleted from favourites.
$ fed clean /home/Desktop /home/fed
fed: The directory /home/Desktop is deleted from favourites.
fed: The directory /home/fed is not in favourites.
$ fed clean 1
fed: The directory C: is deleted from favourites.
$ fed clean python_projects
fed: The directory [python_projects] E:\Desktop is deleted from favourites.
help
Receive info for all available commands.
$ fed help
$ fed -h
$ fed --help