NoGenericFilenames plugin#2255
Conversation
Kyuuhachi
left a comment
There was a problem hiding this comment.
I'm pretty sure this plugin should have .desktop or .discordDesktop suffix, since it's only applicable in Electron.
|
|
||
| patches: [ | ||
| { | ||
| find: 'id:"save-image"', |
There was a problem hiding this comment.
Why patch the context menu rather than the saveImage file it calls? Find string "Save image method called outside native app" perhaps.
| replacement: [ | ||
| { | ||
| match: /(?<=SAVE_IMAGE_MENU_ITEM,)action:/, | ||
| replace: "action:()=>$self.saveImage(arguments[0])," |
There was a problem hiding this comment.
This will leave a stray action: ()=>..., A }. Won't cause any issues now, but if that variable happens to be named id in the next build, that wouldn't be very fun.
There was a problem hiding this comment.
Resuming this soon, im stuck resolving these (hopefully last) two issues
…javascript date functions
…ist stored in the plugin
|
@Kyuuhachi May i ask for more details on both of these? I'm not sure about what you mean by that find string thing |
|
Would be more convenient to discuss that over in #plugin-development if that's ok with you. |
|
honestly I don't think this really solves the issue it's trying to solve. timestamp name is still as generic as unknown.png. it'd be better to just name files properly yourself. this is also quite niche anyway thank you anyway |
NoGenericFilenames
A plugin that prevents you from saving generic filenames as "image.png" or "video.mp4" so you dont have to deal with these annoying overwrite confirmation popups again.
Usage
It really just requires to enable the plugin, it will automatically rename the posible cases with a timestamp.
Options