General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Open Home page & history in new tab?
Posted by: Mello
Date: May 28, 2018 10:08PM

I know there is a right click option for individual history links in the list, but I prefer a left click option for this and home button. Is possible?

Options: ReplyQuote
Re: Open Home page & history in new tab?
Posted by: siria
Date: May 28, 2018 11:39PM

Quote
Mello
I know there is a right click option for individual history links in the list, but I prefer a left click option for this and home button. Is possible?

For the Home-button to open a new tab, write this into a new kmm-file in macros folder:

# Open Home in New Tab (http://kmeleonbrowser.org/forum/read.php?1,146348)

HomeTab{
macroinfo=_("Open home page in a new tab");
opentab(getpref(STRING,$KM_Homepage));
}
$Home=HomeTab;


This should work if you only use a simple 1-page Home page




History in new tab: no idea if there are any native options?
A quick web search tells, one can middle-click an entry to open it in a new tab.

If middle-clicking is inconventient (touchpads etc.), here's another little workaround-macro for testing:

Places_History_Tab{
macroinfo=_("Open history in a new tab");
opentab("about:blank");
opennew("chrome://history/content/history.xul");
}


And in toolbars.cfg the button-command must be changed manually too:
Change macros(Places_History) to macros(Places_History_Tab)

But there's a catch:
this opens a new tab BEFORE choosing any history entry. That means if you only want to take a quick look in the history menu but not open anything, you'll have to close that empty tab manually again.




EDIT: Have started making a full macro, just not quite finished yet.



Edited 2 time(s). Last edit at 05/29/2018 06:59AM by siria.

Options: ReplyQuote
Re: Open Home page & history in new tab?
Posted by: Mello
Date: May 29, 2018 09:58PM

Great! Opening Home in new tab works!
I just use the single homepage.

Thanks siria, very kind, I'll wait for full history macro.

Options: ReplyQuote
Re: Open Home page & history in new tab?
Posted by: siria
Date: May 30, 2018 02:11AM

Quote
siria
History in new tab:

little workaround-macro for testing:

Places_History_Tab{
macroinfo=_("Open history in a new tab");
opentab("about:blank");
opennew("chrome://history/content/history.xul");
}


And in toolbars.cfg the button-command must be changed manually too:
Change macros(Places_History) to macros(Places_History_Tab)

Thinking about it, instead of fiddling with the above, perhaps just change the original macro? That would be a lot easier, it's enough to insert 1 single line only. That means no other files have to be edited.

in macros/places.kmm, just add the red line:

Quote

Places_History{
macroinfo=_("Open the history");
opentab("about:blank");
opennew("chrome://history/content/history.xul");
}

The only prob is that updating K-Meleon can overwrite same-name files. To avoid this I usually rename mine, for example "places_mod.kmm"



Edited 1 time(s). Last edit at 05/30/2018 02:16AM by siria.

Options: ReplyQuote
Re: Open Home page & history in new tab?
Posted by: Mello
Date: May 31, 2018 06:26PM

Thanks siria will test later this evening.

Options: ReplyQuote
Re: Open Home page & history in new tab?
Posted by: Mello
Date: May 31, 2018 10:03PM

Thank you.

I tried both methods but still opening in current tab using Goanna

Options: ReplyQuote
Re: Open Home page & history in new tab?
Posted by: siria
Date: June 01, 2018 02:33AM

History in new tab:

Quote
Mello
Thank you.
I tried both methods but still opening in current tab using Goanna

Ah pity. For me it works, but did only a quick test on an offline computer, may be just luck. So until this important option hopefully gets integrated some day, can think only of 3 ways:

- middle-click on history entries
- or CTRL + leftclick
- or try rodocops workaround in his PRO builds:

Quote

Places_History{
macroinfo=_("Open the history");
opentab("chrome://history/content/history.xul");
}


Options: ReplyQuote
Re: Open Home page & history in new tab?
Posted by: Mello
Date: June 02, 2018 03:04PM

I'll try your method again siria in the next few days, I might have confused
the two versions, in the meantime rodocop's workaround is very useful.



Edited 1 time(s). Last edit at 06/02/2018 03:04PM by Mello.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.