zbelial
8f7bc6d86c
double click won't trigger adding text annotation.
6 years ago
zbelial
392c2c102d
no need to select content before adding text annot, just 'M-e' and
...
click left button.
6 years ago
太阳
88f13ab067
display the content of the annotation being hovered in a tooltip. ( #396 )
...
* display the content of the annotation being hovered in a tooltip.
* fix a spell error.
6 years ago
太阳
58e8acd9aa
add page_total_number ( #394 )
6 years ago
Andy Stewart
2cdb7b42c4
Fix page annotate not render right position in 4k screen.
6 years ago
zbelial
19529319fc
be compatible with session data saved before adding rotation
6 years ago
Hollow Man
1ef4bad2e8
Save rotation session data #379
...
Signed-off-by: Hollow Man <hollowman@hollowman.ml>
6 years ago
Hollow Man
d71cc52702
Fix Select Problem #379
...
Signed-off-by: Hollow Man <hollowman@hollowman.ml>
6 years ago
Hollow Man
322e7fc371
Add PDF Rotation function for PDF viewer #379
...
Signed-off-by: Hollow Man <hollowman@hollowman.ml>
6 years ago
zbelial
64de72cd56
fix a bug in current_percent
6 years ago
zbelial
f217b6649e
added current_percent and jump_to_percent
6 years ago
Mingde (Matthew) Zeng
07240c3044
core: standardize send_input_message and handle_input_response API
...
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
Grzegorz Kowzan
9282184b82
Revert "page-specific cache clearing"
...
This reverts commit 41e0398ebf .
6 years ago
Hollow Man
cad87ea77b
Further optimize
...
Signed-off-by: Hollow Man <hollowman186@vip.qq.com>
6 years ago
Hollow Man
22eacbd10c
Optimize so that it can calculate multiple rectangles' overlaps
...
Signed-off-by: Hollow Man <hollowman186@vip.qq.com>
6 years ago
Hollow Man
2407bbe2ae
PDF-viewer: Calculate overlaps when exclude images
...
Signed-off-by: Hollow Man <hollowman186@vip.qq.com>
6 years ago
Grzegorz Kowzan
41e0398ebf
page-specific cache clearing
6 years ago
Grzegorz Kowzan
3c6ce35b02
remove unneeded redraws, support many annots
6 years ago
Grzegorz Kowzan
4bcb628f3f
enbale content for all annot types and fix CRLF
6 years ago
Grzegorz Kowzan
a44fd67b31
fix saving annotations
6 years ago
luhuaei
ee4ed569b8
pdf-viewer: check illegal rectangle on select text
6 years ago
Hollow Man
76b950d603
Use Python built in method
...
Signed-off-by: Hollow Man <hollowman186@vip.qq.com>
6 years ago
Hollow Man
2241aeb07f
PDF-Viewer: Add restriction to PDF files only #314
...
Signed-off-by: Hollow Man <hollowman186@vip.qq.com>
6 years ago
Hollow Man
c405ef920f
Fix Change Request #350
...
Signed-off-by: Hollow Man <hollowman186@vip.qq.com>
6 years ago
Hollow Man
2237a0e8ab
PDF Viewer: Make PDF background and annotate color follow the emacs theme
...
Signed-off-by: Hollow Man <hollowman186@vip.qq.com>
6 years ago
zbelial
f53d12ce92
Simplify pdf zoom logic.
6 years ago
zjy
4ce536cf94
customize pdf viewer's default zoom.
6 years ago
Mingde (Matthew) Zeng
bca41e331e
core: redesign eaf-*-dark-mode logic
...
Addresses #318 . Below is a snippet of the wiki explaining the new logic.
```org-mode
By default, a number of EAF apps will switch to dark mode if your current Emacs theme is dark.
You can override the default by setting it to =true=, =false=, or =follow=, which is unchanged.
#+BEGIN_SRC emacs-lisp
(eaf-setq eaf-browser-dark-mode "true")
(eaf-setq eaf-terminal-dark-mode "false")
(eaf-setq eaf-mindmap-dark-mode "follow") ; default option
(eaf-setq eaf-pdf-dark-mode "ignore") ; see below
#+END_SRC
In EAF PDF Viewer, since you can interactively toggle inverted mode using =i= (default keybinding), it has an *additional* option to be more flexible:
When =eaf-pdf-dark-mode= is =ignore=, opening a PDF file for the first time will =follow= the current Emacs theme. Toggle inverted mode however you want, closing the buffer will record the final state of the dark mode. Next time the PDF file opens, it will restore the previous state. Therefore eaf-pdf-dark-mode will differ per file.
```
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
Mingde (Matthew) Zeng
4c70953f5c
Redesign build_interactive_method, generalize with build_all_methods
...
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
Mingde (Matthew) Zeng
166798490a
Redesign build_widget_method to build_interactive_method
...
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
Mingde (Matthew) Zeng
77f805ad1b
Rename scroll -> scroll_other_buffer, update_details -> update_buffer_details
...
So the names are more precise and better reflect what they really are.
Also some scroll code refactoring.
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
hollowman6
0c6340a9c7
PDF: exclude images in dark mode
6 years ago
luhuaei
523685f897
pdf-viewer: fix don't select text on first page
6 years ago
Andy Stewart
1633573162
PDF Viewer: release mouse after receive button release event, make
...
other EAF app can work with mouse event.
6 years ago
luhuaei
76aa8cae6d
pdf-viewer: fix click uri error
6 years ago
luhuaei
5b168ce972
pdf-viewer: click select
6 years ago
luhuaei
9c24e154fd
pdf-viewer: fix return value error
6 years ago
Andy Stewart
d39ef0d2f6
Remove synchronal function 'call_emacs', ready for receive websocket
...
patches that port EAF to Windows.
6 years ago
Andy Stewart
507b7af7aa
No save table file anymore, other plugin read table content by
...
'get_toc' function.
6 years ago
Andy Stewart
464f76431a
Format toc indent at Python side.
6 years ago
Andy Stewart
99802e7348
PDF Viewer: add new command eaf-pdf-outline.
6 years ago
luhuaei
d643d69323
pdf-viewer: fix mouse release event don't catch
6 years ago
luhuaei
6a178b5aa8
pdf-viewer: fix click error on zoom out
6 years ago
luhuaei
7d1cdb5546
pdf-viewer: fix page display on right when zoom out
6 years ago
Andy Stewart
567a7fec95
PDF Viewer: refactroy scroll function name.
6 years ago
Leo Colisson
4fe9aee529
Fix horizontal scrolling into a smooth movement
6 years ago
Mingde (Matthew) Zeng
5351e3373e
Revise EAF PDF keybindings
6 years ago
luhuaei
49e8e4c619
fix: pdf-viewer horizontal wheel scroll
6 years ago
Andy Stewart
bfc2305230
destroy_buffer interface is enough, remove before_destroy_buffer.
6 years ago
luhuaei
1d626dc056
pdf-viewer: fix cursor position error on horizontal offset
6 years ago