1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-01 02:05:33 +00:00
Commit Graph

391 Commits

Author SHA1 Message Date
Witold Filipczyk
29a84b5f44 [cmdline] const return value 2022-02-18 14:42:25 +01:00
Witold Filipczyk
4bfd00d4db [config] const in help_str 2022-02-10 19:48:46 +01:00
Witold Filipczyk
2b67592dfd [kbdbind] const in kbd_nm_lookup 2022-02-09 18:24:36 +01:00
Witold Filipczyk
bca78f977f [config] const in print_full_help_outer 2022-02-05 15:51:57 +01:00
Witold Filipczyk
471b431a98 [options] option_resolver const 2022-02-04 18:19:15 +01:00
Witold Filipczyk
d5f06127ff [config] get_keymap_name const 2022-02-04 16:40:46 +01:00
Witold Filipczyk
141c7c2896 [config] const in test_confdir 2022-02-01 17:54:15 +01:00
Witold Filipczyk
83da43fb98 [options] const 2022-01-31 16:09:02 +01:00
Witold Filipczyk
cba95b2b30 [event] union for const/non-const void * 2022-01-30 19:19:20 +01:00
Witold Filipczyk
9bbe2eb4ed [options] const in add_opt 2022-01-30 17:27:11 +01:00
Witold Filipczyk
64cc15766d [dialogs] astr and adesc 2022-01-30 15:27:49 +01:00
Witold Filipczyk
bcc911019d [config] trick with union { const char *, char * } 2022-01-30 15:22:18 +01:00
Witold Filipczyk
94a3c6326b [config] Some const 2022-01-30 14:32:48 +01:00
Witold Filipczyk
0563cf3418 [cmdline] remote_methods const char * 2022-01-30 14:24:52 +01:00
Witold Filipczyk
36e9d34d32 [options] change_hooks const name 2022-01-29 19:15:21 +01:00
Witold Filipczyk
72dee1adcf [options] const void_dataptr 2022-01-29 19:10:27 +01:00
Witold Filipczyk
d5ba0fec64 [options] const desc 2022-01-29 19:07:54 +01:00
Witold Filipczyk
c5b5f3f039 [options] const capt 2022-01-29 19:06:05 +01:00
Witold Filipczyk
3a052556f1 [options] const capt 2022-01-29 19:01:57 +01:00
Witold Filipczyk
314d1a8d09 [options] option_init const path 2022-01-29 18:51:45 +01:00
Witold Filipczyk
a60609d396 [options] option_init const name 2022-01-29 18:43:18 +01:00
Witold Filipczyk
0689f0502e [options] const desc 2022-01-29 18:37:02 +01:00
Witold Filipczyk
d124b9bff0 [option] union of const and non-const char * in option 2022-01-29 18:17:43 +01:00
Witold Filipczyk
6c83455ab7 [options] these can be const 2022-01-29 17:49:38 +01:00
Witold Filipczyk
f1412534ed [kbd] enum edit_action -> edit_action_T 2022-01-28 18:02:14 +01:00
Witold Filipczyk
cd49b315d9 [action] enum main_action -> main_action_T 2022-01-28 15:26:43 +01:00
Witold Filipczyk
fe3dbd78e8 [kbd] enum kbdbind_flags -> kbdbind_flags_T 2022-01-28 15:02:37 +01:00
Witold Filipczyk
a25b7958ef [options] enum option_flags -> option_flags_T 2022-01-28 14:59:33 +01:00
Witold Filipczyk
ee6e9caa6a [kbd] enum keymap_id -> keymap_id_T 2022-01-28 14:20:06 +01:00
Witold Filipczyk
24b01f0dc7 [config] cast 2022-01-25 17:26:39 +01:00
Witold Filipczyk
01eccb904b [options] OPT_BOOL instead of 0. 2022-01-24 19:11:06 +01:00
Witold Filipczyk
2fa67c5730 [char] Introduced macro C_
C_("aaaa") -> (char *)("aaaa")
2022-01-19 22:49:13 +01:00
Witold Filipczyk
de2a787900 [strstr] no cast 2022-01-18 20:55:08 +01:00
Witold Filipczyk
e62b301657 [strrchr] Drop cast to const char * 2022-01-18 20:42:29 +01:00
Witold Filipczyk
53a860a3d6 [strchr] casting first parameter to const char * was not a good idea 2022-01-18 20:30:48 +01:00
Witold Filipczyk
881f896e85 [mem_calloc] Cast 2022-01-16 21:08:50 +01:00
Witold Filipczyk
20c161559c [mem_alloc] cast return value 2022-01-16 19:09:27 +01:00
Witold Filipczyk
b434b11309 [options] 0 (option_flags) -> OPT_ZERO 2022-01-15 20:10:37 +01:00
Witold Filipczyk
1fb8547c94 [config] Added <html><body> and </body></html> 2022-01-12 21:45:22 +01:00
Witold Filipczyk
cae74f8d8e [string] Fixes in conf 2022-01-04 16:26:49 +01:00
Witold Filipczyk
dfe9186c87 [main] Added --always-load-config command-line option. Refs #137
This option loads config on 2nd instance of ELinks and next.
It can be useful in alias.
2022-01-04 15:15:39 +01:00
Witold Filipczyk
016686a71e [config] value was unused 2022-01-02 18:53:03 +01:00
Witold Filipczyk
88d9704e11 [mouse] Create or delete ~/.elinks/mouse.lock file while changing ui.mouse_disable option. Refs #137
There is no good way to inform slave elinks instances about options. So, for mouse there is a workaround.
Note, If you set ui.mouse_disable = 1 in elinks.conf manually, to get effect on 2nd ELinks instance,
you must also touch ~/.elinks/mouse.lock . Changes via option manager delete or create this file automatically.
2022-01-02 15:17:53 +01:00
Witold Filipczyk
ca2c36a467 [config] save also set option 2021-12-30 14:32:16 +01:00
Witold Filipczyk
efe737aa87 [about] Added about:config
It is a good place for improvements.
2021-12-29 22:11:47 +01:00
Witold Filipczyk
ae6bfdd4dd [config] Prepare for about:config 2021-12-29 18:14:25 +01:00
Witold Filipczyk
12d4f4fcf0 [help] compilation fix 2021-12-20 17:00:16 +01:00
Witold Filipczyk
ac7038d9d4 [terminal] Cache ui.double_esc 2021-12-20 12:15:11 +01:00
Witold Filipczyk
6860de5a8d [config] Support for HOME_ETC 2021-12-10 16:05:52 +01:00
Witold Filipczyk
09e6fb59da [kbd] ui.double_esc option, based on PLD patch 2021-11-06 17:40:17 +01:00
Witold Filipczyk
9d02cfdc46 [search] document.browse.search.ignore_history . Default 0
When enabled will ignore previous searches in the typeahead mode
available by (cursor up, cursor down).
2021-11-05 16:25:17 +01:00
Witold Filipczyk
af9cf82e3d [search] bool document.browse.search.beginning_only . Default 0
Whether typeahead searching should match only the beginnings of links.
2021-11-04 14:02:45 +01:00
Witold Filipczyk
9f52b04f2a [links] Added bool document.browse.links.show_goto . Refs #127 2021-09-23 11:36:26 +02:00
Witold Filipczyk
929c8c9d81 [action] Added toggle-ecmascript action 2021-09-19 19:40:01 +02:00
Witold Filipczyk
6d2aed2e2e [colors] Change default text color to white (#ffffff). 2021-08-12 21:54:04 +02:00
Witold Filipczyk
62f7af1443 [plain] document.plain.fixup_tables
Option to draw nice-looking tables.
Examples:
mysql --pager=elinks
lxc ls | elinks
2021-08-10 16:44:53 +02:00
Witold Filipczyk
66305fcb50 [gettext] try system gettext. Refs #62
Now, only meson was changed.
-Dnls=true -Dgettext=true
2021-08-08 21:25:08 +02:00
Witold Filipczyk
f56b953d4b [dialogs] KEYMAP_MAX in function declaration. 2021-08-06 19:22:35 +02:00
Witold Filipczyk
f7f9448130 [iframe] Code is unfinished, but I'm merging it.
Maybe in the future someone improve it.
2021-08-03 17:41:25 +02:00
Witold Filipczyk
b2b7c0a75a [iframes] display_iframe disabled by default 2021-08-01 16:30:22 +02:00
Witold Filipczyk
0ef0470191 [iframes] added document.html.display_iframes option 2021-07-31 17:11:53 +02:00
Witold Filipczyk
7ba9caf227 [document] Show IP also for idn domains. 2021-04-28 16:24:20 +02:00
Witold Filipczyk
38d8d634f7 [lookup] idna 2021-04-28 16:10:59 +02:00
sgerwk
69d52ced31 option for running external commands in the foreground 2021-03-22 08:48:59 +01:00
sgerwk
d894f563d0 optionally, going back from initial page closes tab or elinks 2021-03-13 13:07:30 +01:00
Witold Filipczyk
eed5f29c00 [config] const char * 2021-03-02 10:45:59 +01:00
Witold Filipczyk
695ef45cf1 [options] const char * in get_opt_ 2021-03-01 22:03:20 +01:00
Witold Filipczyk
0fea79cc8f [cflags] Removed -Wno-pointer-sign
Likely some new bugs were introduced by this change.
The long term goal is clean compilation by g++.
2021-01-02 16:20:27 +01:00
Witold Filipczyk
35f69b1214 [options] Removed "Default 1". 2020-12-06 15:05:25 +01:00
Witold Filipczyk
44c1f77ba4 [search] Introduced "document.browse.search.reset". Refs #76
Default 1, old behaviour, but if you set it to 0,
you can search once, and view results everywhere.
2020-10-30 19:35:26 +01:00
Witold Filipczyk
1f57e72212 [mozjs24] Allow build elinks with g++
SpiderMonkey was updated to mozjs24. If you want to build elinks
with ecmascript support, you must compile using g++ with -fpermissive .
There is a lot of warnings.
There are some memleaks in ecmascript code, especially related to JSAutoCompartment.
I don't know yet, where and how to free it.

Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
2020-10-05 20:14:55 +02:00
Witold Filipczyk
5f87bdbcb2 [meson] meson build scripts.
Not finished yet, but I added to motivate myself and others.
The goal is to get a few seconds faster builds.

autotools still will be available.
2020-09-05 22:06:01 +02:00
Witold Filipczyk
6a960a9fb9 [viewer] New action mark-clipboard. Refs #10
Possibility to mark rectangle for clipboard.
User may bind keys to move-cursor-up, move-cursor-down, move-cursor-left,
move-cursor-right and mark-clipboard.
mark-clipboard is tristate.
First triggerred, it remembers left top corner of rectangle. Now you can move cursor.
Second time triggerred, remembers right bottom corner of rectangle.
Third time, it clears selection.

The copy-clipboard action was changed. Now if the clipboard rectangle is marked,
it copies this rectangle. If not, the current link.
2020-08-01 23:25:21 +02:00
Witold Filipczyk
79560c3206 [options] Changed text for ui.clipboard_file 2020-07-31 14:43:36 +02:00
Witold Filipczyk
911155a862 [clipboard] Added "ui.clipboard_file" to add text to the system clipboard.
ui.clipboard_file is filename of the clipboard file. This file can be a named pipe.
See contrib/clipboard/clip.sh how to set up copying to clipboard using socat and xclip.
Just run clip.sh (it will be running in a loop) before starting elinks and
set ui.clipboard_file = "~/.elinks/clipboard.fifo".
2020-07-27 22:38:54 +02:00
Witold Filipczyk
ed8818f4a1 [options] latin1_title is bool. 2020-07-05 12:21:22 +02:00
Guido Cella
06df96c5db [config] Recognize st 2020-07-05 09:21:24 +02:00
sgerwk
bb66fd3c37 config option for disabling the mouse 2020-05-26 00:29:57 +02:00
Witold Filipczyk
2dcac411a8 [sessions] New option ui.sessions.fork_on_start
Default value of this bool option is 0. Nothing changes in behaviour since 0.13.1.
If you set it to 1, one more process will be started. This main process will handle
only interlink connections, while other processes will be slaves to it.
This will allow to exit first started elinks session without breaking others.
2020-05-21 16:53:43 +02:00
Witold Filipczyk
ca71978c81 [config] Shorter summary 2020-05-13 21:10:16 +02:00
Witold Filipczyk
60f6c35a2c [config] Config option "ui.tostop" . Refs #45
ui.tostop decides whether to stop background processes trying to write
to the terminal. Default enabled.
2020-05-13 20:51:37 +02:00
Witold Filipczyk
eb46577ccb [options] Added remote's reload and search to elinks --long-help 2020-05-06 20:32:19 +02:00
Witold Filipczyk
5188b8ab84 [network] -bind-address-ipv6 <ipv6> to bind to IPv6 address 2020-05-05 21:39:54 +02:00
Witold Filipczyk
35e32f5acb [network] -bind-address <ipv4> cmdline option to bind to given IP address 2020-05-05 21:18:29 +02:00
Witold Filipczyk
95466e73ed [remote] Slightly modified -remote search 2020-04-26 11:45:46 +02:00
sgerwk
d1be5c322f add -remote 'search(string)' 2020-04-25 19:55:16 +02:00
Witold Filipczyk
3d96b0d7d7 Revert "Compile with C++."
This reverts commit 4f4df33638.
2019-04-21 12:27:40 +02:00
Witold Filipczyk
4f4df33638 Compile with C++.
Weak points:
- alignof
- js problems

Todo:
- make js work with C++ and mozjs-17
- then mozjs-24
- then mozjs-52
- then mozjs-60
- decrease number of warnings
2019-02-17 20:46:16 +01:00
أحمد المحمودي (Ahmed El-Mahmoudy)
dbab898f38 Fix spelling mistakes 2019-01-14 04:51:10 +01:00
rkd77
d539a45c98
Merge pull request #3 from aelmahmoudy/color_link_num
Allow link number colors to be changed.
2017-11-26 10:58:04 +01:00
Witold Filipczyk
5b390d6b55 Make 0 the default. 2017-11-22 12:11:42 +01:00
rkd77
77ea5759ed
Merge pull request #9 from aelmahmoudy/preferred_document_width_option
Add preferred_document_width option.
2017-11-22 11:59:17 +01:00
rkd77
1fecca1a15
Merge pull request #8 from aelmahmoudy/larger_doc_margin
Allow larger document.browse.margin_width
2017-11-22 11:56:25 +01:00
Yozo Hida
948d019fc0 Add preferred_document_width option.
Option document.browse.preferred_document_width controls the
width of the document, so that documents are rendered with narrower
width than screen width.  Makes it easier to read paragraphs.

Patch originally from Shalon Wood <dstar@pele.cx>, see bug #1063.

Instead of using max_document_width as the hard limit to the document
width, it uses a soft limit, where if the document does not fit (due to
tables, etc.), then larger width is used.  This reduces the need for
horizontal scrolling for wide documents.

Also added toggle-document-width action to toggle between preferred
width and full screen width.  This is bound to 'M' by default.  Initial
toggle status is determined by document.browse.use_preferred_document_width
option.

During dumps, document.dump.width option is still used.  Perhaps we
should consolidate document.dump.width option with
document.browse.preferred_document_width ?
2017-11-21 16:09:13 +01:00
Yozo Hida
4ed958b067 Provide different color for text areas in insert mode.
The color is controlled by

  document.browse.links.active_link.insert_mode_colors.background
  document.browse.links.active_link.insert_mode_colors.text

Also avoid overloading local variable "i" in get_current_link().
2017-11-21 16:00:39 +01:00
Yozo Hida
a4d8f25a9c Allow link number colors to be changed.
These settings are specified by

  document.colors.link_number
  document.colors.use_link_number_color

The latter setting determines whether the color is used when document
colors are being used.

See bug #1050.
2017-11-21 15:56:32 +01:00
Yozo Hida
a9e7768b76 Allow larger document.browse.margin_width 2017-11-21 15:53:17 +01:00
Witold Filipczyk
c4cb7ed8e5 Beginnings of terminfo support.
--with-terminfo must be added for configure
and --terminfo to command line.
terminfo is only used for output and not all sequences are changed.
2017-11-19 18:29:38 +01:00
Witold Filipczyk
f52e3187e3 Add command line option -no-libevent 2017-11-16 18:23:47 +01:00
Marco Migliori
a75e8dd35c new -remote command: reload() 2017-05-16 20:55:33 +02:00