Author Topic: Diff and viewSpecial  (Read 633 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1182
  • Hero Points: 83
  • 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: 1800
  • Hero Points: 70
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: 1182
  • Hero Points: 83
  • 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: 1800
  • Hero Points: 70
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: 1800
  • Hero Points: 70
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: 1182
  • Hero Points: 83
  • 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: 1800
  • Hero Points: 70
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: 1182
  • Hero Points: 83
  • 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: 1182
  • Hero Points: 83
  • 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: 1800
  • Hero Points: 70
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: 1800
  • Hero Points: 70
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: 1182
  • Hero Points: 83
  • 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.