Author Topic: HowTo clear "Changed Lines" markers during an session  (Read 3292 times)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
HowTo clear "Changed Lines" markers during an session
« on: September 30, 2009, 11:59:31 PM »
HowTo clear "Changed Lines" markers during an session


Hi Alex

we have "View > Editor > Changed Lines"
to get an visible marker on the left side
which indicates line(s) that where modified during the current session. Fine.


Question:
Is there an option to clear this "Changed Indicator"  and "Changed and Saved Indicator"?

So i would see then only recently new  modified lines again,
and not all modified since first start of modifications?


Because if i work some time with an document
most of the lines get "changed" and so the sense of this great feature get backwards.

One way to get rid of the color is to save and reload... but how without saving? (because i am in the middle of modification)

Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HowTo clear "Changed Lines" markers during an session
« Reply #1 on: October 01, 2009, 04:31:53 PM »
Hi,

there is only one way, and you have already mentioned it. Save + Reload = Ctrl-S + F5.
And this is not too much ;)

And I do not think that I would change it: because Saved/Modified indicators is not a just simple markers but part of the undo information. So you could not just simply reset them - then you could not keep consistency during Undo. So they are cleaned, when Undo is cleaned. So there is another way, just to Reset Undo queue, but this is mostly same as reload.

Best regards,
Alex.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Re: HowTo clear "Changed Lines" markers during an session
« Reply #2 on: October 02, 2009, 08:32:45 AM »
Thanks for clarifying Alex.

Moved to FAQ...

Offline JJK

  • Registered User
  • Full Member
  • *
  • Posts: 152
  • Karma: +2/-0
Re: HowTo clear "Changed Lines" markers during an session
« Reply #3 on: October 02, 2009, 08:39:49 AM »
Hi,

But what if I don't want to save ?
I find that Stefan's idea is useful, but without saving.
It should be independant of undo operations.

But if this is too much work, no worry. There are many other priorities !

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HowTo clear "Changed Lines" markers during an session
« Reply #4 on: October 03, 2009, 03:14:03 PM »
Hi JJK,

It can be done only with reseting Undo queue. Because every text change placed in Undo contains modified (difference) state of lines. To have possibility to undo these indicators as you do undo of your text changes.

So the easiest way to clean up Undo queue, but this is rather dangerous for user. 
More complex is to go through all undo queue and remove this information from there.
Ok, and most complex, but maybe most correct would be new undoable action which sets all lines to not modified and stores all in Undo queue.

Ok, I would think about this, because several users request this ;)

Best regards,
Alex.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Re: HowTo clear "Changed Lines" markers during an session
« Reply #5 on: October 03, 2009, 05:21:24 PM »
Two are not enough "several users" to start another extra work  ;)
For me, i will try to use the save&reload thinggy.


Just brainstorming:
I am not experience enough to understand how is that coloring related to undo queue,
... i believe your words  ... but  can't you just turn this "Changed Indicator" --color to actual background color?

I mean i am not against the undo but just wanna clear the last changed-markers... to better see the next changes.
It is just the visible effect of this feature... not the back ground.

Yes, the user will lost the view of the last markers and didn't see anymore what he has modified,.. but he!, no one has to use this feature.


Anyway THX for an open ear  ;D

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HowTo clear "Changed Lines" markers during an session
« Reply #6 on: October 03, 2009, 11:46:03 PM »
No, this is not only visible effect.
It is property of line, and than visualized by background color for line numbers.
So, if I would just make style equal to default, you would not see changed lines at all.

Let us wait for stronger request on this, and then I can implement way 3 I mentioned before, with undoable action for removing changed lines attribute.