Code Monkey home page Code Monkey logo

vimdir's Introduction

Login: kissen                         Name: Andreas Schärtl
Directory: https://www.schaertl.me/   Shell: /usr/bin/zsh
On since Fri May 01 (CEST)
Plan:
     _ _  __  __ _            _ _  ___
  __| (_)/ _|/ _(_) ___ _   _| | ||__ \
 / _` | | |_| |_| |/ __| | | | | __|/ /
| (_| | |  _|  _| | (__| |_| | | |_|_|
 \__,_|_|_| |_| |_|\___|\__,_|_|\__(_)

     _               _  __ _            _ _
 ___| |__  _ __ ___ (_)/ _(_) ___ _   _| | |_
/ __| '_ \| '_ ` _ \| | |_| |/ __| | | | | __|
\__ \ | | | | | | | | |  _| | (__| |_| | | |_ _
|___/_| |_|_| |_| |_|_|_| |_|\___|\__,_|_|\__(_)

vimdir's People

Contributors

kissen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

vimdir's Issues

Add Tests

A program like vimdir could potentially wipe all of $HOME. Well we do not want that.

So we need a lot of tests.

Calling vimdir with single file fails

Calling vimdir with a single regular file, e.g.

$ vimdir filetochange.txt
vimdir: error: Not a directory (os error 20)

results in an error message vimdir: error: Not a directory (os error 20). Expected behavior would be that vimdir opens a text file that allows one to edit the filename of the given file.

vimdir cannot delete symlinks

Deleting symlinks fails.

ats@chonk /tmp/demo $ ls
ats@chonk /tmp/demo $ touch a.txt 
ats@chonk /tmp/demo $ ln -s a.txt a.txt.link
ats@chonk /tmp/demo $ vimdir   # here we delete both a.txt and a.txt.link from the rule file
vimdir: error: No such file or directory (os error 2)
ats@chonk [1] /tmp/demo $ ls
a.txt.link

Hide Hidden Files

I would like to have flag that hides hidden files, that is files that start with a dot. This is useful when vimdir'ing the contents of a directory with lots of hidden files, such as $HOME.

Maybe also support Windows hidden files, though I am not sure if vimdir works on Windows at all in the first place and I don't have a Windows system available to me for testing anyways.

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.