ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Coding Snacks

ControlZ x times

<< < (2/7) > >>

Contro:
indicates to me that Contro might actually be in the market for a full versioning system.
-Shades (September 06, 2020, 03:17 PM)
--- End quote ---
Well, yes and no. Knowing the OP for a while tells me that this is way overcomplicated for the use he has, as for each change to be 'recorded' so it can be reverted, it needs to be committed, and my interpretation of his request, it seems that he would expect it 'as you type', like a built-in undo/redo, and not introduce extra keys to press or mouse-clicks to make.
-Ath (September 07, 2020, 12:37 AM)
--- End quote ---
:-\ You are wrong. Ask me and you will know. Is the way to try to help. If not you are not a helper.  :-* :P

Contro:
The versioning built into Microsoft Office....it isn't that useful. Not after you have experienced what real versioning functionality (backed by a decent versioning software like Git, Mercurial, SVN or even the venerable CVS and RCS) can do. Especially with text-based file formats (like .txt, .adoc, .md, .php, .c, .bat etc.) this works amazingly, once you get your head around the workflows such systems demand. However, for binary blob file formats (like .docx, .xlsx, .pdf, .png, .jpg etc.) such software is barely usable.

Still, Ath is completely right in stating that such functionality is major overkill for simple Undo's (Control + Z).

Yet the text
Do and undone with flexibility is better because we don't know how many keystrokes control+z are necessary until reach the target...
--- End quote ---
indicates to me that Contro might actually be in the market for a full versioning system. Git is free to download for Windows, Linux and Mac. And there are many free and/or open source Git clients available. Fork, GitExtensions, TortoiseGit etc. allow you to work much easier with the Git versioning system. You could even implement a web-interface for Git. One the more (in)famous ones is GitLab (Linux only!). Gitea is simpler to setup and maintain. It is also much more resource-friendly when compared with the GitLab software.

All of the above does require a good read of the installation instructions and Git clients come with their own manuals as things can get complicated quickly. A good grasp of concepts is essential before embarking on this route. Yet, if you mainly work with binary blob file formats, setting up a versioning system will be almost for nought anyway. But, as Contro mentioned in his post, he was working with PsPad, which is an editor for text-based file formats, so going for a Git setup might prove useful.

Git clients usually have a differential viewer built into them. So it is pretty easy to see the which file is needed to step back to. And if you are not satisfied with those differential viewers, you can get better ones for free as well. WinMerge would be one of the options. Git clients are familiar with this one and send the content you wish to review directly to that software without human interaction. Software like WinMerge also have more/better features for editing and marking differences between files. 
-Shades (September 06, 2020, 03:17 PM)
--- End quote ---
I am not versioning. I have a txt file with lines to be introduced in another program.
If I make a mistake and fails introducing one line or several and after continue adding more lines to the txt file I will have to recover the accidentally omitted line. Usually when I revise the txt file I delete the lines I think I have introduced. sometimes I make the mistake and continue adding lines after deleted the supposed introduced ones....

 :-* :P

Contro:
indicates to me that Contro might actually be in the market for a full versioning system.
-Shades (September 06, 2020, 03:17 PM)
--- End quote ---
Well, yes and no. Knowing the OP for a while tells me that this is way overcomplicated for the use he has, as for each change to be 'recorded' so it can be reverted, it needs to be committed, and my interpretation of his request, it seems that he would expect it 'as you type', like a built-in undo/redo, and not introduce extra keys to press or mouse-clicks to make.
-Ath (September 07, 2020, 12:37 AM)
--- End quote ---
Probably. (Although the request is very unclear.)
Filehamster could be an option. It appears to be in development (again). Also requires active input, but iiuc is a lot simpler than full versioning system.
-tomos (September 07, 2020, 04:30 AM)
--- End quote ---
:-\

Very interesting....

The answer from pspad may be...... use editorCommand() function and call undo as many time as you need



File scripting.rtf in the pspad folder or pspad helo

Command ecUndo or ecRedo

 :-* :P

Note : unfortunately I have not the basis to understand the above option or put in practice.
 :(

Contro:
The versioning built into Microsoft Office....it isn't that useful. Not after you have experienced what real versioning functionality (backed by a decent versioning software like Git, Mercurial, SVN or even the venerable CVS and RCS) can do. Especially with text-based file formats (like .txt, .adoc, .md, .php, .c, .bat etc.) this works amazingly, once you get your head around the workflows such systems demand. However, for binary blob file formats (like .docx, .xlsx, .pdf, .png, .jpg etc.) such software is barely usable.

Still, Ath is completely right in stating that such functionality is major overkill for simple Undo's (Control + Z).

Yet the text
Do and undone with flexibility is better because we don't know how many keystrokes control+z are necessary until reach the target...
--- End quote ---
indicates to me that Contro might actually be in the market for a full versioning system. Git is free to download for Windows, Linux and Mac. And there are many free and/or open source Git clients available. Fork, GitExtensions, TortoiseGit etc. allow you to work much easier with the Git versioning system. You could even implement a web-interface for Git. One the more (in)famous ones is GitLab (Linux only!). Gitea is simpler to setup and maintain. It is also much more resource-friendly when compared with the GitLab software.

All of the above does require a good read of the installation instructions and Git clients come with their own manuals as things can get complicated quickly. A good grasp of concepts is essential before embarking on this route. Yet, if you mainly work with binary blob file formats, setting up a versioning system will be almost for nought anyway. But, as Contro mentioned in his post, he was working with PsPad, which is an editor for text-based file formats, so going for a Git setup might prove useful.

Git clients usually have a differential viewer built into them. So it is pretty easy to see the which file is needed to step back to. And if you are not satisfied with those differential viewers, you can get better ones for free as well. WinMerge would be one of the options. Git clients are familiar with this one and send the content you wish to review directly to that software without human interaction. Software like WinMerge also have more/better features for editing and marking differences between files. 
-Shades (September 06, 2020, 03:17 PM)
--- End quote ---
Ow. The versioning inside word.

I use that in my projects to control changes. It's a nice idea.

But my problem now is in pspad.
I can use the backup copies, but if the change are quick and often sometimes I lose the control....

so I need to go back and forward quickly because is not confortable apply many control+Z combinations to arrive to the desired point....

Contro:
Undo/Redo support can only effectively be built into the software that is used/meant to work on a filetype. No way of adding that externally, other than implementing a local git repo and committing every change, and that is quite impractical.
This is also the reason the way Undo/Redo is implemented differently in different software, as not all file formats are maintained equally (flexible) in memory, by the matching software.
-Ath (September 06, 2020, 02:04 PM)
--- End quote ---

If you are rigth and seems to me so then I have to implement the script from pspad and for pspad.

I am trying in pspad forum but my level is not enough to follow the good necessary instructions. So I will have to be patient....

 :-[ :-* :P

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version