Skip to content

Files in Lambda Expressions – a Haskell-written humble visual file explorer

Notifications You must be signed in to change notification settings

kelzenberg/file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

F.I.L.E

Files in Lambda Expressions – a Haskell-written humble visual file explorer

(UNIX-based OS' only)

Features

Program starts in the root directory

  • show help for commands
  • list directories in current folder
  • list files in current folder
  • ascend directory tree (parent folder)
  • descend directory tree (child folders)
folders
  • create & name folder
  • rename folder
    • constraints: no empty names
  • delete folder
    • with "do you really want to delete?"-question
files
  • create & name file
    • constraints: no content, just file creation
  • rename file
    • constraints: no empty names
  • edit file (with nano)
  • delete file
    • with "do you really want to delete?"-question
future extensions
  • move files
  • move folders

Project Setup

Requirements
  • Docker Desktop version > v19.x
Commands

Reset all docker containers. --- Recommended for first install or when Docker image was modified.

make reset

Remove stopped docker containers. --- Use this to get rid of dangling containers from old images from this project

make clean

Build docker container & Haskell project in the virtual environment. --- Use this to run ghc Main.hs inside docker.

make

Run GHCI inside docker container. --- Use this to run ghci inside docker. Do not forget to load the project with :load Main.hs afterwards.

make run
F.I.L.E Commands
  • h - show help
  • Arrow Up - selection up
  • Arrow Down - selection down
  • Enter - enter directory
  • q - quit application
  • n - new file
  • N - new folder
  • r - rename file/folder
  • e - edit file
  • d - delete file/folder
  • ESC - exit help