GithubHelp home page GithubHelp logo

rename's People

Contributors

arruda avatar dkrikun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rename's Issues

Consider --text-only by default

Not using --text-only currently may have a drastic effect of moving file trees (see #21, #22). Consider applying it by default, or introduce another mechanism to improve user experience by reducing the surprise effect (oops, my files...)

Fix this unicode-related bug

Traceback (most recent call last):
  File "C:\Users\dkrikun\Documents\GitHub\rename\rename.py", line 383, in <modu
le>
    sys.exit(main())
  File "C:\Users\dkrikun\Documents\GitHub\rename\rename.py", line 379, in main
    args.diff, args.text_only)
  File "C:\Users\dkrikun\Documents\GitHub\rename\rename.py", line 341, in proce
ss_file
    in_lines = in_file.readlines()
  File "C:\Python27\lib\codecs.py", line 296, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xda in position 2: invalid c
ontinuation byte

Binary files are not moved

If --text-only is not specified, and lets say, we have a folder C:\my\xyz\builds with 2 files: xyz.vcproj and xyz.exe, running rename.py xyz abc * from within the folder will create C:\my\abc\builds\abc.vcproj but leave C:\my\xyz\builds\xyz.exe because it's binary. This is somewhat surprising.

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.