-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error: Nonexisting input files. Aborting. @FreeBSD #46
Comments
These files for sure. If I face other problematic files I will let you know. |
@vermaden this being FreeBSD and seeing the
( Just thinking out loud: perhaps there is a misunderstanding between how Also, could you try |
Hi, yes - its ZSH. Here is the ouuput:
I believe the last one is the one you were looking for. Also - I use the GNU
Regards. |
@vermaden cool, that was useful! Could you try one more thing please:
Feel free to also try it with the FreeBSD
The The reason I ask is because you have aliased your Since you use a UTF-8 based locale, it's not about encodings, which was another possible suspect here. |
Sure. I also added some tests with other editors. Using it with Geany does not work at all. FreeBSD's vi(1) also does not work but its probably vi(1) fault. It does work with vim(1) but output in the terminal is at strange offset and you need to type reset to have working terminal after it. Here are the outputs: Files that I am testing on:
Geany: I renamed asd1 to asd1a but does not work.
FreeBSD vi(1):
vim(1):
Hope that helps. Regards. |
Sorry, @vermaden ... lost sight of this. Apologies. If Geany has any indication of the code page or encoding it "thinks" the edited file is, could you have a look at that and paste it here?! If it "thinks" it's something wacky instead of UTF-8, I could imagine that being the issue. Your shell/terminal are configured for a UTF-8 locale and theoretically Geany should honor that setting, too. But what do I know? 😉 The issue you see with Vim on the terminal seems related to #54, I would reckon. Presumably because you are piping the names into the command. As both vi and Vim point out your input isn't coming from a terminal as it expects. Probably Vim does the best to comply whereas vi gives up with an error? Have you tried Edit: to ensure anyone can try to reproduce this, could you please try to take a recursive copy of the folder containing those files somewhere (probably something like Anyway, this should enable anyone to pick up a FreeBSD and try to reproduce it, given the locale settings agree (I think some UTF-8 locale will be fine even). And one more thing, if you were to use (GNU) find you could use something like |
Hi. Do not be sorry mate. We all do that because of passion in the expense of our personal lifes and time. That syntax - Thank You for working solution. Regards. |
Hello, I'm having a similar issue. In my case my shell is also zsh, and my editor is Kakoune: Running
Running
Running
I tried to follow this thread to determine what the issue could be, but nothing really stood out. Also I found this here: https://xplr.dev/en/awesome-hacks (under batch rename)... Ideally I would like to use selections, but since this does not work, I just modified the code to always use |
One more remark, @in0ni ... you can use (this syntax is particular to GNU find -type f -exec renamer {} + ... or: find -type f -print|xargs renamer However, I think the second one could cause the issue with the terminal getting messed up. I am still investigating what's going on with that. |
Hello @assarbad, I appreciate you continuing to look into this. Seems like something is up with the way renamer is dealing with pipes (with the over a decade of *nix use I'm still not 100% proficient or knowledgeable with this). I will mention that I find this tool to be very powerful combined with a modal editor like Kakoune. At times I have to rename many files with different patterns and this approach has been the quickest and most flexible. So thanks for this tool! So far I have not had the need to pass a specific list since I can use the power of the editor to filter out what I need. So I'm using |
Also on this ticket, in case someone is still reading. Workaround (not a fix!) If you encounter the messed up terminal issue, for now you can use |
Hey @assarbad , I have not gotten around to report this yet -- but now (for a few weeks) renamer does not work at all:
All return: No version change in the tool, let me know if you need any assistance debugging UPDATE: seems to be an issue on my end. My editor is "kak", but editor is set to "kcr edit", so using -e "kak" works 😅 |
I suppose you have built it yourself? What tag/revision? I think there was no formal version change in the crate for some reason, I also noticed that :-| |
Hi,
not sure it is FreeBSD related but:
Regards.
The text was updated successfully, but these errors were encountered: