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
2013e0ad88
core: rewrite and simplify eaf-focus-buffer
...
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
Hollow Man
239f6b5de0
Fix typos
6 years ago
Hollow Man
8dc6284b02
Add English documentation for Core Browser functions
6 years ago
Mingde (Matthew) Zeng
58a00fc5ea
browser: Ignore temp_html_file and about:blank
...
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
6 years ago
Mingde (Matthew) Zeng
27e23c82e3
Browser: record only last 30 recently closed pages
6 years ago
Mingde (Matthew) Zeng
25ad5974cc
Add missing @interactive decorators
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
Mingde (Matthew) Zeng
edd3058256
rename clear_all_cookies to clear_cookies
6 years ago
Andy Stewart
e20b585359
Remove unused comment.
6 years ago
lee
350cec5221
focus first input when you press `i`.
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
df0ac5066a
Remove background_color interface and avoid terminal flash when loading.
6 years ago
Andy Stewart
018ec8bbad
Add insert_or_copy_code command.
6 years ago
Andy Stewart
bec77e1462
Add 'call_emacs' interface: python call elisp method and wait return result.
6 years ago
Andy Stewart
9ad6b50567
Fix typo.
6 years ago
Mingde (Matthew) Zeng
d72413fefa
Rename edit_link to edit_url
6 years ago
Andy Stewart
e08b3beb76
Add edit_link command in browser.
6 years ago
Andy Stewart
45cbb1df20
Add x in all keybinding for close buffer.
6 years ago
Andy Stewart
39af3b7f3c
Fix aria2 duplicate download issue.
6 years ago
Andy Stewart
fe2cb40869
Rename and simple insert_or_select_*_tab commands.
6 years ago
Andy Stewart
766d690682
Add select_left_tab and select_right_tab commands.
6 years ago
Andy Stewart
b629fecfc6
Add copy_link in browser.
6 years ago
zbelial
f06de18c88
called monolith asynchronously
6 years ago
zjy
898a0dd2c2
Use monolith to save web page as a single html
6 years ago
Andy Stewart
ac51bbf822
Try rename pdf file with web page title after download finish.
6 years ago
zbelial
26bdcc7005
use title as file name when saving page to file
6 years ago
Mingde (Matthew) Zeng
a879678b86
EAF Browser: add pdf saving message
6 years ago
Mingde (Matthew) Zeng
7c31e91392
EAF Browser: Prompt save webpage as pdf
6 years ago
Mingde (Matthew) Zeng
ce918f6239
Support EAF send input message yes-or-no-p
6 years ago
Andy Stewart
7e2a7fd565
Add new command view_source
6 years ago
Andy Stewart
073f795246
Add new command save_as_pdf
6 years ago
Andy Stewart
2416f9d5c6
Add dark mode filter for emacs-china.org
6 years ago
Andy Stewart
6975e07210
Add eaf-toggle-fullscreen command.
6 years ago
Andy Stewart
165f43b7c7
Default EAF app follow current theme mode (light or dark)
6 years ago
Andy Stewart
1753566bd2
Fix issue #248
6 years ago
Andy Stewart
e6578598fa
Make telegram not flash in dark mode.
6 years ago
Andy Stewart
e5bb43fad2
Fix emacs-china forum thread flash
6 years ago
Andy Stewart
d66e864a0e
Move module_path in Buffer
6 years ago
Andy Stewart
2819866c1f
Revert "Pass module_path to Buffer."
...
This reverts commit 2894c4a24f .
6 years ago
Andy Stewart
2894c4a24f
Pass module_path to Buffer.
6 years ago
Andy Stewart
4afb48bcee
Dark mode and focus mode not include devtools page.
6 years ago
Andy Stewart
12c39d860a
Make dark mode perfect.
6 years ago
Andy Stewart
8cf4a6f24c
Add new command: toggle_device.
6 years ago
Andy Stewart
d4c4ea0fc1
Fix NoneType error when copy selected text.
6 years ago
Alon Tzarafi
e215a0f9d2
Add ctrl-wheel zooming for browser
6 years ago
Mingde (Matthew) Zeng
a35d8909e5
Fix typo
6 years ago
Andy Stewart
77a60d5632
Add command insert_or_download_youtube_audio.
6 years ago