Discussion:
Key binding for viewing page source
Alexander Voigt
2012-09-19 20:18:15 UTC
Permalink
Dear Dillo developers,

I use the "view page source" function from the right-click popup menu
very often and so I created a key binding for this (see attached
patch). Since I find this very handy, please consider this patch for
the repository.

Kind regards,
Alex
corvid
2012-09-19 21:06:22 UTC
Permalink
Post by Alexander Voigt
I use the "view page source" function from the right-click popup menu
very often and so I created a key binding for this (see attached
patch). Since I find this very handy, please consider this patch for
the repository.
This would be good to have.

I was thinking that the key check might fit more naturally in UI::handle()
rather than CustTabs::handle(), but I see that ui.cc doesn't currently know
anything about nav or history, so now I'm not sure...
Alexander Voigt
2012-09-20 07:14:54 UTC
Permalink
Post by corvid
I was thinking that the key check might fit more naturally in UI::handle()
rather than CustTabs::handle(), but I see that ui.cc doesn't currently know
anything about nav or history, so now I'm not sure...
If it is not fundamental a design decision to leave ui.cc blind for
the nav and the history, one can include nav.h and history.h in ui.cc
and move the key check there (see attached patch).

Best,
Alex
Johannes Hofmann
2012-09-20 18:45:08 UTC
Permalink
Post by corvid
Post by Alexander Voigt
I use the "view page source" function from the right-click popup menu
very often and so I created a key binding for this (see attached
patch). Since I find this very handy, please consider this patch for
the repository.
This would be good to have.
I'd also like to have that feature.

Cheers,
Johannes
Jorge Arellano Cid
2012-09-23 15:44:58 UTC
Permalink
Post by Johannes Hofmann
Post by corvid
Post by Alexander Voigt
I use the "view page source" function from the right-click popup menu
very often and so I created a key binding for this (see attached
patch). Since I find this very handy, please consider this patch for
the repository.
This would be good to have.
I'd also like to have that feature.
+1

I also assume that ctrl+u is kind of standard, or at least
an unused keystroke combination.

As for where the check should go inside the code, just follow
the other keybindings. I wrote the GUI and the keycheck code,
and AFAIR there were issues with FLTK and they ended being as they
are for different reasons. If after reading the code you're still
unsure about where it belongs, just let me know to dig in.

BTW, as you use viewsource very often, what do you like best for
displayed HTML lines, one long scrollable line or wrapping? I tend
to prefer wrapping, for readability, but probably you can share a
deeper experience.
--
Cheers
Jorge.-
Jeremy Henty
2012-09-23 17:44:56 UTC
Permalink
Post by Jorge Arellano Cid
BTW, as you use viewsource very often, what do you like best for
displayed HTML lines, one long scrollable line or wrapping?
Pardon me for butting in here, but I use view source quite a lot and I
would definitely prefer wrapping. (Is wrapping supported at the
moment?) Many Web sites ship HTML with absurdly long lines which
makes viewing their source practically impossible - horizontal
scrolling is very little help when the line is around 50 screen widths
long (sadly this is not an exaggeration).

Regards,

Jeremy Henty
corvid
2012-09-23 18:24:44 UTC
Permalink
Post by Jeremy Henty
Post by Jorge Arellano Cid
BTW, as you use viewsource very often, what do you like best for
displayed HTML lines, one long scrollable line or wrapping?
Pardon me for butting in here, but I use view source quite a lot and I
would definitely prefer wrapping. (Is wrapping supported at the
moment?) Many Web sites ship HTML with absurdly long lines which
makes viewing their source practically impossible - horizontal
scrolling is very little help when the line is around 50 screen widths
long (sadly this is not an exaggeration).
I strongly prefer wrapping as well.
Alexander Voigt
2012-09-23 18:35:20 UTC
Permalink
Hi.
Post by Jeremy Henty
Post by Jorge Arellano Cid
BTW, as you use viewsource very often, what do you like best for
displayed HTML lines, one long scrollable line or wrapping?
Pardon me for butting in here, but I use view source quite a lot and I
would definitely prefer wrapping. (Is wrapping supported at the
moment?) Many Web sites ship HTML with absurdly long lines which
makes viewing their source practically impossible - horizontal
scrolling is very little help when the line is around 50 screen widths
long (sadly this is not an exaggeration).
I also like line wrapping more than scrolling horizontally. When you
want to read the HTML code with long lines, it is more convenient to
have only one scrolling direction (vertically) instead of two
(vertically + horizontally).

Best,
Alex
corvid
2012-09-28 02:48:53 UTC
Permalink
Post by Johannes Hofmann
Post by corvid
Post by Alexander Voigt
I use the "view page source" function from the right-click popup menu
very often and so I created a key binding for this (see attached
patch). Since I find this very handy, please consider this patch for
the repository.
This would be good to have.
I'd also like to have that feature.
+1
Committed.

Loading...