mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-20 01:29:20 +03:00
Allow a second-run NetSurf to open passed URL in a new tab rather than a new window.
This commit is contained in:
parent
02360ec7be
commit
923cc06f98
8
frontends/amiga/dist/NetSurf.guide
vendored
8
frontends/amiga/dist/NetSurf.guide
vendored
@ -129,8 +129,8 @@ The user directories contain user-specific preferences and cache data. Always l
|
|||||||
Current user. Defaults to the value of the USER env-var, or Default.
|
Current user. Defaults to the value of the USER env-var, or Default.
|
||||||
@endnode
|
@endnode
|
||||||
|
|
||||||
@node options "Options file"
|
@node options "Choices file"
|
||||||
The options file is stored in @{"Users/Default/Choices" link Users/Default/Choices/Main} by default. Most of the settings can be changed from within NetSurf by selecting Edit preferences from the Settings menu.
|
The Choices file is stored in @{"Users/Default/Choices" link Users/Default/Choices/Main} by default. Most of the settings can be changed from within NetSurf by selecting Edit preferences from the Settings menu.
|
||||||
|
|
||||||
There are a couple of Amiga-specific options which can only be changed directly in the file. These are:
|
There are a couple of Amiga-specific options which can only be changed directly in the file. These are:
|
||||||
|
|
||||||
@ -143,8 +143,8 @@ There are a couple of Amiga-specific options which can only be changed directly
|
|||||||
@{b}reformat_delay@{ub} Sets a delay on performing content reformats (eg. if the window has been resized). Set to a higher value to make "resize with contents" more responsive. Defaults to 0 (immediate).
|
@{b}reformat_delay@{ub} Sets a delay on performing content reformats (eg. if the window has been resized). Set to a higher value to make "resize with contents" more responsive. Defaults to 0 (immediate).
|
||||||
@{b}redraw_tile_size_x@{ub}/@{b}redraw_tile_size_y@{ub} Specify the size of the off-screen bitmap. Higher will speed up redraws at the expense of memory. 0 disables tiling (will use a bitmap at least the size of the screen NetSurf is running on)
|
@{b}redraw_tile_size_x@{ub}/@{b}redraw_tile_size_y@{ub} Specify the size of the off-screen bitmap. Higher will speed up redraws at the expense of memory. 0 disables tiling (will use a bitmap at least the size of the screen NetSurf is running on)
|
||||||
@{b}web_search_width@{ub} Defaults to 0. Larger values will increase the size of the web search gadget next to the URL bar.
|
@{b}web_search_width@{ub} Defaults to 0. Larger values will increase the size of the web search gadget next to the URL bar.
|
||||||
|
@{b}mask_alpha@{ub} Threshold to use when determining which alpha values to convert to full transparency (0 - 255, where 255 will convert even opaque pixels to transparent). Defaults to 0. This is only used in palette-mapped modes where alpha blending is not currently supported.
|
||||||
@{b}mask_alpha@{ub} Threshold to use when determining which alpha values to convert to full transparency (0 - 255, where 255 will convert even opaque pixels to transparent). Defaults to 50 (0x32). This is only used in palette-mapped modes where alpha blending is not currently supported.
|
@{b}tab_new_session{ub} If NetSurf is already running, this will cause any passed URLs to open in a new tab rather than a new window.
|
||||||
|
|
||||||
@{b}url_file@{ub} Path to URL database file
|
@{b}url_file@{ub} Path to URL database file
|
||||||
@{b}hotlist_file@{ub} Path to Hotlist file
|
@{b}hotlist_file@{ub} Path to Hotlist file
|
||||||
|
@ -1079,12 +1079,17 @@ static void gui_init2(int argc, char** argv)
|
|||||||
if(!notalreadyrunning)
|
if(!notalreadyrunning)
|
||||||
{
|
{
|
||||||
STRPTR sendcmd = NULL;
|
STRPTR sendcmd = NULL;
|
||||||
|
char newtab[4] = "\0";
|
||||||
|
|
||||||
|
if(nsoption_bool(tab_new_session) == true) {
|
||||||
|
strcpy(newtab, "TAB");
|
||||||
|
}
|
||||||
|
|
||||||
if(temp_homepage_url) {
|
if(temp_homepage_url) {
|
||||||
sendcmd = ASPrintf("OPEN \"%s\" NEW",temp_homepage_url);
|
sendcmd = ASPrintf("OPEN \"%s\" NEW%s", temp_homepage_url, newtab);
|
||||||
free(temp_homepage_url);
|
free(temp_homepage_url);
|
||||||
} else {
|
} else {
|
||||||
sendcmd = ASPrintf("OPEN \"%s\" NEW",nsoption_charp(homepage_url));
|
sendcmd = ASPrintf("OPEN \"%s\" NEW%s", nsoption_charp(homepage_url), newtab);
|
||||||
}
|
}
|
||||||
ami_arexx_self(sendcmd);
|
ami_arexx_self(sendcmd);
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ NSOPTION_BOOL(new_tab_is_active, false)
|
|||||||
NSOPTION_BOOL(new_tab_last, false)
|
NSOPTION_BOOL(new_tab_last, false)
|
||||||
NSOPTION_BOOL(tab_close_warn, true)
|
NSOPTION_BOOL(tab_close_warn, true)
|
||||||
NSOPTION_BOOL(tab_always_show, false)
|
NSOPTION_BOOL(tab_always_show, false)
|
||||||
|
NSOPTION_BOOL(tab_new_session, false) /* When NetSurf is already running, open new tab */
|
||||||
NSOPTION_BOOL(kiosk_mode, false)
|
NSOPTION_BOOL(kiosk_mode, false)
|
||||||
NSOPTION_STRING(search_engines_file, "PROGDIR:Resources/SearchEngines")
|
NSOPTION_STRING(search_engines_file, "PROGDIR:Resources/SearchEngines")
|
||||||
NSOPTION_STRING(arexx_dir, "PROGDIR:Rexx")
|
NSOPTION_STRING(arexx_dir, "PROGDIR:Rexx")
|
||||||
|
Loading…
Reference in New Issue
Block a user