aboutsummaryrefslogtreecommitdiff
path: root/src/prefsparser.cc
AgeCommit message (Collapse)Author
2025-02-19Fix build on Solaris 10 and old gcc 4.0.1Claes Nästén
Remove extra semicolons and commas, as well as isinf() so it builds and runs on Solaris 10. Also add extra fixes for non C++11 courtesy of Sevan Janiyan, making Dillo compile and run on OS X 10.4 PowerPC with GCC 4.0.1 and 8.5. Co-authored-by: Sevan Janiyan <venture37@geeklan.co.uk>
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-12-08Allow image formats to be disabled from dillorcRodrigo Arias Mallo
Makes disabling certain formats posible without the need to rebuild Dillo from source. See: https://github.com/dillo-browser/dillo/pull/312
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-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-29Add force https modeMark Walker
Implement an option to force all http urls to be upgraded to HTTPS, similar to HTTPS-Only Mode in Firefox. A http_force_https preference variable is provided as well as a menu bar item to toggle this mode. See: https://support.mozilla.org/en-US/kb/https-only-prefs
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-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-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-06-26have prefs parser syntax error print line numbercorvid
2016-06-21Removed the w3c_plus_heuristics dillorc option.Jorge Arellano Cid
No longer necessary since the new nesting-cleanup design.
2015-06-29prefs.http_strict_transport_securitycorvid
2015-03-08fix leak introduced in bbd25bf5Johannes Hofmann
noticed-by: eocene
2015-02-15use new count field to override default search urlJohannes Hofmann
2015-02-15add count field in PrefsParser SymNode_tJohannes Hofmann
2015-02-15use single symbols table in PrefsParser::parse()Johannes Hofmann
2014-07-21New dillorc option adjust_table_min_width.Sebastian Geerken
2014-07-18New dillorc option 'adjust_min_width'. Also fixed bug in textblock extremes ↵Sebastian Geerken
calculation.
2014-07-17http_persistent_conns preferencecorvid
2013-11-20Added option "load_background_images" and entry in the tools menu.Sebastian Geerken
2013-10-16Strechability of non-justified lines: refinements.Sebastian Geerken
2013-09-16Made show_url dillorc option work again (BUG#1128)Jorge Arellano Cid
Some apps that embed dillo or work in kiosk mode find good use for it.
2013-09-14BUG#1140: add show_ui_tooltip preferencecorvid
2013-08-19New prefs variable "white_bg_replacement".Sebastian Geerken
2013-01-12clean up struct typedefsp37sitdu, corvid
2013-01-02throw in some more UI colors to play withcorvid
2012-12-31rm show_url preferencecorvid
It hasn't worked for a long time, no one seems to miss it, and there isn't any compelling case for making the effort to make it work. http://lists.auriga.wearlab.de/pipermail/dillo-dev/2012-December/009704.html
2012-12-30fix prefs color msgcorvid
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-26don't let prefs.show_url be disabledcorvid
2012-11-18Cleaned up and completed configuration for penalties.Sebastian Geerken
2012-11-14Cleaned up preferences.Sebastian Geerken
2012-11-08Making hyphen penalties configurable.Sebastian Geerken
2012-10-02rm filter_auto_requestscorvid
2012-05-26unify use of sizeof() when computing array lengthJohannes Hofmann
Submitted by: 123 <p37sitdu@lavabit.com>
2011-11-11locale-independent ASCII character case handlingcorvid
Basically, I and i are different letters in Turkic languages, and this causes problems for str(n)casecmp and toupper/tolower in these locales when dillo is dealing with ASCII.
2011-09-17add show_quit_dialog dillorc optionJohannes Hofmann
2011-09-17color pref error MSGcorvid
2011-09-13UI theme preferencecorvid
2011-09-06avoid redraw loops with ComplexComplexButtonResourceJohannes Hofmann
ComplexButtonResource was creating endless redraws. Testcase: <table> <tr> <td> <div> <button></button> </div> <div> words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words <span style="white-space:nowrap">And words in a span</span> <button></button> </div> </td> </table> This also fixes redraw loops with <button> in combination with limit_text_width=YES, so we no longer need to disable this option. Reported and testcase by: corvid <corvid@lavabit.com>
2011-07-29Removed the large panel option (P_large).Jorge Arellano Cid
Nobody saw use for it...
2011-07-24Added multiple search engines (with several 'search_url' lines in dillorc)Jorge Arellano Cid
This patch adds the PREFS_STRINGS type to the prefsparser, which allows having multiple different strings asociated with one dillorc option (stored in a list)
2011-05-27move the disabling of prefs.limit_text_widthcorvid
2011-04-29Set middle click as default for close tab (+ right_click_closes_tab in dillorc)Jorge Arellano Cid
2010-09-24bring back bg_color dillorc optionJohannes Hofmann