Commit Graph

42 Commits

Author SHA1 Message Date
Tienson Qin
18a44277a3 fix: ci 2023-03-29 18:41:04 +08:00
Tienson Qin
bc635eaf4b fix: internal blocks paste 2023-03-29 18:41:04 +08:00
Gabriel Horner
07a3adcb52 Fix pasting file - fixes #8926
Also remove unused mocks in formatted paste and clean up
editor-on-paste!
2023-03-29 18:39:21 +08:00
Gabriel Horner
7a905583cf Split raw and formatted paste to prevent future coupling bugs 2023-03-20 09:54:41 -04:00
Gabriel Horner
72298d23c8 Raw paste should only do basic pasting
Fix #6815 and fix #6142.
Raw paste used to do this before #5396 was introduced.
We accidentally coupled rich and raw paste starting at
999defdad1 which then caused these issues
2023-03-20 09:54:41 -04:00
Gabriel Horner
05f6665d12 On normal paste wrap link in macro if possible
Remove warning for no macro wrapping as that is excessive warning
2023-03-15 18:27:52 -04:00
Gabriel Horner
e8dd8a679e Add test for raw url paste fix 2023-03-15 18:27:52 -04:00
situ2001
e0eb520dc3 fix(paste): do not convert url to marco while raw pasting 2023-03-15 18:27:52 -04: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
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
21e8a2eab9 dev: add malli-schema & generate kondo config 2023-01-08 20:33:27 +08:00
Peng Xiao
1141890a8c feat: grouping & ungrouping shapes (#7713)
Grouping && ungrouping shapes support
2022-12-15 22:58:18 +08:00
sallto
c9d58eb194 fix: Link can't be pasted on selected text in block content (#7618)
* fix: Link can't be pasted on selected text in block content
fixes #7268

* fix(lint): duplicate import
2022-12-07 09:37:18 -05:00
Zhizhen He
7fdb9aaffb fix: typo 2022-11-21 17:58:13 -05:00
Peng Xiao
e9edd91003 fix: copying whiteboard shapes into outliner 2022-11-21 14:20:41 +08:00
Tienson Qin
2c5d2a42d7 fix: typo 2022-11-09 11:16:25 +08:00
situ2001
1a216aa1aa feat(paste): toggle between pasting text or file when they both exist (#7198)
* feat(paste): toggle between pasting text or file when they both exist
2022-11-09 11:15:41 +08:00
Tienson Qin
dd0169b068 fix: notify users to switch to the new filename format
Notify users to switch to the new filename format if there're reserved
chars when syncing.

Also, this commit replace all `js/decodeURIComponent` with
`safe-decode-uri-component` to avoid UI crashes.
2022-11-07 09:22:27 +08:00
Junyi Du
5937082b49 test: enable Node-test on namespaces with dependency on hickory 2022-10-18 16:43:14 +08:00
Peng Xiao
ef6abe8802 Merge remote-tracking branch 'upstream/master' into more-pasting-issues 2022-10-18 10:38:56 +08:00
Tienson Qin
459bd2e779 fix: can't paste number
close #6997
2022-10-18 10:13:18 +08:00
Peng Xiao
63b83a03d3 fix(whiteboard): pasting HTML shape issues 2022-10-17 10:31:37 +08:00
Peng Xiao
757ce2a528 fix(whiteboards): some pasting issues 2022-10-16 18:19:19 +08:00
Peng Xiao
4520399ddf Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-28 10:29:20 +08:00
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Gabriel Horner
639001971d Add shortcut for seeing whiteboards and minor fixes
See #6812 for the catch and we should be using our util fns
for ref chars
2022-09-24 02:58:10 -04:00
Peng Xiao
b30adea656 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-05 13:59:06 +08:00
Gabriel Horner
4ec5827902 Move block-ref fns and vars to their own ns
Similar to page-ref to keep namespaces explicit
2022-08-04 17:25:29 +08:00
Gabriel Horner
001e0d302d Finish block-ref helpers
There were a couple scattered in 2 text namespaces and there were
a couple uses of block-ref that involved escaping.
Removed block-ref-un-brackets! once it was seen as the equivalent
of an or statement
2022-08-04 17:25:29 +08:00
Gabriel Horner
a3d30e0b52 Move all block ref parens strings to vars
Extracted a couple fns we kept reinventing across namespaces
2022-08-04 17:25:29 +08:00
Tienson Qin
e1e8ff8a92 fix: paste copied quote block got messed content
close #6229
2022-08-04 13:47:22 +08:00
Tienson Qin
a1ca6820df Fix: broken linked references (#6105)
* enhance: clicking the refresh button if a query is slow

* fix: skip running slow queries if there's no need to refresh

* fix: linked reference filtering does not work on TASK items

close #1669

* fix: each block should have its own page as a reference when query page references

* fix: references

* fix: non consecutive blocks in query result and filtered linked references

* simplify filters logic

* fix: ref numbers

* Save both :block/refs and :block/path-refs for different usage

* fix: block refs

* enhance: move scheduled and deadlines to its own ns

* linked references performance tweaks

* mouse hover filters icon to expand the collapsed linked refs

* perf: react/refresh! once instead twice

* enhance: compute flashcards every hour instead of every 5s

* feat: macros as blocks

* feat: flashcards list

* fix: refed pages count

* fix: can't select in linked references

* fix: block editing on linked refs

* perf: editing in linked references

* enhance: update srs cards number when clicking flashcards

* Add a test for the case fixed in #6100

* Address feedbacks from Gabriel

* fix: Block Ref Indicator is missing from the references-blocks class

close #5375

* fix: referenced pages

* fix: page refs

* fix: Using filters pushed the title property to the second block

close #5845

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-08-04 13:03:12 +08:00
Peng Xiao
cefe46072e fix: whiteboard path-refs 2022-07-24 10:26:20 +08:00
Peng Xiao
6bf4b05141 feat: pasting shapes into outliner 2022-07-23 23:31:42 +08:00
Andelf
0c19a02a2d fix(editor): handle windows crlf in clipboard 2022-06-16 17:52:29 +08:00
Tienson Qin
f8ace0bc8d enhance: simplify copied state 2022-06-16 16:35:56 +08:00
Tienson Qin
d81dcb2de3 fix: pasting does not replace a selected text
related to #5700
2022-06-16 06:48:22 +08:00
Tienson Qin
6a8ef4f4f8 enhance(ux): convert a url to markdown/org link when pasting 2022-06-16 06:17:28 +08:00
Tienson Qin
a59a7d9643 fix: lint warnings 2022-06-16 04:47:17 +08:00
Tienson Qin
807beb2586 fix: simplify internal pasting check 2022-06-16 04:47:17 +08:00
Tienson Qin
b59d98ada5 fix: paste blocks 2022-06-16 04:47:17 +08:00