SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2016 v21 Beta Discussion => Topic started by: jporkkahtc on August 22, 2016, 09:29:34 PM

Title: Diff and viewSpecial
Post by: jporkkahtc on August 22, 2016, 09:29:34 PM

This should be allowed.


---------------------------
SlickEdit
---------------------------
Command 'view-specialchars-toggle' currently not allowed in Diff mode
---------------------------
OK   
---------------------------




Note that if you diff 2 files and you load the files first and turn on view special, then they show up in the sizebyside diff window with viewspecial enabled.

Title: Re: Diff and viewSpecial
Post by: Dan on August 23, 2016, 12:25:58 AM
I'll see if we can fit this in.
Title: Re: Diff and viewSpecial
Post by: jporkkahtc on August 23, 2016, 12:45:54 AM
I added this to DIFFEDIT.e
static typeless DiffCommands:[]={
    "view-specialchars-toggle"  =>view_specialchars_toggle,


Seems to work.
You have to turn this on/off on left and right view independently.
Title: Re: Diff and viewSpecial
Post by: Dan on August 23, 2016, 12:49:10 AM
Yes, that will work.  I would like for it to do both buffers, and restore to the original state when you close.
Title: Re: Diff and viewSpecial
Post by: Dan on August 29, 2016, 04:03:32 PM
Since I'm not sure how many people will actually bind this to a key, I took the cheap way out and just added it to the table so you won't have to keep doing it on your own.
Title: Re: Diff and viewSpecial
Post by: jporkkahtc on September 12, 2016, 08:35:50 PM

 
view_line_numbers_toggle is another good one to add ... i've recently been needing to see line numbers during diffing.
Title: Re: Diff and viewSpecial
Post by: Dan on September 13, 2016, 01:40:52 PM
OK.  That's simple enough to add.
Title: Re: Diff and viewSpecial
Post by: jporkkahtc on September 13, 2016, 02:34:06 PM
I'm not so sure ... I added it but it needs a little more work.


First, you need to have a key binding - as there isn't one by default.
But then it would be good if the line numbers would turn on/off on both buffers at the same time - as is you have to manually switch it on for both.
Worse, it doesn't remember the setting - so when jumping between versions in backup history for example you have to keep turning it back on.


So, while I'd like for diff to support SpecialChars and line numbers (and highlights, and, and...), a bit more integration is needed to make these nice features.
Title: Re: Diff and viewSpecial
Post by: jporkkahtc on September 13, 2016, 02:46:51 PM
The other feature I was wishing for (when I started noticing the hscroller issues) is SoftWrap.
I've not tried enabling that yet - it would be interesting to see if/how DZ handles enabling that!

Title: Re: Diff and viewSpecial
Post by: Dan on September 13, 2016, 03:22:19 PM
The other feature I was wishing for (when I started noticing the hscroller issues) is SoftWrap.
I've not tried enabling that yet - it would be interesting to see if/how DZ handles enabling that!

Not well.  It's shut off for a reason  ;D
Title: Re: Diff and viewSpecial
Post by: Dan on September 13, 2016, 03:28:37 PM
I'm not so sure ... I added it but it needs a little more work.


First, you need to have a key binding - as there isn't one by default.
But then it would be good if the line numbers would turn on/off on both buffers at the same time - as is you have to manually switch it on for both.
Worse, it doesn't remember the setting - so when jumping between versions in backup history for example you have to keep turning it back on.


So, while I'd like for diff to support SpecialChars and line numbers (and highlights, and, and...), a bit more integration is needed to make these nice features.
For now I've added it to the table so you won't have to keep up with it yourself from version to version.  In the future I'll try to add those tweaks to make it better, but for right now we've got to minimize changes, so I'm going to leave it at that.
Title: Re: Diff and viewSpecial
Post by: jporkkahtc on October 25, 2016, 11:22:01 PM
Another add:  "tool-gui-find"
I have Ctrl+F mapped to this bypassing the setting in Options to use minifind -- this allows me to use Ctrl+F for maxifind and Shift+Ctrl+F for Minifind.