Skip to content

Latest commit

 

History

History
49 lines (25 loc) · 1.37 KB

File metadata and controls

49 lines (25 loc) · 1.37 KB

Terminal based File Explorer - TFX

A File explorer application which will run on terminal with simple cursor based UI (which can be controlled by keyboard)

This application will work in two modes :

  1. Normal Mode : used to explore the current directory and navigate the filesystem.

  2. Command Mode : used to enter and execute shell commands.

The root of the application is the directory where the application will start.

How to execute

Open terminal and enter following commands :

  1. For Compilation : g++ main.cpp
  2. For Execute : ./a.out

How to switch between Two Modes

Press : to switch from Normal Mode to Command Mode. Press Esc to switch from Command Mode to Normal Mode

Command Support

  1. Copy - copy <source_file(s)> <destination_directory>

  2. Move - move <source_file(s)> <destination_directory>

  3. Rename - rename <old_filename> <new_filename>

  4. Create File - create_file <file_name> <destination_path>

  5. Create Directory - create_dir <dir_name> <destination_path>

  6. Delete File - delete_file <file_path>

  7. Delete Directory - delete_dir <dir_path>

  8. Goto - goto

  9. Search - search <file_name> or search <directory_name>

Assumptions

  1. Absolute path wrt application root will be given
  2. Terminal Resizing is not handeled so please do not resize the terminal after code execution (Full window size is recommended)