Preserving cursor position on reload

For technical support for all editions of CSE HTML Validator. Includes bug reports.
Post Reply
User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 526
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Preserving cursor position on reload

Post by RSteinwand » Tue May 06, 2014 9:22 am

Hi Albert,

I'm going line-by-line through a style sheet, cleaning up dupe statements and warnings, combining font statements into one, but when I make changes and re-validate, I lose my place and have to scroll to find it again. It'd be nice if the window scroll would stay in about the same position and the results window tab (I was using "line") would stay active.

Speaking of font statements, which can get a bit complex.... You could offer to do that for me. :D (line-height, font-variant, font-weight, font-family, font-size, etc. > one statement). You did ask for feature ideas once.

Thanks.
Rick

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 526
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Preserving cursor position on reload

Post by RSteinwand » Tue May 06, 2014 9:33 am

I just remembered, by default you scroll to the first error or warning.

This creates a dilemma... :D
Rick

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3165
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Preserving cursor position on reload

Post by Albert Wiersch » Tue May 06, 2014 9:50 am

Hi Rick,

You editor suggestion is certainly a good one, but I think would cause more resources than I can reasonably allocate to "editor features" instead of validator features. :(

As for the scroll issue, you may want to disable "Automatically jump to the first error or warning message" option in the Editor Options, Results Window page. You can manually cycle through the messages with Alt+Up and Alt+Down and switch Results Window tabs with Alt+Left and Alt+Right.

I hope this helps! If not, let me know and maybe I can come up with another solution.
Image
Albert Wiersch

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 526
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Preserving cursor position on reload

Post by RSteinwand » Tue May 06, 2014 10:28 am

Hi Albert,

The only solution I could come up with would be a toggle on the left to switch the behavior, "stay on line" vs. "jump to first error/warning".

NBD. I can't say I go line-by-line that often. 99% of the time I'm just interested if something "red" shows up.

Thanks again.
Rick

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3165
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Preserving cursor position on reload

Post by Albert Wiersch » Tue May 06, 2014 10:36 am

How about an option added to the Results Window context (pop-up) menu: Options->Jump to First Error or Warning. It would make it a bit easier and quicker to change that option.

It wouldn't be as quick as a toggle that is always visible, but it also wouldn't add to the UI "clutter" either.
Image
Albert Wiersch

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 526
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Preserving cursor position on reload

Post by RSteinwand » Tue May 06, 2014 10:46 am

That would work. Wasn't aware that item existed.
Rick

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3165
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Preserving cursor position on reload

Post by Albert Wiersch » Tue May 06, 2014 1:39 pm

RSteinwand wrote:That would work. Wasn't aware that item existed.
OK, great... I'll get this into a future update.
Image
Albert Wiersch

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 526
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Preserving cursor position on reload

Post by RSteinwand » Tue May 06, 2014 1:47 pm

Cool!

Now I have one thing to look forward to. :D
Rick

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest