K-Meleon
KMeleonWiki > Resources > MacroLibrary > Load a URL in a New Layer
Submitted by: WHO - junkeymail»mindless (that is a real address)
Notes:
This Macro allows you to load a URL that has been typed in the URLbar in a new layer, preserving the current page in it's current layer. It is not necessary to add the info to both Toolbars.cfg and Accelerators.cfg. This isn't perfect - it doesn't re-instate the URL of the page you originally had(that stays in the original layer). Anyone that can add that please do.
# Macro to load a URL in a new layer new_layer_load { $oldclip = getclipboard() id(ID_SELECT_URL?); id(ID_EDIT_COPY?); $address = getclipboard(); pluginmsg(layers, "OpenURL", $address); setclipboard($oldclip); }
under "%ifplugin macros" add
SHIFT VK_RETURN = macros(new_layer_load)
(you may want to add everything between the first and last line into the 'URL Bar buttons' toolbar to keep things tidy)
Go in Layer Toolbar { Go in New Layer{ macros(new_layer_load) Open in New Layer (Shift+Enter) #you can use any icon layers.bmp layers.bmp layers.bmp } }