aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
AgeCommit message (Collapse)Author
2025-08-04Middle click in Home or Book opens in new tabRodrigo Arias Mallo
Open the Home page or the Bookmarks in a new tab if the button is pressed with middle-click, following the same behavior for hyperlinks.
2025-08-04Focus the N-th tab with Alt-<number>Rodrigo Arias Mallo
Allows jumping directly to a given tab. It encourages a low number of tabs opened, otherwise it will exceed the 1 to 10 range.
2025-05-08Make Ctrl+C copy selection into clipboardRodrigo Arias Mallo
Follows the behavior of so many other programs by copying the current text selection into the clipboard with Ctrl+C. Selecting text continues to copy it into the primary selection. Fixes: https://github.com/dillo-browser/dillo/issues/228
2025-05-07Copy links to clipboard selection tooRodrigo Arias Mallo
Selecting text in the page copies only to the primary selection. Copying links via the context menu now places the URL both in the primary and clipboard selections so it can also be pasted with Ctrl+V. See: https://github.com/dillo-browser/dillo/issues/228
2025-05-01Support for Content-Disposition filenameCameron Paul
2025-04-30Middle-click on back or forward opens in new tabAlex
Reviewed-by: Rodrigo Arias Mallo <rodarima@gmail.com> See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/XXD2NXCGQLZLJ3V57NCPU3327DAEFKAN/
2025-02-05Fix several typosGevel Tekens
See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/L3FFAINJJMIOZQNID5HC2DHKJIIIHEYH/
2024-12-17Add support for user actions in the link menuRodrigo Arias Mallo
Allows the user to define additional entries in the link menu which will execute the given program/script. Each actions is defined using the "link_action" option. The link URL is stored in the $url enviroment variable and the current page in $origin, so the user can customize how do the handling. Here is a simple example to add three new entries: link_action="Debug variables:echo url=$url origin=$origin" link_action="Open in MPV:mpv $url" link_action="Open in Firefox:firefox $url" The command is spawned in a forked process using the system() call, which uses the shell to expand any variable. In particular, the $url variable is set to the current URL being opened. Fixes: https://github.com/dillo-browser/dillo/issues/3
2024-10-28Reload the current page on SIGUSR1 signalRodrigo Arias Mallo
Reloads the current page on all windows when the SIGUSR1 is received. This is useful to update the page when it is being edited. Fixes: https://github.com/dillo-browser/dillo/issues/255
2024-10-13Control the page overlap independentlyRodrigo Arias Mallo
Introduces the new option scroll_page_overlap to control the amount of pixels of overlap when scrolling to the next or previous page. Previously this value was taken from scroll_step, but now they are controlled independently. Fixes: https://github.com/dillo-browser/dillo/issues/276
2024-10-13Add new scrollbar page modeRodrigo Arias Mallo
The scroll page mode changes the behavior of the mouse when clicking on the vertical scrollbar. When enabled with scrollbar_page_mode=YES, clicking with the left button anywhere on the vertical scrollbar will cause the page to scroll down one page. With the right button, to scroll up one page. Holding Shift temporarily reverts the value of the option.
2024-10-13Add support for left scrollbarRodrigo Arias Mallo
Implements support for placing the vertical scrollbar on the left side by setting scrollbar_on_left=YES on dillorc. By default, continues to be on the right side. See: https://www.toomanyatoms.com/software/mobilized_dillo.html Authored-By: dogma
2024-08-07Use dStrAsciiCasecmp instead of strncasecmpRodrigo Arias Mallo
Reviewed-by: dogma
2024-08-07Fix pedantic warningsRodrigo Arias Mallo
Reviewed-by: dogma
2024-06-25Add support for zoom factorRodrigo Arias Mallo
Allows zooming in and out of pages by changing the size of all elements, including font size, images and tables. The initial zoom is specified in the "zoom_factor" option of dillorc. Use the new shortcuts Ctrl+ and Ctrl- to adjust the zoom of the current page and Ctrl 0 to reset it to 100%. When a new tab or window is opened, the current zoom factor is inherited. Each tab retains its own zoom factor. Fixes: https://github.com/dillo-browser/dillo/issues/21
2024-06-09Add new_tab_page optionRodrigo Arias Mallo
Adds support to load a custom page when a new tab is opened. The current behavior is set as the default, load a blank page. The location bar is only selected when the new tab page is the blank page, otherwise the page loaded gets the focus. Co-authored-by: Alex <a1ex@dismail.de> Fixes: https://github.com/dillo-browser/dillo/issues/124
2024-04-09Control the direction of tab scrollingAlex
Adds the scroll_switches_tabs_reverse option in dillorc to allows reversing the direction of tab switching based on the movement of the mouse wheel. See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/F2EF4NHF3CBMJ3XZII2TFIE6MSXEE5AD/ Fixes: https://github.com/dillo-browser/dillo/issues/122 Reviewed-by: Rodrigo Arias Mallo <rodarima@gmail.com>
2024-03-09Use Doxygen comments for C filesRodrigo Arias Mallo
2024-02-18Expand tilde to home directory in local URLsRodrigo Arias Mallo
Allows paths like "file:~/" and "file:~/.dillo/dillorc" to be opened by Dillo by expanding the tilde character '~' to the value of the $HOME environment variable. Fixes: https://github.com/dillo-browser/dillo/issues/81
2024-01-22Add scroll_switches_tabs optionRodrigo Arias Mallo
By default, scrolling the mouse wheel over the tabs will switch among tabs. The option allows users to disable the feature.
2024-01-16Switch tabs using the mouse wheelRodrigo Arias Mallo
Allows switching tabs using the mouse wheel, which is useful to quickly scan pages by looking at the page content instead of the tab title.
2024-01-15Add ui_tab_height optionRodrigo Arias Mallo
The default tab height of 16 pixels was causing some usability issues as the tabs are quite small in large monitors. The default size is increased to 20 pixels and the new option "ui_tab_height" allows the user to specify a different value.
2023-12-20Add scroll_step optionRodrigo Arias Mallo
When using the mouse wheel to scroll a page, the default scroll step was causing a very slow scrolling speed. The new option "scroll_step" allows the user to define how many pixels the page is moved in every step of the mouse wheel. The default is increased to 100 pixels per step.
2016-07-13Bug meter message.Jorge Arellano Cid
2015-05-18let fltk wrap this dialog's textcorvid
2014-12-24merge 3.0.4.1 branchcorvid
2014-12-10Avoid a corner case segfault when no search URL is found in dillorc.Jorge Arellano Cid
e.g. entering a space containing sring in address bar.
2014-12-08make sure window is resizable with fltk-1.3.3Johannes Hofmann
A change introduced in fltk-1.3.3 makes it necessary to set the resizable of the window before any focus change is triggered. Otherwise the Dillo window cannot be resized in certain situations.
2014-08-02fix the icon name fixcorvid
Jorge found that AddressSanitizer complained about heap-use-after-free. The problem was that, with window name and icon name set to the same copied string (there is no separate copy_label() for the icon name), when Fl_Window::copy_label() was called to set the copied label to a new value, the old string is free()d and then iconlabel() is used before we have a chance to set it to our newly copied string.
2014-07-29fix icon namecorvid
http://lists.dillo.org/pipermail/dillo-dev/2014-July/010187.html I'm still curious why odd behaviour hadn't been reported by others with other window managers, but I can't justify putting a lot of time into this, and it may be simply that we expect dillo to have lots of little imperfections.
2013-10-14Reset background image of the layout.Sebastian Geerken
2013-07-23add search from address barJohannes Hofmann
Add the possibility to search from address bar by entering a prefix of a search_url label followed by a blank followed by the search term. Submitted by: Aki Helin <aki.helin@iki.fi> with some modifications.
2013-04-19trim some spacescorvid
2013-02-22fix warning in UIcmd_save()Johannes Hofmann
2013-01-27simplify ui color handling by using fltk free color indicescorvid
2013-01-11Modified a_Dialog_choice5() to accept any number of alternatives [p37sitdu]Jorge Arellano Cid
2013-01-10uicmd.cc: *UIcmd_make_save_filename(): clarify the loop logicJeremy Henty
2013-01-10uicmd.cc: consistent suggestions for save filesJeremy Henty
1: Suggest the same save file for "Save page" and "Save link". 2: Create the save file from the path and the query, ignoring the fragment. 3: Truncate the path and the query as necessary.
2013-01-08uicmd.cc: when saving, test whether the file exists and prompt before ↵Jeremy Henty
overwriting.
2013-01-02throw in some more UI colors to play withcorvid
2013-01-02ctrl-tab navigation fix; show new tab before hiding old onecorvid
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2013-January/009722.html (focus can go from main->location, and location can get its value selected)
2013-01-02uicmd.cc: refactor a_UIcmd_{save,save_link}().Jeremy Henty
2012-12-30uicmd.cc: fix the handling of prefs.save_dirJeremy Henty
prefs.save_dir was silently ignored if it contained no '/'
2012-12-30uicmd.cc: add "#include <string.h>".Jeremy Henty
2012-12-30uicmd.{hh,cc}: simplify by replacing a_UIcmd_{get,set}_save_dir() with ↵Jeremy Henty
a_UIcmd_init().
2012-12-30ui color fg/bg preferencescorvid
Recent mailing list: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2012-December/009661.html The earlier thread begins with: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-September/008890.html
2012-12-26Fixed a bug in dpip when dillo aborts a running dpi connectionJorge Arellano Cid
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2012-December/009668.html
2012-12-24never leave Location blank when requesting urlcorvid
2012-12-20don't let unhandled Escape close a browser windowcorvid
I noticed this with shift-Escape, but it would also happen with plain Escape if mapped to nop in keysrc.
2012-12-14Update focus priority number for tabs opened in backgroundJorge Arellano Cid
There're two options: update the focus number so when you close the current tab, focus goes to the last background-opened tab (as with this patch), or to leave it low so when you close the current tab, focus goes to the previous non-background tab.