Author Topic: Diff and viewSpecial  (Read 14017 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Diff and viewSpecial
« 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.


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Diff and viewSpecial
« Reply #1 on: August 23, 2016, 12:25:58 AM »
I'll see if we can fit this in.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Diff and viewSpecial
« Reply #2 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.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Diff and viewSpecial
« Reply #3 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.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Diff and viewSpecial
« Reply #4 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.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Diff and viewSpecial
« Reply #5 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.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Diff and viewSpecial
« Reply #6 on: September 13, 2016, 01:40:52 PM »
OK.  That's simple enough to add.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Diff and viewSpecial
« Reply #7 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.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Diff and viewSpecial
« Reply #8 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!


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Diff and viewSpecial
« Reply #9 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

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Diff and viewSpecial
« Reply #10 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.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Diff and viewSpecial
« Reply #11 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.