General :  K-Meleon Web Browser Forum
General discussion about K-Meleon. Questions about how to setup it, macro coding, all related to its usage and the project itself, including this website. 
how to open in a new layer...?
Posted by: sieg
Date: April 14, 2008 05:30PM

hello,
does anybody know how to open a web search result in a new layer?

and is it possible to open bookmarks in a new layer when i click on them - for example - with the right mouse button?

thank you.
s.

Options: ReplyQuote
Re: how to open in a new layer...?
Posted by: desga2
Date: April 14, 2008 07:37PM

Go to Edit -> Advanced Preferences (F2) -> Browsing section -> General tab;
Select Open: "Netscape Bookmarks" in combo box and check "In new layer" and "In background".

About web search;
If you use URL bar to web search; The same but select Open: Typed URL in combo.
If you use searchbar plugin read this thread.
This in FAQ also could help you.

Or you could reffered to something as this thread.

K-Meleon in Spanish

Options: ReplyQuote
Re: how to open in a new layer...?
Posted by: sieg
Date: April 15, 2008 10:04PM

thanks for answer.

1. i didnt mean to open new bookmarks in a new layer, but if somebody know how to associate maybe an accelerator with this function. i mean to open bookmarks in a current layer, but it will be nice to open them in a new layer for example with the right mouse button.

2. for web search i use rebar menu plugin (menu with search engines associated with an accelerator). i meant just to click on the search engine from "tools - web search", write a search query in the popup dialog and see the result in a new layer.

thank you again for help.
s.

Options: ReplyQuote
Re: how to open in a new layer...?
Posted by: sieg
Date: April 17, 2008 09:37AM

i think with my web-search-result-into-new-layer problem maybe it will be possible if i change something or add a line into search.kmm makro. but this language seems really tough to understand for me. this search bar plugin mentioned above isnt a bad idea, but it seems uncomfortable when i use multiple search engines at a time. if somebody understand this makro langugage and knows where to make a change in this file, please, let me know.

thank you.
s.

Options: ReplyQuote
Re: how to open in a new layer...?
Posted by: desga2
Date: April 17, 2008 11:41AM

Ah! You like write some words to search in URL bar and search pressing Web Search button, and you like the results of web search in a new layer.
smiling smiley (Sorry i didn't understand you exactly)

In 'macros' subfolder open 'search.kmm' file with a plain text editor (as notepad) and search this code:
_Search_Typed{
$__query=$URLBAR;
$__query==$URL?$__query=prompt(_("Enter search query:"),sub("%s",$_Search_EngineName,_("Search (%s)"))):0;
$OpenURL=$__query==""?"":$_Search_EngineURL.urlencode($__query);
# prevent search queries from being added to the MRU
$__pref="kmeleon.MRU.behavior"; $__data=getpref(INT,$__pref); $__data==2?setpref(INT,$__pref,3):0; &OpenURL_Typed;
setpref(INT,$__pref,$__data);
}

Change to this code:
_Search_Typed{
$__query=$URLBAR;
$__query==$URL?$__query=prompt(_("Enter search query:"),sub("%s",$_Search_EngineName,_("Search (%s)"))):0;
$OpenURL=$__query==""?"":$_Search_EngineURL.urlencode($__query);
# prevent search queries from being added to the MRU
$__pref="kmeleon.MRU.behavior"; $__data=getpref(INT,$__pref); $__data==2?setpref(INT,$__pref,3):0; &OpenURL_InNew;
setpref(INT,$__pref,$__data);
}

Note changes in bold, if you like open search result in background layer change bold function to this: &OpenURL_InBg;

K-Meleon in Spanish



Edited 1 time(s). Last edit at 04/17/2008 11:42AM by desga2.

Options: ReplyQuote
Re: how to open in a new layer...?
Posted by: kko
Date: April 17, 2008 12:04PM

Quote
sieg
1. i didnt mean to open new bookmarks in a new layer, but if somebody know how to associate maybe an accelerator with this function. i mean to open bookmarks in a current layer, but it will be nice to open them in a new layer for example with the right mouse button.

Will be implemented in km 1.5 (actually it already is in 1.5b1).


Quote
sieg
2. for web search i use rebar menu plugin (menu with search engines associated with an accelerator). i meant just to click on the search engine from "tools - web search", write a search query in the popup dialog and see the result in a new layer.

Edit > Advanced Preferences (hit F2) and set Typed URLs to open in a new layer.



Edited 1 time(s). Last edit at 04/17/2008 12:05PM by kko.

Options: ReplyQuote
Re: how to open in a new layer...?
Posted by: desga2
Date: April 17, 2008 06:05PM

Quote
kko
Edit > Advanced Preferences (hit F2) and set Typed URLs to open in a new layer.
I like say this here:
Quote
desga2
Go to Edit -> Advanced Preferences (F2) -> Browsing section -> General tab;
Select Open: "Netscape Bookmarks" in combo box and check "In new layer" and "In background".

About web search;
If you use URL bar to web search; The same but select Open: Typed URL in combo.

and here:
Quote
desga2
Or you could reffered to something as this thread.

I posted 5 easy possible solutions but ours friend sieg want changed code! smiling smiley
I don't understand to users, we say easy and they say difficult! tongue sticking out smiley

K-Meleon in Spanish



Edited 1 time(s). Last edit at 04/17/2008 06:06PM by desga2.

Options: ReplyQuote
Re: how to open in a new layer...?
Posted by: sieg
Date: April 18, 2008 09:43PM

desga2: yes, that change in search.kmm macro seems like what i meant. thank you! sorry for still not being satisfied with all your written solutions, but if k-meleon is so modifiable as posted, id guessed it could do what i exactly wished. winking smiley

p.s.: that preference - typed url into new layer does what i meant, but it also opens all urls written into url bar into new layer which i didnt want.

but thanks everyone for trying to help me!

sieg.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.