-
Notifications
You must be signed in to change notification settings - Fork 67
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
[backup-this-file@h3nr1ke] Feature Request: Add configurable extension #392
Comments
cc @h3nr1ke |
Hey @sphh , thanks for using the action =) I will think on how to add the visual part to ask for the user the desired extension as store it I did this action using only shell scripts, so no interface in the end... Soon I get the chance to change I will let you know =) |
To be honest, I don't know, if this possible at at this moment. I had a look through my installed actions and none of those offer the possibility to configure them – as applets can be configured. If there is no way to configure an action, I only see two approaches:
|
Yes, I think the best idea is to pop up the option during the first usage asking to keep the standard extension or use a new one. May be we can add an extra option in the menu, like "Backup this file custom extension" to popup the modal, the other option will remain there for quick usage or even a simple solution, just add a config file to define the extension to be used, if the user want to change we can open it when the setting button is pressed. (not sure about any of those options are possible... but I will study) |
@rcalixte do you know if there is anyway to identify a shift key when the action is called? I was wondering to display a prompt asking for the custom extension, like this (inspired on your plugin, thanks for that) @sphh I think to add the custom modal solves the problem, if the modal is canceled, the This works if the user wants to apply a date as an extension for instance. To change .bkp to anything else, I that is the new standard, maybe a config file is better I havent found how to create a setting page for an action, is it possible @rcalixte ? Thanks for the feedbacks =) |
I like the idea of a modification key (
|
There might be something with GDK but the issue I think would be how the content menu for the Action itself is clicked. If a user right-clicks like normal, and then Shift+Click on the menu, it might register differently but I don't know if the event would be available for the action itself to receive. I've not done anything like this here yet. 😅
Maybe you could have some json settings file in the directory for the action? That is a rough idea and I don't know how to implement it cleanly. Maybe additional properties to manage the appearance of a dialog and related options too. I would need to play with it a little bit more. |
Hey @rcalixte thanks for the comments I have played around here using only shell script and seems not be possible... I will need to see if something happen using python A json file would be great, so if the json file is there the system will display the gear button in the action so the user can change it... =) would be super... with some standard data types and widgets to display the options. should we create a feature suggestion to the cinnamon team? |
That would be my favourite (as described in #392 (comment))! |
Action name and maintainer
backup-this-file@h3nr1ke @h3nr1ke
What would you like to see?
backup-this-file@h3nr1ke
Preamble: Unfortunately I cannot find the proper UUID in the drop-down list for the ‘Action name and maintainer’ …
It would be great, if it were possible to configure the extension used when creating a back-up file. Thanks.
The text was updated successfully, but these errors were encountered: