A simple text based file manager written in Go.
Before running the application, have a read of the table under the "Controls" heading below. It is probably good to know which key does what before throwing yourself in the deep end!
- Controls (Read me!)
- Installation and Building
Note that keys separated by a comma do not have to be pressed together to activate pertinent functionality. The comma means that pressing any of the listed keys will activate the functionality listed in the next column.
Key(s) | Functionality |
---|---|
Arrow Up |
Move the caret to the file/directory above |
Arrow Right , Return |
Move to the current selected directory |
Arrow Down |
Move the caret to the file/directory below |
A , a |
Toggle listing all files |
Q , q |
Quit the application |
To install Go, have a read of the official installation page; and follow the instructions.
This project depends on termbox-go. To install it, paste the following command into your terminal:
go get github.com/nsf/termbox-go
Then, install the application by running:
go get github.com/maxgodfrey2004/go-file-manager
To build the application, you must first be located in the application's root directory. This can be found in your GOPATH
. If you are not sure of where this is, you will be after running the command:
go env GOPATH
You are almost there! Now we just have to install the local packages which main.go
depends on. Do this by running the command:
go get -t ./...
Build the application by running the following command in your terminal:
go build -o gfm.exe main.go
Note that there are other forms of executable which you may produce, for example you may execute:
go build -o gfm main.go
Then, run the executable and revel in all of your new text-based file managing powers! I hope that you find this application useful!