Author Topic: Lets create a PCLinuxOS webkit browser (python)  (Read 28305 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #300 on: April 13, 2011, 01:03:10 AM »
Excellent work, ongoto!

ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #301 on: April 13, 2011, 02:41:23 AM »
Thank you gents.  Just havin' a bit o' fun.   :)

Been looking for an earlier post about showing the bookmarks page when you open a new tab, but I can't find it now.  I like that idea.


Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #302 on: April 13, 2011, 03:15:54 AM »
It's looking great, ongoto.  There is a small omission in the About dialog but that will be fixed ;)
By the way, it was Dragynn who posted about the bookmarks.  I remember because his screenshot triggered my query about gtk themes, but his post seems to have gone missing. 
Linux Registered User # 529407


Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #303 on: April 13, 2011, 04:04:04 AM »


Surfraw does bookmarks and saves them to a plaintext file that can then be read by the file:/// address in hammer

Neal or Sproggy any chance of a surfraw package with graphical browser set to hammer

We then need the urlbar to be able to "talk" to the shell
And perhaps use :bmark as the trigger

Jase


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #304 on: April 13, 2011, 04:13:58 AM »
Jase,
I attempted to open /usr/share/gtk-doc/html/pygtk/class-gtkmenubar.html in Hammer, but got an "Unable to load page" error. I believe we haven't included the code to open a file, only web pages.

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #305 on: April 13, 2011, 05:42:35 AM »
Jase,
I attempted to open /usr/share/gtk-doc/html/pygtk/class-gtkmenubar.html in Hammer, but got an "Unable to load page" error. I believe we haven't included the code to open a file, only web pages.


Neal,

Try entering

file:///usr/........

Currenly at work posting this on my phone

Jase


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #306 on: April 13, 2011, 05:47:52 AM »
Yea, that works, Jase. Thanks. The right click > open with > PCLinuxOS Hammer in PCManFM doesn't work. Expected, I suppose. :D

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #307 on: April 13, 2011, 05:53:37 AM »
Yea, that works, Jase. Thanks. The right click > open with > PCLinuxOS Hammer in PCManFM doesn't work. Expected, I suppose. :D


When we find out where to place the code that removes the need to use http:// manually we should be able to do so for file:// also. Then "open with" will work

Jase


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #308 on: April 13, 2011, 06:00:52 AM »
Right you are, Jase.

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #309 on: April 13, 2011, 08:32:12 AM »
ongoto,

Tracked him down(!) - go to http://www.pclinuxos.com/forum/index.php/topic,89668.msg752341.html#msg752341 and see what Dragynn had done regarding that bookmark idea.
Linux Registered User # 529407


ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #310 on: April 13, 2011, 01:05:02 PM »
ongoto,

Tracked him down(!) - go to http://www.pclinuxos.com/forum/index.php/topic,89668.msg752341.html#msg752341 and see what Dragynn had done regarding that bookmark idea.


100 thank you's Taco.22
This  idea by Dragynn really gets me.  Bookmarks never looked so good.  I'd have never thought of it.

I have been using an html home page to keep my private bookmarks like bank, paypal, accounts, etc. Xmarks never gets to see those because they aren't in the .mozilla data base.  Adding some graphics really warms it up.

Thanks Dragynn

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #311 on: April 13, 2011, 04:39:51 PM »
The html homepage is a thought - I always used to do that on my Macs as it gave me quick access to software links and search engines and the like without clunking around with bookmarks.  I've now gotten lazy with bookmark bars and Synaptic!  Might have another look at the concept.
Linux Registered User # 529407


Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #312 on: April 13, 2011, 06:54:35 PM »
OK time for a recap of post 81, its nice to see that Dragynn puickked up on one of the elements there in

Quote from: POST 81 Revision/Update
Ok folks

Truly great work so far, it really makes me proud to be associated with PCLinuxOS and all the great folk therein, I cant beleive how fast this has been put together.

As mentioned earlier I do have a todo list

Tab support :

We have 2 ways we could go we could use native tabbing as I suspect Neal is trying or we can use an app like 'tabbed' (ther is a request for it...) which is a generall tabbing app that allow you to tab together different apps. because I tend to use the Dynamic WindowManagers (and I am working with sproggy to get ScrotWM working correctly, I would actully prefer non-nativetabbing as a dynamic WM effectivly does this anyway, although i will go with the majority. (could be cool to have a version that does not tab..)
TABBING DONE
Quote

Actvate :set and :map and other webkit controls:

 these allow you to set the external download manager, fonts, CSS, spellchecking, other external handlers etc directly 'on the fly' from the browser urlbar ( and if we can sort a config .dotfile they can be set there also) Jumanji browser does this, so we have a source of the how to.  
STILL TO BE FIGURED OUT

Quote
Bookmark support

at the moment you would need to have a html page or a xmarks account honmepage to be able to use boookmarks, native support in plain text (like jumanji) or html would be good

Partially Done

I am glad you guys have bought into the html bookmarks the fact we can theme the background or use a CSS to make things look nice is pretty good.

I still think that surfraw is the best oportunbity here with a urlbar to shell command parser we can use surfraw doe both bookmarking and for seacjing - we could defailt to using google - and still have the power of over 100 search engines built into TheHammer.
Quote
Cookie support.

this again would be done via webkit (again jumanji offers basic cookie acceptance), I would love to see this have a whitelist/blackli ability
Work in progress - thanks Sproggy for the help
Quote
Webpage source view

Again via webkit - jumanji can do it I want 'The Hammer' to do it too DONE
Quote
Script blocking:

This can be activated by webkit iirc, I think that jumanji blocks scripts by default in his manor and you give the 'go ahead' for them to work

AdBlocking -

This is possible too afaik via a :set line

CA root cert handling

This would be a nice extra XXXterm browser does this already and is  a webkit minibrowser it may be worth looking how this is done

External Download app:

I think that we could probably have wget with a zenity gui around it to make it look better  (this will need the :set function avaialable I think)

Any thoughts on the above?

btw the editors dont like spaces it seems and prefer <tab>ulation not sure how to stop cut'n'paste from introducing them

still enough to keep us busy

a Full Screen Mode - would be nice ot achieve this by toggling the toolbar (prev via keyBinding]

Keybindings - based on the traditional editors hjkl for navigation etc

impliment the http://<url>. file://<location>  smart-completion
There are many more that have  also been mentioned


Jase
« Last Edit: April 13, 2011, 07:01:20 PM by Hootiegibbon »


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #313 on: April 13, 2011, 10:09:03 PM »
Full screen mode - I've always just used the window buttons for that.

Surfraw has potential, but I still can't get it to work.  Surfraw-1.07 from repo won't operate from terminal.  When I put in "surfraw -google" or any other command the line just disappears.  I have tried "surfraw-2.2 from outside and also allocated a browser in surfraw .conf and set default to graphical browser.  Upon writing "sr google" in terminal the browser page opens with this error "http://openurl%28http//www.google.com/".  Same happens with other elvis.  At least 2.2 opens a browser whereas 1.07 won't even do that.  Any ideas?

Just a little something - maybe a logo for the Hammerhead team?!?
Linux Registered User # 529407


ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #314 on: April 13, 2011, 10:32:54 PM »
OK
http://www.box.net/shared/9u450ely3t

You no longer have to type http://

Other mods ( still a little buggy )
    Made the back/fwd buttons gray if not available
    Made the zoom level persistent
There's still something not quite right with new tabs.  We'll get it.

Just a little something - maybe a logo for the Hammerhead team?!?



Nice!  Adds a little depth of character.   :)