jlevy/repren

Do not rename files, only content?

haakonstorm opened this issue · 1 comments

Possible to only rename the contents of files, and not the file names themselves?

I don't understand how --literal works, e.g.

python /Users/storm/bin/repren --dry-run --literal -i --from='light.mini_sov' --to='light.bedroom_mini' test
Dry run: No files will be changed
Using 1 patterns:
  'light\.mini\_sov' IGNORECASE -> 'light.bedroom_mini'

Why does the from escape the dots, while the to doesn`t?
I've tried including -i and --literal twice, but to no avail :)

Forget it, I should have tried more before posting :)

Default is to find and replace content only, not rename.

I must have been tired. Of course only the to needs -i and --literal.
Works like a charm!
Closing #26 due to RTFM.