Comments (12)
Yes it work perfect double quoting the original command.... 👍
from actions-for-nautilus.
Yes, this is a known -deficiency (dare I say "feature" :D) because these characters are shell characters. It's very difficult to cater for ALL special shell characters. However, I will try to work around this.
from actions-for-nautilus.
@Creteil - Sooo - I can actually fairly easily solve this, but it has a tricky downside: It will severely mess with any command that is already using selection quoting or escaping in its own command line string (you know, adding backslashes or single/double quotes ...)
So I'm thinking of one of two ways to address that issue:
- Add an option to each command. Something like
Disable escaping
or something similar (orEnable advanced escaping
- you get the idea). This sets the option for the whole command. Easy to implement and understand and probably all that we really need. The user is then responsible for quoting the placeholders. And you can't manually individually quote/escape each instance of a Plural placeholder - Add a second placeholder prefix - say
@
that has the same effect as%
BUT disables argument escaping. This allows for individual selections to be escaped or not, but is more verbose.
As a user, which would you prefer?
from actions-for-nautilus.
TBH, I leave you the choice, by the way can you show us an example of the 2 options with my filename as input :
- «
Renouvellement de Votre Domaine blacktiger.tech Avant l'Expiration !.eml
».
My actual command :
- «
"command_line": "java -jar /usr/local/bin/emailconverter.jar %d/%b"
».
from actions-for-nautilus.
The way I plan it you wouldn't need to do anything because I would get people to change their manually escaped commands to one or the other.
BUT if you were to change your command now to
java -jar /usr/local/bin/emailconverter.jar "%d/%b"
you might find you'll get it to work right now!
Try that
from actions-for-nautilus.
(That doesn't mean I'm not gonna fix this - I just think that your case has an immediate workaround)
from actions-for-nautilus.
Well NOW you've put yourself in that second group of users who are manually escaping ... so you could leave your quotes in place and either set an option on the command configuration page to disable internal escaping for the command, or change your command to be...
java -jar /usr/local/bin/emailconverter.jar "@d/@b"
(or some other character that I may end up choosing)...
Or, in your simple case, simply remove the quotes when the fix is released, of course. :)
(P.s. - I see you are French - excellent English I must say - I'm a Rosbiff who has lived in France for coming on 30 years - terrible at French still, though :))
from actions-for-nautilus.
You are over-considering my English, on my side, I tend to say :
« I speak English as a Spanish cow... » 🤣🤣🤣
from actions-for-nautilus.
I keep an eye on your next commit for the other way to manage the problem and give it a try...
from actions-for-nautilus.
I've just run into this same issue. If there was a way to get the raw string from say %f
that would be perfect. Using a different character to indicate "raw", like @
, as was suggested would work well because you could then specify it for some parameters while leaving others to shell escape with %
in the same command string.
This has come up because I have some files with irksome characters in their file names that the shell doesn't agree with. I could scrub these characters from the files manually of course but it would be nice to be able to leave them as is since the files originate from external sources and it would be kinda tedious to catch them all.
from actions-for-nautilus.
from actions-for-nautilus.
Nice! It's a great utility. It let me clean up a lot of nautilus cruft that had been piling up. My old context menu was getting out of hand.
from actions-for-nautilus.
Related Issues (20)
- Not working on Ubuntu 22.10 HOT 13
- ShowIfTrue feature would be nice! HOT 2
- Open a terminal as root in a specific folder HOT 3
- Nautilus Desktop HOT 1
- JQuery gets 404 in configurator HOT 4
- how can I see the debug output? HOT 3
- Actions that I created find themselves in double in « Nautilus »... HOT 6
- not an issue, for the Wiki HOT 2
- Auto TAG debian package with github commit...
- Action that requires user input HOT 5
- hide/disable entries in the web interface HOT 1
- Static port for web interface HOT 2
- Blank page when starting AFN HOT 9
- Highlight Save button in Orange for unsaved settings HOT 1
- Using pipe to another command to display progress bar... HOT 1
- Does not work with commands that use placeholders
- Handling simple and double quotes in filenames... HOT 1
- Add commands to top of context menu HOT 2
- [Security] Port remains open after webpage is closed HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-for-nautilus.