Coder Social home page Coder Social logo

rrr's Introduction

ATTENTION!!! This repository moved to https://gitcast.ru/chatlanin/rrr

rrr's logo

This is a simple file manager, with a set of functions that, it seems to me, can make it convenient. This is an attempt to get to know ncurses.

The author does not pretend in any way to the purity of implementation and fidelity of execution. So if you think you can do it in a different way, then please do it.

rrr's video_pres

At this stage, the project is launched by cloning this repository and building locally using the installed meson build system.

Steps:

  1. install meson
  2. clone the repository
  3. run: meson setup build
  4. run the script: . run

Use:

  • moving is similar to vim (h, j, k, l)
  • you use autocompleted in the command: ren -> rename
  • rename selected file - set cursor to the file for change and run (it vim :) - :rename new_file_name
  • create file - :touch file_name
  • trash - this command to moved file in the your folder by name .trash. Please create your own script trash.sh whish do it and put this script in your sistem folder - bin.
for example trash.sh:
mkdir -p $trash
DATE=`date +%Y-%m-%d`
TIME=`date +%H:%M:%S`
for obj in "$@" 
do
  mv $obj $trash
  name=`echo $obj | rev | cut -d '/' -f '1' | rev`
  mv -b $trash/$name $trash/$name.$DATE.$TIME
done
  • delete - if you want use rm -rf, run - :delete
  • create dir - :mkdir dir_name
  • select files/dirs - press space. If you want to do: paste, delete, move or trash, then you must first select the file/files/dir/dirs
  • quit, it same as vim - :qa

TESTS:

  • run test: . run test

If your want to run certain tests, please to edit file run.sh ATTENTION!!! this tests created taikint into account my dirs. you must to fix int in the .tests/config.hpp

rrr's People

Contributors

azchatlanin avatar

Watchers

 avatar  avatar

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.