"ils" is a command-line utility designed to provide iterative exploration of directory contents within the user's working environment. It allows users to efficiently navigate through the folder structure and gain insights into files and subdirectories present in each directory.
- Iterative Exploration: Progressively navigate through directories, facilitating understanding of folder hierarchy.
- Efficient Navigation: Use arrow keys and 'WASD' shortcuts for seamless movement between elements and directories.
- Streamlined Actions: Options to return to parent directory, open directories, and exit the program efficiently.
- Intuitive User Interface: Text-based interface offers straightforward user experience for interacting with directories and files.
It is necessary to install ncurses:
- Install in Debian/Ubuntu Linux
apt-get install ncurses-dev
- Install in Arch Linux distributions:
pacman -S ncurses
- dirent.h
- string.h
- sys/stat.h
- stdlib.h
- unistd.h
- time.h
- gcc
-
When you start the program, you will see a list of files and directories in the current directory. Files will be displayed in red, and directories in blue.
-
Use the following keys to navigate:
- ⬆️ / w / W: Move the cursor upwards in the list.
- ⬇️ / s / S: Move the cursor downwards in the list.
- ⬅️ / a / A: Navigate to the parent directory.
- ➡️ / d / D: Enter the selected directory.
- To exit the program, press the 'x' or 'X' key. This will close the application and return you to the command line.
- The highlighting option is enabled for the currently selected file or directory.
- At the bottom of the screen, the total number of elements in the current directory is displayed.
- (It doesn't work properly) If you want to explore another directory, you can provide the path as an argument when running the program.
./ils /path/to/another/directory
Using the Makefile gives you the option to compile and execute, or just to compile the program. You can compile "ils" using the provided Makefile.
make run
make
Or, you can manually compile it using gcc:
gcc ils.c -o ils -lncurses
./ils