Giter Club home page Giter Club logo

Comments (3)

novoid avatar novoid commented on September 23, 2024

Hi @metbril,

I understand your use-case.

I thought about it and unfortunately, I have to decline this feature. And this is why:

First of all, the tool is (somewhat unfortunately in this case) named "appendfilename" which contradicts any prepending feature. If I would have this use-case, I'd probably write a different tool or think about renaming "appendfilename" which I don't for now.

Secondly, if I would add a pre-pending command line switch, I can think of people who wants to have this prepended string before the date/time-stamp. The semantics would suggest so as well. (I know that appending before the tags is a different example that might be mentioned here.)

A personal suggestion for a workaround: When I want to prepend a string to many files, I end up using vidir which can be installed via the Debian package moreutils. It opens the current directory in vim where you can use the column-insert feature to add those prepend-strings. Emacs/dired offers the same feature as well: dired-toggle-read-only. Other file managers should support such a feature but I don't know of any other file manager that provides a good solution for it besides Emacs/dired and vidir.

I hope this helps your use-case for now.

from appendfilename.

metbril avatar metbril commented on September 23, 2024

Thanks for your comment. I understand why you don't want to update your tool.

I think I will build a dedicated tool myself (be it python or bash). Would you accept a PR if I should decide to make one?

from appendfilename.

novoid avatar novoid commented on September 23, 2024

Hi @metbril,

It's not the implementation effort that made me decide against your proposal - it's the implications of it that made me think. Therefore, I am currently not interested in accepting a PR for it. Sorry. Thanks for your proposal - very kind!

from appendfilename.

Related Issues (13)

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.