Luke Plant: Konqueror URL Shortcuts

Konqueror's 'Ctrl-Home' keyboard shortcut is usually limited to a single URL -- either the home page or home folder -- and so often does "the wrong thing" for the user. Here is a tutorial on how to override this using KHotKeys and DCOP, make it context sensitive, and how to create keyboard shortcuts for any URL while we are at it.

Dot Categories: 

Comments

by Jonathan C. Dietrich (not verified)

Now we just need to make this easy for mom & pop... aka default to use both.. and tie the home button in the toolbar to it and we are gold.

by Luke Plant (not verified)

That won't be possible without actual changes to the Konqueror code, as far as I can see. This was just meant as a work-around, and a demonstration of what you can do with the great frameworks in KDE.

(It is filed as a bug already - multiple times - e.g. http://bugs.kde.org/show_bug.cgi?id=42270 )

Luke

by Michael Jahn (not verified)

No, this is a dupe :-)
http://bugs.kde.org/show_bug.cgi?id=8333 is the one you are looking for.

by Andre Somers (not verified)

If you find such dupes, it would be usefull to add a comment in the bugreport with a reference to the original report so this one can be closed.

by Christian Loose (not verified)

??? It's closed as duplicate since 2002.

by Bausi (not verified)

Think about it. All my most visited bookmarks are in the bookmar toolbar or in the bookmark menu. Why should one address button be in the main toolbar when no other one is?

I think the concept of the Home URL for browsing is flawed. Put your favorite sites in your bookmark toolbar (call it "Home" if you like) to be easily accessible and hide the home button completely in the web browsing profile.

What kind of home URL do people have?
- Their personal site (but you don't really want to see it EVERYTIME you open a browser window)
- Google (use gg:)
- a blank page (well, you don't need a home shortcut then)
- ???

There's no need for 'Go Home' when you surf the net.

by Eric Laffoon (not verified)

> There's no need for 'Go Home' when you surf the net.

There was a reason to come up with this... Netscape wanted to be a portal. Yahoo focuses on this with customizations of my Yahoo. The point being that a portal is a very profitable place to sell ads. I'm reminded of the Futurama episode where Fry was incensed they put ads in your dreams and listed off all the places they were in the 20th century, "but never in your dreams". Of course like Pavlov's dog they were all off to go shopping next.

Your point is very good. I get irritated if I accidentally click the home button when browsing, but even running a business I have no address that makes sense for it. My home page? My administrative interface? I have these on toolbars. I can only see this if I were drooling for a portal. ;-)

What really makes sense is hiding this button in the browser mode.

by Brandybuck (not verified)

I agree completely. A "home" button makes sense in a hypertext document (take me back to the index) and file browsing (take me back to my home directory), but it doesn't make any sense while browsing the web. Unfortunately we're stuck with a bad concept that has survived for far too long.

by andrianarivony (not verified)

Your point is good. But I can't agree.
I often return to my home directory when I'm browsing the web. Combinated with Tab browsing, it's one of my prefered feature of konqui.

by Eduardo (not verified)

As far as I can see, he was not talking about your home directory, but having a "home page" when surfing the web.

I can't see why people need a "home page" when surfing the web, too.

I disagree. As my homepage I use a local html file that has links to all my bookmarked webpages, together with a google search bar and other customizations. This way you have a lot more flexibility than with the bookmark toolbar alone.

You can as well put your local file as a first item in the bookmark toolbar.

by jmfayard (not verified)

I came up with the same conclusion than you : to make this concept of "home" useful, I have to generate a page with my bookmarks, a serach bar and some RSS feeds.

But actually, we both prove he has a point, because... well if it is that hard to make the concept of "Home" page useful, then the concept is flawed. It is good for selling advertisements with your portal, but it´s bad for 90% (just a guess) of the users.

by superstoned (not verified)

or use kontact's home ;-)

by John Lines (not verified)

In a corporate environment it is useful to have everybodies home page pointed at the company intranet by default. If somebody needs to be guided to a URL it is much easier to tell them to click on the home page icon, and then follow a link than to get them to type in a URL. (People who know enough to change their home page do not usually need this level of support).

by AC (not verified)

I was trying to use khotkeys and DCOP the other day to give focus or raise different windows. I couldn't find a good way to do this, though. I didn't see anything in KWin's DCOP interface that would give me a window list, or raise a window. Does anyone know how to do that?

by Luke Plant (not verified)

You can get functions like these:
void hide()
void maximize()
void minimize()
...
void raise()
void lower()
void restore()
void show()

but it seems it's a different object with each app e.g.
Kopete:
dcop kopete mainWindow
Konq:
dcop konqueror-XXXX konqueror-mainwindow#1
KOrganizer:
dcop korganizer "KOrganizer MainWindow"

Also, some of these functions don't seem to work if the app is not on your current virtual desktop.

by AC (not verified)

The focus-stealing prevention seems to catch that. It's too bad there's no KWin interface for this that could bypass it.

by Luke Plant (not verified)

Also, KHotKeys has 'Activate window' as a builtin action, which works well enough for me.

by ac (not verified)

Hi there,

still being excited about gecko/firefox getting proper qt and kde integration
I wonder whether there has already been any code committed...

Here I see nada:
http://bonsai.mozilla.org/cvsquery.cgi?branch=HEAD&branchtype=exact&date...

And also there has been no single message mentioning it in the mailinglists
so far.

Is there no blog telling about the progress?

How about some enlightenment... :-) ?