Commit Graph

7397 Commits

Author SHA1 Message Date
Andelf
db76ba885c chore(release): bump version 0.8.18 2023-03-01 15:23:15 +08:00
Adam
6f45107408 fix: incorrect page title when 'hls__' is opened (#8697)
* dev: move 'hls-file?' to pdf-utils
* dev: use 'hls-file?' instead of string comparison
* fix: window title when hls file opened
2023-02-28 15:10:33 +08:00
sallto
bdc11a9dcd Shortcut for copying a page url (#8538)
* fix: move primary directory to ~/.config/Logseq

* feat: Add shortcut for copying a page url

* Revert "fix: move primary directory to ~/.config/Logseq"

This reverts commit 1991c60fbf236db93df96e0c0856d73df123a124.

* fix(dev): remove import to pass lint checks

* Address code review

Also
- Add :inactive to command to reflect page-menu platforms like other commands
- Add improved current page like other current file/page commands
- don't use state/sub in non component contexts

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-27 12:38:14 -05:00
Konstantinos
2cace8894c Enhance: Add more translations, remove unused ones and add linter for unused (#8568)
* chore: remove unused dictionary keys

* wip: add dictionary keys for hardcoded strings

* resolve conflicts

* Add linter to detect :en ui translation keys match used ones

- Fix a couple entries caught by linter
- Copy :command.editor/open-link-in-sidebar entries to
  :help/open-link-in-sidebar as translation keys shouldn't be reused in
  multiple contexts, especially when it's across ui and shortcut dicts

* fix: remove dead keys

* chore: reuse dict keys

* chore: reintroduce useful keys

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-24 09:21:57 -05:00
Tienson Qin
6a5b0c8199 Fix pencil not working if drawing quickly (replace tldraw's undo/redo history with logseq's) (#7786)
* fix: pencil not working if drawing quickly

* feat: mod+c mod+g to toggle grid

Co-authored-by: Konstantinos Kaloutas <konstantinos@logseq.com>
2023-02-22 23:16:52 +08:00
charlie
46d3cb516a improve(ui): edge gap for commands auto-complete modal 2023-02-22 18:26:52 +08:00
charlie
11b9eaabe4 improve(ui): friendly size for slash commands modal 2023-02-22 18:26:52 +08:00
charlie
215c45744b enhance(ui): position auto-complete modal in viewport 2023-02-22 18:26:52 +08:00
Gabriel Horner
b78c689458 Fix remaining todos and add a section to practices about this new action 2023-02-21 12:01:58 -05:00
Zhizhen He
25c15053d6 feat: add typos to GitHub action
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-02-21 12:01:58 -05:00
Tienson Qin
ea213258b1 fix: references crash 2023-02-21 23:49:25 +08:00
Tienson Qin
0e365508be fix: wrong usage of :frontend.db.react/refs
Previously, `[:frontend.db.react/refs id]` is used for three places:
1. get-page-referenced-blocks
2. get-block-referenced-blocks
3. get-block-references-count

The cached query atom will be shared between those three functions,
the problem is that both queries in `get-page-referenced-blocks` and
`get-block-referenced-blocks` return data of different formats, which
can result in crashes in some situations (e.g. PR #8423).

This commit removed `get-block-references-count` and use
`model/pull-block` and `(count (:block/_refs block))` instead.

We also need to make sure the `id` in `[:frontend.db.react/refs id]`
will be different for `get-page-referenced-blocks` and
`get-block-referenced-blocks`. We can probably get rid of
`get-page-referenced-blocks` once we refactored both linked references
and filters for pages.
2023-02-21 23:49:25 +08:00
Andelf
5a2884038b fix: regression of file editing on browser-app 2023-02-21 10:40:17 -05:00
Andelf
db356ac946 fix lint 2023-02-21 10:40:17 -05:00
Andelf
e0f9111beb fix(config): loading of config editing
Introduced: #8578
2023-02-21 10:40:17 -05:00
Gabriel Horner
047f8a8fef Fix edit global config.edn
This also effects editing any file that's not in the current repo
2023-02-21 10:40:17 -05:00
Hendrik
021a017555 Changes after code review 2023-02-21 10:26:41 -05:00
Hendrik Schöffmann
08e01421e0 i18n: update german translation
- Added missing german translations
- Sorted the keys in the german translation alphabetically
2023-02-21 10:26:41 -05:00
rcmerci
7236ff0313 Merge pull request #8654 from ksqsf/feat/cloze-cue
feat(srs): support cloze cues
2023-02-21 21:34:56 +08:00
ksqsf
6312249b0c fix: mark cloze funcs and vars as private 2023-02-21 16:58:53 +08:00
megayu
a4a5758afc enhance: paste from clipboard (#8642)
replace the selected part from the clipboard
instead of formatting it to a link if it's within the link
2023-02-21 15:55:59 +08:00
Tienson Qin
40ad524443 fix: duplicated block ids in multiple files (#8668)
fix: duplicate block ids in multiple files
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-21 15:50:09 +08:00
rcmerci
2a12ffc331 feat(editor/copy-paste): refactor copy/export in cljs (#8530)
Huge performance improvement for copy and export

Refactor copy/export in cljs instead of Mldoc
2023-02-20 23:08:58 +08:00
Andelf
c0f8dc4ee2 fix(android): disable image resize on sm screen 2023-02-20 22:06:53 +08:00
Junyi Du
07fb4e64c0 fix: hls page name in page ref 2023-02-20 19:50:59 +08:00
charlie
164ac64be9 improve(apis): support CORS for http server 2023-02-20 16:26:03 +08:00
yoyurec
912e925448 add description to settings headers 2023-02-20 16:23:43 +08:00
Elgun Asgar
699ed965c9 fix #8665, incorrect version control description in settings 2023-02-20 16:18:04 +08:00
Charlie
55b5149f4a 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
2023-02-20 15:58:43 +08:00
Andelf
fb02c557f2 Revert "fix: electron menu handler(Redo, Undo, Copy) (#8466)"
This reverts commit 29da7386cb.
2023-02-20 01:35:16 +08:00
ksqsf
138504df05 fix: simplify code 2023-02-19 21:56:10 +08:00
ksqsf
f086a07284 fix: cloze-parse handling of empty cues 2023-02-19 21:52:27 +08:00
ksqsf
e1e5f76e27 feat(srs): support cloze cues 2023-02-19 20:55:55 +08:00
charlie
a6c3cca9c0 fix(ui): layout of area highlight block content 2023-02-19 11:26:48 +08:00
Gabriel Horner
1130e21004 Fix in-app help links that are broken 2023-02-17 16:49:05 -05:00
Gabriel Horner
739b953ea3 Fix git commit command not opening
Removed unused event handler logic from when it was keydown based -
5d0ecd68b2
2023-02-17 15:59:20 +08:00
rcmerci
715a0af1df fix lint 2023-02-17 15:55:13 +08:00
rcmerci
07e8d08918 fix(copy): cannot copy blank string 2023-02-17 15:55:13 +08:00
charlie
3ef7fc01a8 fix(http-server): bad logger stream for windows 2023-02-16 22:52:41 +08:00
situ2001
29da7386cb fix: electron menu handler(Redo, Undo, Copy) (#8466)
* fix(electron): menu undo & redo not working
* refactor(electron): use editMenu from electron src code
* chore(electron): add FIXME comments
* fix(electron): menu copy & cut not working
* remove: custom fn in menu cut
* fix: add accelerator to menu copy item
2023-02-16 17:26:31 +08:00
Andelf
56b2379ce4 fix(git): set core.quotepath=false 2023-02-16 17:25:13 +08:00
Andelf
c0071e85ad enhance(electron): show git status when commit 2023-02-16 17:25:13 +08:00
Gabriel Horner
4d55fc4b13 Fix schema so that shortcut disabling is valid
fixes #8580
2023-02-15 17:57:32 +08:00
Andelf
71b5fa3b97 Feat: auto-completion for config editing (#8584)
* feat(editor): add auto-completion for config editing
* enhance: filter keys already in file when autocompletion
2023-02-15 17:56:33 +08:00
sallto
c95baa0603 fix: "Copy Image" menu item correctly copies images (#8424)
* fix: Copy button correctly copies images

* Revert "fix: Copy button correctly copies images"

This reverts commit d2aab9f4f6.

* fix: Copy button correctly copies image

---------

Co-authored-by: situ2001 <yongcong2001@outlook.com>
2023-02-14 15:56:12 -05:00
charlie
cd4ff36c5f improve(sentry): filter setInterval exceptions for sentry 2023-02-15 00:11:40 +08:00
charlie
29bc71798b improve(sentry): filter setInterval exceptions for sentry 2023-02-15 00:11:40 +08:00
Gabriel Horner
350323ad19 Fix property values not autocompleting full ref values
Page refs and tags were not autocompleting their characters
which led to unreferenced completions
2023-02-13 15:34:26 +08:00
Gabriel Horner
818e735d7c Tag menu should stay open for multiple tags
Fixes #6805 and #8175
2023-02-13 15:34:26 +08:00
Gabriel Horner
0fbd639007 Display error when unexpected invalid repo config.edn occurs
Currently the user doesn't see an error and wonders why changing
a config setting has no effect
2023-02-13 15:29:36 +08:00