NanoDir is a terminal-based file manager designed for efficiency and simplicity. It offers cross-platform compatibility and a user-friendly interface.
- Cross-Platform Compatibility: Runs smoothly on various operating systems.
- Icon Implementation: Customizable icons for a visually intuitive experience.
- Termbox Integration: Utilizes termbox for a responsive and user-friendly interface.
- Multiple Modes: Command mode, selection mode, and navigation mode, switchable using the Tab key.
-
Color Command: Change the color scheme.
color <background> <text>
Example:
color yellow black
This command will change the background to yellow and the text to black. Other colors are also supported.
-
Copy Command: Copy files.
- In command mode, type
copy
to copy a file to the same directory. - In selection mode, press
space
to select multiple files, then typecopy
to copy them to the same directory.
- In command mode, type
-
Delete Command: Delete files.
- In command mode, type
delete
to delete a file. - In selection mode, press
space
to select multiple files, then typedelete
to delete them.
- In command mode, type
To rename files, use the rename
command followed by the new name. If multiple files are selected, they will be renamed with an incrementing number.
- Single File:
rename newname
- Multiple Files:
rename newname
(Files will be renamed tonewname(1)
,newname(2)
, etc.)
Example:
rename newfile
- Press
space
to select or deselect files. - Use the
copy
anddelete
commands to perform actions on selected files.
- Navigate through directories and files using arrow keys or other navigation commands.
- Ensure you have the necessary dependencies installed:
- Termbox
-
Clone the repository:
git clone https://github.com/yourusername/NanoDir.git cd NanoDir
-
Build the project:
make
-
Run the application:
./nanodir
Provide a brief guide on how to use NanoDir. For example:
nanodir [options] [directory]
-h, --help
: Show help message-v, --version
: Show version information--debug
: enable debug mode
The debug log file is named nanodir_debug.log
.
- On Unix-like systems (Linux, macOS): It is saved in the home directory, typically
~/nanodir_debug.log
. - On Windows: It is saved in the user's profile directory, typically
C:\Users\<YourUsername>\nanodir_debug.log
.
Contributions are welcome! Please fork the repository and submit a pull request.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature-branch
) - Create a new Pull Request