Code Monkey home page Code Monkey logo

terminal-fx's Introduction

Name: Shashi Jangra Email ID: [email protected] Roll Number: 2018202001 M.Tech CSIS

A terminal based file explorer that operates in 2 modes:

Normal Mode: 

The program starts in normal mode and lists the files in directory where it is started.(That becomes the root/home address)
On pressing:

Enter: Open a directory in normal mode
		Open a file in its default application

BackSpace key: Go up one level in the explorer but not beyond the root path
'h' key: Go to Home Directory

Left Arrow: Go back to the previously visited directory if its possible

Right Arrow: Go forward to the directory where user went by pressing back key

Up/Down Arrow: move the cursor to navigate in the explorer (By default the program displays 10 files, if there 	are more than 		10 files than user can view by scrolling with these keys)

'q': It quits the program

':': Switch to command mode

User can switch to Command Mode with the ':' key and perform following commands:

Assumptions/Guidelines:	

	The source file/path should be always given as full name of file/directory without any '/' character
	for example your directory structure is ~/abc/xyz/def/foo.txt and your program started in abc then abc becomes root directory for the program lifetime and thus,
	The destination path can take two kind of values:
		Absolute Path(Path from the root/home): It must begin with '~/' for example ~/abc/xyz/def/foo.txt
		Relative Path(Path from the current directory): It must begin with '/' for example if you are in xyz then /def/foo.txt
	Some Commands like create_file supports '.' as destination path
Command Mode: 

Copy File(s):			copy <source_file(s)> <destination_directory>

Create File(s):			create_file <source_file(s)> <destination_directory>
Create Directory(s):	create_file <source_file(s)> <destination_directory>
Move File(s):			move <source_file(s)> <destination_directory>
Rename File(s):			rename <old_filename> <new_filename>
Delete File(s): 		delete_file <file_path>
Copy Directory(s): 		copy_dir <source_file(s)> <destination_directory>
Move Directory(s): 		move_dir <source_file(s)> <destination_directory>
Delete Directory(s): 	del_dir <source_file(s)> <destination_directory>
Search Files:			search <source_file>
	All files in the working tree will be displayed on the same screen
Goto Directory:			goto <directory_path>
	program will come in normal mode to explore the directory
Snapshot:				snapshot <directory_path> <dumpfile>
exit:	program will come to normal mode

terminal-fx's People

Contributors

shashijangra22 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

shivam1928

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.