Enhance/pdf enhancements (#8616)

- Improve interactions about the popup modal from the PDF viewer toolbar
- Persist highlights data with multiple-lines text format (for friendly Git diff)
- Blink the text highlight when scrolling to position
- Open the PDF viewer in the system Window
This commit is contained in:
Charlie
2023-02-20 15:58:43 +08:00
committed by GitHub
parent fb02c557f2
commit 55b5149f4a
14 changed files with 483 additions and 231 deletions

View File

@@ -192,13 +192,13 @@
(defn next-page
[]
(try
(js-invoke js/window.lsPdfViewer "nextPage")
(js-invoke js/window.lsActivePdfViewer "nextPage")
(catch :default _e nil)))
(defn prev-page
[]
(try
(js-invoke js/window.lsPdfViewer "previousPage")
(js-invoke js/window.lsActivePdfViewer "previousPage")
(catch :default _e nil)))
(defn open-finder