Witold Filipczyk
08ef46c32e
[viewer] casts to void * in calls of open_in_new_window
2022-02-21 17:22:41 +01:00
Witold Filipczyk
e432fc8c91
[bfu] cast in call of add_dlg_button
2022-02-21 16:03:31 +01:00
Witold Filipczyk
ac485a429d
[form] const value in init_submitted_value
2022-02-18 14:27:01 +01:00
Witold Filipczyk
f3037662eb
[dump] const in dump_print
2022-02-14 20:23:38 +01:00
Witold Filipczyk
6575f71dd4
[bfu] const in load_input_history and save_input_history
2022-02-11 19:57:36 +01:00
Witold Filipczyk
9916273dd7
[text] explicit cast to char
2022-02-06 17:12:47 +01:00
Witold Filipczyk
cba95b2b30
[event] union for const/non-const void *
2022-01-30 19:19:20 +01:00
Witold Filipczyk
91bf93a784
[const] const char in base64_decode and init_submitted_value
2022-01-30 14:48:43 +01:00
Witold Filipczyk
1e4014b2c0
[search] cast
2022-01-29 11:22:39 +01:00
Witold Filipczyk
f1412534ed
[kbd] enum edit_action -> edit_action_T
2022-01-28 18:02:14 +01:00
Witold Filipczyk
44f0adb1cb
[cache] enum cache_mode -> cache_mode_T
2022-01-28 17:32:27 +01:00
Witold Filipczyk
2b9f3d5cf9
[download] enum download_flags -> download_flags_T
2022-01-28 17:26:15 +01:00
Witold Filipczyk
09e7b73a41
[renderer] enum link_state -> link_state_T, enum color_flags -> color_flags_T
2022-01-28 16:11:54 +01:00
Witold Filipczyk
5b0ec2c4f2
[form] added default
2022-01-28 15:44:49 +01:00
Witold Filipczyk
cd49b315d9
[action] enum main_action -> main_action_T
2022-01-28 15:26:43 +01:00
Witold Filipczyk
d839efc9f4
[color] enum color_mode -> color_mode_T
2022-01-28 14:42:48 +01:00
Witold Filipczyk
4837d4eb92
[viewer] cast
2022-01-26 18:18:44 +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
8999a19593
[cast] Explicit casts for narrowing conversions
2022-01-17 17:07:46 +01:00
Witold Filipczyk
23f1a7cdce
[mem_align_alloc] cast
2022-01-17 15:54:50 +01:00
Witold Filipczyk
881f896e85
[mem_calloc] Cast
2022-01-16 21:08:50 +01:00
Witold Filipczyk
be8a030fa7
[mem_realloc] cast return value
2022-01-16 19:38:30 +01:00
Witold Filipczyk
20c161559c
[mem_alloc] cast return value
2022-01-16 19:09:27 +01:00
Witold Filipczyk
0e8ee7876a
[uri] 0 -> URI_NONE in get_uri to decrease number of warnings
2022-01-14 20:52: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
26a319e581
[quickjs] form.c
2021-11-02 20:49:03 +01:00
Witold Filipczyk
dc12c13244
[quickjs] Test commit. window.alert('Blabla') works.
2021-10-17 18:17:48 +02:00
Witold Filipczyk
9f52b04f2a
[links] Added bool document.browse.links.show_goto . Refs #127
2021-09-23 11:36:26 +02:00
Witold Filipczyk
7b2179be1f
[status] window_status unconditional. Refs #128
2021-09-22 15:01:52 +02:00
Witold Filipczyk
7feb5f4140
[mouse] Show message about disabled/enabled mouse
2021-09-21 19:02:43 +02:00
Witold Filipczyk
6ffa7ec6e3
[ecmascript] Show message in status about enabling/disabling Ecmascript
2021-09-20 18:40:01 +02:00
Witold Filipczyk
929c8c9d81
[action] Added toggle-ecmascript action
2021-09-19 19:40:01 +02:00
Witold Filipczyk
30f7601650
[form] detach form view
2021-09-16 21:43:28 +02:00
Witold Filipczyk
df9cb9dc5a
[forms] Try to JS_SetElement
2021-09-16 20:26:20 +02:00
Witold Filipczyk
c30c6fa6c2
Revert "[textarea] Do not allow fs->vpos to be negative. Refs #126 "
...
This reverts commit a0eb60d4bc
.
2021-09-02 16:25:59 +02:00
Witold Filipczyk
a0eb60d4bc
[textarea] Do not allow fs->vpos to be negative. Refs #126
...
It is rather a workaround.
2021-09-01 19:56:47 +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
857c819da1
[iframe] next|prev frame when there is no link current doc_view
2021-08-02 20:08:45 +02:00
Witold Filipczyk
f77206f369
[iframe] Check whether link was changed
2021-08-02 20:08:11 +02:00
Witold Filipczyk
9bf5494d10
[iframes] Draw frame around iframe.
2021-07-31 14:48:13 +02:00
Witold Filipczyk
a3ebbc9f02
[iframe] Fix issue with cursor position
2021-07-30 16:44:36 +02:00
Witold Filipczyk
a945d47584
[iframes] No progress today
2021-07-28 21:22:47 +02:00
Witold Filipczyk
734028277c
[iframe] Small progress.
2021-07-26 21:28:19 +02:00
Witold Filipczyk
62a08231ca
[dump] Fix for hr. Refs #106
2021-03-17 14:56:12 +01:00
sgerwk
d894f563d0
optionally, going back from initial page closes tab or elinks
2021-03-13 13:07:30 +01:00
Witold Filipczyk
f351fbcf6a
[dump] Experiment with pre_format_hook in dump. Refs #103
2021-03-07 22:07:34 +01:00
sgerwk
bd83c3e69e
alert when moving to the next match of a failed search
2021-03-03 09:33:21 +01:00
sgerwk
59d682644f
fix error message when no previous search was performed
2021-03-03 09:13:11 +01:00
Witold Filipczyk
89a5f106ef
[search] Check NULL. Refs #99
2021-02-28 16:44:17 +01:00
Witold Filipczyk
acbcfd2eba
[char] More casts to unsigned char
2021-02-27 09:51:23 +01:00
Witold Filipczyk
dfbd75c958
[select] off by two. Refs #88
...
Also changed a bit utf8_to_unicode.
2021-01-17 21:56:40 +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
08da1d87eb
[search] set searched word in setup_session. Refs #76
2020-11-04 17:26:46 +01:00
Witold Filipczyk
0989068e5c
[search] Set current_search_number to -1. Refs #76
2020-11-01 14:57:25 +01:00
Witold Filipczyk
073a4374ff
[search] Repeat searching, when pressing 'n'. Refs #76
...
On new page number_of_search_points is 0, so do search in such case,
when user pressed 'n'.
2020-10-31 22:47:17 +01:00
Witold Filipczyk
d1ecd45828
[mozjs52] It compiles, but often segfaults. No idea yet how to fix it.
2020-10-27 14:53:24 +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
3590191086
[search] Take into account vertical_overlap in vertical_scrolling to found text. Refs #68
2020-09-18 20:21:37 +02:00
Witold Filipczyk
5ad989ad43
[search] Do not scroll horizontally, when searched text is visible on screen. Refs #68
2020-09-18 10:23:00 +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
bec41b6e2f
[clip] Page down overlaps sometimes.
2020-08-04 19:22:31 +02:00
Witold Filipczyk
964530422a
[clipboard] Allow to enter the clipboard mode only with cursor routing. Refs #59
2020-08-04 16:07:19 +02:00
Witold Filipczyk
4bdf5fbbc4
[clipboard] Fixes
2020-08-03 18:56:26 +02:00
Witold Filipczyk
effb18d31f
[clipboard] Allow to change rectangle in both directions
2020-08-03 18:27:25 +02:00
Witold Filipczyk
ed93225510
[draw] Refresh all page, when clipboard buffer is drawn.
2020-08-03 17:22:21 +02:00
Witold Filipczyk
53002765c4
[clipboard] Off by one.
2020-08-02 16:24:00 +02:00
Witold Filipczyk
9fd79ec508
[clipboard] Show last line
2020-08-02 16:20:08 +02:00
Witold Filipczyk
b6ec0c64d5
[clipboard] Fixes.
2020-08-02 15:41:35 +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
e94a912f1e
[style] spaces -> tab
2020-06-05 18:07:45 +02:00
sgerwk
76a973e902
show an alert when the search string is not found
2020-06-05 14:13:37 +02:00
Witold Filipczyk
5c57cf6270
[fragment] Do not move to the top, when nonexisting fragment is in current document. Refs #42
...
Behaviour similar to bigger browsers.
2020-04-28 19:13:36 +02:00
sgerwk
d1be5c322f
add -remote 'search(string)'
2020-04-25 19:55:16 +02:00
Witold Filipczyk
51dd9e7e6e
[color] Revert changes related to leading and trailing spaces and colours
...
It did not look good.
2019-11-21 21:01:49 +01: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
Witold Filipczyk
6dfdd36398
form_control -> el_form_control
2018-09-09 19:18:53 +02:00
Witold Filipczyk
d8be2c505e
Rename struct box to struct el_box.
...
In the future I want to copy some code from netsurf, so I'm preparing.
2018-09-09 19:14:56 +02:00
sgerwk
2f58dfce13
when searching in a node, only search within its box
2018-06-25 10:47:51 +02:00
Fabienne Ducroquet
3665ee2ef7
Move check on number of search points to move_search_do
...
If doc_view->document->number_of_search_points is 0, move_search_number
crashes at:
pt = doc_view->document->search_points;
x = pt[number].x;
y = pt[number].y;
so it is not sufficient to make find_first_search_in_view return
immediately in this case, move_search_do should return immediately.
2018-06-07 17:25:21 +02:00
Witold Filipczyk
f2c0a380ab
Check if nothing has found. Refs #21
2018-04-15 18:08:54 +02:00
Witold Filipczyk
ad5f8165b2
Wraparound search
2018-04-15 16:45:23 +02:00
Witold Filipczyk
798a7cc4e6
Reuse existing functions to scroll. Added horizontal_scroll_extended.
2018-04-15 14:32:18 +02:00
Witold Filipczyk
7a006b6dd2
Rewritten searching. Refs #21
...
Before only visible part of screen was searched for pattern.
Now whole document is searched, and beginings of found text
is remembered in document->search_points.
2018-04-14 21:49:52 +02:00
Witold Filipczyk
fd1ae61131
Let search for more unbreakable spaces. Refs #20
2018-04-07 11:43:28 +02:00
Witold Filipczyk
fbfbe4013c
Interpret 0xA0 (nbsp in UTF-8 mode) as space char for searches. Issue #20
2018-04-06 20:02:49 +02:00
Felix Janda
bfb4733f39
Don't use <sys/signal.h>
...
This legacy header appears to be unused. Removing its includes
avoids numerous warnings when compiling with musl libc:
/usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp]
2017-11-23 17:51:41 -05:00
rkd77
be719e1ac1
Merge pull request #10 from aelmahmoudy/select_forms
...
Make select forms look more like other forms.
2017-11-22 12:02:06 +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
a6996b7d3a
Merge pull request #7 from aelmahmoudy/keep_forms_bold
...
Keep forms in bold even when active.
2017-11-22 11:55:40 +01:00
rkd77
f44fdc25ed
Merge pull request #5 from aelmahmoudy/dont_underline_active_textarea
...
Avoid underlining active text areas.
2017-11-22 11:53:32 +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
7e58737619
Make select forms look more like other forms.
...
Insert "[_" and "_]" as part of the form link, and
include it as part of the link.
2017-11-21 16:06:33 +01:00
Yozo Hida
2a09148e5a
Avoid underlining active text areas.
...
They already have underscores, so underlining them is redundant (and looks a
bit strange).
2017-11-21 16:04:27 +01:00
Yozo Hida
6ad3e541c8
Keep forms in bold even when active.
2017-11-21 16:02:26 +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
Witold Filipczyk
0266633025
Fix issue with one char documents. Patch by Felix Janda
2017-11-14 09:54:05 +01:00