Feat: script editor in pre and post backup scripts#1950
Feat: script editor in pre and post backup scripts#1950SAMAD101 wants to merge 20 commits intoborgbase:masterfrom
pre and post backup scripts#1950Conversation
|
Oh even I was ready with a PR, I shared a screenshot in the issue thread. Could've saved one of us the work if you told me that you were working on this 😅 |
damn 😔 yeah I should've. I just finished this one today. |
|
To avoid overlaps, you can make sure the issue is assigned to you before working on it. As for this implementation, it's reading a file. We should also look into having a larger editor window instead. Often it's hard to decide what's the best way without seeing it. So even PRs that aren't merged can help with discovering a good solution. |
Thank you PS: please assign me the issue #1945 |
|
Well, apparently I have exams starting soon and also have to ready my proposal for GSOC. So, I'll add this one along with some more issues in my proposal. |
|
Editor looks good. Just what I imagined. I'd remove the "Load from file" button though. Since the problem it solves is very minor. One can easily copy and paste in the editor. Would just make sure the editor window can be resized. |
sure, that can be done. Yeah, The editor window is resizable, will make it wider ig. |
pre and post backup scripts using file dialog.pre and post backup scripts using file dialog.
pre and post backup scripts using file dialog.pre and post backup scripts using file dialog.
pre and post backup scripts using file dialog.pre and post backup scripts
|
some spacing between the field and Save button would look good IMO. |
|
Looks good to me. Will try it locally and then merge, if there are no other concerns or things that come up. |
There was a problem hiding this comment.
IMO the design looks a bit off, attaching some issues:
I did something similar with the Exclude GUI last year, the UI for that looked decent and referring to that might be good for consistency. Here's a screenshot:
(Ignore the tabbed button above) Nice work otherwise!
Also, the title ("Edit Pre-Backup Script") for the dialogs is different but the header text ("Custom Pre/Post backup script") is still the same, maybe you can change that too?
|
Now that it's complete, how about I add some syntax highlighting to it as well? Need some thoughts. |
Seems to much efford for such a small use case. Most people will copy paste the script from another editor anyways. |
Yeah, I'll drop the idea. Its fine as it is. |









Description
I've added buttons beside the
pre-backupandpost-backupline edits in theScheduletab in theShell Commandssection.untitled.mp4
Related Issue
#1945
Motivation and Context
Makes it more convenient to add the commands using a shell script.
How Has This Been Tested?
does effect much of the code, only extends some functionality
Types of changes
Checklist:
I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.