Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: post-processing of certain characters #62

Open
assarbad opened this issue Jan 6, 2023 · 2 comments
Open

Idea: post-processing of certain characters #62

assarbad opened this issue Jan 6, 2023 · 2 comments

Comments

@assarbad
Copy link
Contributor

assarbad commented Jan 6, 2023

I am using renamer a lot to tidy up the names of downloaded articles, papers etc.

Issues that I encounter a lot are characters such as double quotes "some phrase" which could be defanged into „some phrase“ or : which is invalid on Windows and could be defanged into , similarly to ? which could be defanged into . Additionally \n (LF) occurs in some file names copied based on titles of papers, which is no issue on Linux, but becomes an issue when copying to exfat/FAT32 (etc.).

I wonder how this could be best implemented and whether renamer itself is the right scope or whether it should simply allow to call a post-processing executable (no arguments allowed) to pipe the contents through after they were edited by the user.

What are your thoughts?

@mtimkovich
Copy link
Collaborator

I like this idea! Seems like it could be a bit tricky to implement, being so OS-specific, but I would definitely accept a PR for it.

@assarbad
Copy link
Contributor Author

Actually it's less OS-specific than file system specific. I suppose by way of a configuration file and sensible defaults the issue with specific characters being replaced can be tackled.

But thanks for the feedback, in this case I'll look into working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants