-
-
Notifications
You must be signed in to change notification settings - Fork 0
files manager
Yeah, maybe you don't...
A machine without a files manager is too minimal!
Of course everyone have their own different need and workflow. But if you have an satifice shell config and want to utilize it as much as possible. Then maybe you don't need a files manage and instead, you should use your terminal for files managing.
Here is all of files managers uses that I could think of:
For the sake of convenience, I will call files and directories as items.
- Enter a directory location.
- See a directory's content.
- Drag and drop items to different applications.
- Searching for items.
- Create new items.
- Copy, cut, link, delete and rename items.
- Extract and archive items.
- Check free and used spaces.
- Open terminal in current directory.
Those are all things that the terminal can do easily:
To enter a directory, type cd path/to/dir
. But if your shell support implicit directory change, enable it if it isn't already so you can enter a path just by typing it out.
You could also utilize it with a fuzzy picker (example).
Use ls
or other alternatives. Alias it in your shell as .
for easy access.
You could alias cd
and ls
to the same command to quickly view a directory's contents. But if your shell have a hook/event system, it's best to set it automatically ls
every time you change your directory. Here is an example for Xonsh:
@events.on_chdir
def auto_ls(olddir, newdir, **kw):
ls
Most programs and web apps already have a button to open a file picker, but if you really want it, check out Dragon.
Use find
or other alternatives. Then you could also utilize it with a fuzzy picker. Alias it in your shell as f
for easy access.
To create a new directory, type mkdir -p dir_name
. Alias it in your shell as mk
, mkd
or md
for easy access.
To create a new file, type touch file_name
or just open it with a text editor, it will automatically be created when you save the file.
#TODO
Use Patool or other archiving and compression tools. Alias it in your shell for easy access.
Use du
or other disk usage display tools. If you want this to always visible, add it to your prompt.
You already in a terminal...