Improvement requests :  K-Meleon Forum
Use this forum to talk about a feature you're missing.  
stay on current tab
Posted by: Tomas Herrmann
Date: November 04, 2016 01:52PM

I´d rather stay on the current tab when I open a new one.
So I would like to have the default setting: open new tabs in background.

Is that possible?

Tomas

Options: ReplyQuote
Re: stay on current tab
Posted by: Tomas Herrmann
Date: November 04, 2016 02:00PM

Quote
Tomas Herrmann
I´d rather stay on the current tab when I open a new one.
So I would like to have the default setting: open new tabs in background.

It works for new written links (if configured so) - but not for ctrl-t, a mouse gesture, or right-click "open in new tab"

Options: ReplyQuote
Re: stay on current tab
Posted by: JamesD
Date: November 04, 2016 04:00PM

Quote
Tomas Herrmann
It works for new written links (if configured so) - but not for ctrl-t, a mouse gesture, or right-click "open in new tab"

Check and see if your "menus.cfg" file has the lines in red below.

I am using KM 76 RC2 and I can right click and choose Open in Background. If you do not have this code, just copy these lines into your menus.cfg file and save it.


LinkOpen{
%ifplugin tabs
Open In Ne&w Tab=openLinkInNewTab
Open In Bac&kground Tab=openLinkInBackgroundTab
-
%endif
Open In &New Window=openLinkInNewWindow
Open In Backgro&und Window=openLinkInBackground
}

OOPS: this not right below. I think I am in wrong place. More later.

Edit 2:

No available command:

Tab Actions

    tabNew      id = ID_NEW_TAB
    tabClose      id = ID_CLOSE_TAB
    tabCloseAll      id = ID_CLOSE_ALLTAB
    tabCloseAllOther      id = ID_CLOSE_ALLOTHERTAB
    tabNext      id = ID_TAB_NEXT
    tabPrev      id = ID_TAB_PREV
    tabLast      id = ID_TAB_LAST

I have not tried this yet, but I think that if you add the line in red below to your accel.cfg file it will give you the option to open in the background tab from CTRL ALT T.

%ifplugin tabs
CTRL T = tabNew
CTRL ALT T = openLinkInBackgroundTab
%endif

Note: make these changes when KM is not running.

Edit 3

Do it this way for a CTRL ALT T to open a tab, apparently, in the background. Copy the following code and save it as a macro file.

MkNeBgTab.kmm ( Give it this name and save in macros folder)

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
# File name: MkNeBgTab.kmm
# ---------- Create an accel key  for a new tab in background -------------------------------
#
# Dependencies  : main.kmm KM version 75 or later and tabs
# Reference     : http://kmeleonbrowser.org/forum/read.php?4,140134
# Version       : 1.0   2016-11-04
# Author        : JamesD 
# ---------------------------------------------------------------------------------------

## PUBLIC
MkNeBgTab_OpenNewTabInBkGn {
id(ID_NEW_TAB);
id(ID_TAB_PREV);
}

## PRIVATE
_MkNeBgTab_SetAccels {
setaccel("CTRL ALT T", "macros(MkNeBgTab_OpenNewTabInBkGn)");
}

# ------------------------------------------------------------
$OnInit = $OnInit . "_MkNeBgTab_SetAccels;";
$macroModules = $macroModules . "MkNeBgTab;";



Edited 3 time(s). Last edit at 11/04/2016 05:24PM by JamesD.

Options: ReplyQuote
Re: stay on current tab
Posted by: siria
Date: November 04, 2016 07:37PM

http://kmeleonbrowser.org/wiki/FAQ#mouseaccels


(sig) Brandnew K-Meleon 77 in development now!
(based on Goanna engine, own subforum, try TEST BUILDs)
K-Meleon FAQ (link missing in forum sidebar)
Tips&Tricks - Learning new stuff every day
New to K-Meleon? What do you like? What not?

Options: ReplyQuote


K-Meleon forum is powered by Phorum.