Commit Graph

149 Commits

Author SHA1 Message Date
Junyi
cf655b3bdd feat: page content fts breadcrumb support 2022-11-25 21:26:07 +08:00
Junyi
95d79877c0 feat: highlight page content fts result 2022-11-25 21:26:07 +08:00
Junyi Du
310e1a39f6 ux: show page content in cmd k menu 2022-11-25 21:26:07 +08:00
Tienson Qin
a8eb1a3264 enhance: remove search auto-complete padding on PC 2022-11-22 22:11:37 +08:00
Charlie
dda1f9bd9f Enhance / Plugin APIs (#6945)
Added
1. All configurations of current graph.
App.getCurrentGraphConfigs: () => Promise<any>
2. All favorite pages list of current graph.
App.getCurrentGraphFavorites: () => Promise<Array<string> | null>
3. All recent pages list of current graph.
App.getCurrentGraphRecent: () => Promise<Array<string> | null>
4. Clear right sidebar blocks.
App.clearRightSidebarBlocks: (opts?: { close: boolean }) => void
5. Support register CodeMirror enhancer. #Experiment feature
Experiments.registerExtensionsEnhancer<T = any>(type: 'katex' | 'codemirror', enhancer: (v: T) => Promise<any>)
6. Support hooks for app search service. #Alpha stage
App.registerSearchService<T extends IPluginSearchServiceHooks>(s: T): void
7. Support focus option for App.insertBlock. Credit to [[tennox]] #PR

Fixed
1. Adjust build script to be compatible for shadow-cljs bundler.
How to set up a clojurescript project with shadow-cljs?
https://github.com/rlhk/logseq-url-plus/blob/main/doc/dev-notes.md
2022-11-22 22:00:29 +08:00
Charlie
dd2ef163ba Enhance/PDF viewer (#7369)
* fix(pdf): WIP potential memory leaks
* enhance(pdf): sync page number in highlights metafile
* enhance(pdf): support preview highlight area image in a lightbox
* fix: clojurescript unit tests
* fix(pdf): page number overflow when more digits
2022-11-17 20:31:08 +08:00
Tienson Qin
296903ec1b CSS tweaks 2022-11-10 21:17:45 +08:00
Tienson Qin
07ce96cedd fix: hide search in page on narrow screens 2022-11-10 21:15:59 +08:00
Peng Xiao
cca1d35510 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-10-08 17:26:45 +08:00
Junyi Du
0e4037ab61 Feat: new file name escaping rules (#6134)
* feat: new file name escaping for namespace

feat: new file name decoding back to page name

* test: file name sanitization

feat: use _0x to encode %

feat: don't create title property

test: extra URL encoding for escaped file names

fix: fit pdf prefix into new file name rules

fix: encoding rules on some characters

fix: handle the buggy file names imported by users

fix: pdf block ref failed to jump

fix: #6167

* fix: enhance backward compatibility

chore: title validation

test: fix namespace queries test

chore: use index version stored in config.edn instead of search.versions

* feat: convert old version graph mechanism

ui: file conversion UI

feat: rename files for conversion

feat: don't trigger conversion when title property is manually edited

fix: file conflict notification while renaming files on some OS

feat: re-index on update version

feat: clicking NO in the re-index dialog would update the index-ver flag to suppress the dialog

feat: use html entities for reserved char escaping

dev: remove unresolved vars & minor refactor

chore: move file name sanity from gp-util to fs-util, as it's for encoding only but not parsing

test: update file name tests to html entities rule

test: convert files from dir ver 3 for repo_tests

feat: convert Windows reserved file names

fix: save index version into idb instead of file

fix: decode uri of path while parsing files on mobile

fix: couple dir version and index version to ensure only re-index on converted dirs

feat: go back to url-encode for special chars

* chore: fix lint

chore: improve codebase to address Gabriel's comments

fix: remove file remnants on add conflict

fix: remove file remnants on rename conflict

chore: add test ns to nbb runner

Also fix typoed fn and remove unused code

* fix: issues of rebase PR6134 to master after file-sync merged

* feat: switchable filename format

* fix: use  go block to replace promesa for rename all with blocking

* feat: re-index after apply rename all

* ui: file conversion enhancement

* fix: merging filename format PR with master

* fix: filename format lint & CI

* ui: filename format flow

* fix: error handling on the rare internal file path confliction case

* chore: shorten component code for files-breaking-changed

* chore: fix CI

* Minor fixes per latest code review

- Remove unused page-name-order
- Update catch usage to be consistent with what's on master
- Place state fn in right place
- Wording fixes:
  - select and apply -> manual. There are no checkboxes for the user
  - Update -> Edit. We use edit for all other settings button
  - Alternatives to starting sentences with May. Not a common way to
    start a sentence
  - update outdated template comment

* ux: rename instruction update

* ux: rename instruction update (2)

* Tweak wording of conversion modal

Simplifed first paragraph and explained the page to the user in first
sentence, may isn't a common way to start sentences and updated outdated
wording

* Fix large-var warning by splitting out a piece of component

* fix: right slash on Windows; legacy format file sanitization

* fix: triple lowbar renaming fns

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-10-08 15:47:45 +08:00
Peng Xiao
ce4b2a4ad1 fix: use :block/type instead of :block/whiteboard? 2022-09-28 18:27:03 +08:00
Peng Xiao
fd94862312 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-24 09:42:00 +08:00
charlie
50b4f6577d improve(ui): polish built-in icon 2022-09-21 14:49:20 +08:00
charlie
424cc3c3ee fix(pdf): calculate highlight selection async 2022-09-21 14:49:20 +08:00
Konstantinos Kaloutas
e72c78f7d7 fix: create new whiteboard command 2022-09-16 19:19:11 +03:00
Konstantinos Kaloutas
f0471bf902 chore: introduce type icon 2022-09-15 12:18:58 +03:00
Konstantinos Kaloutas
debf0e8054 chore: update icon font 2022-09-14 17:43:40 +03:00
Konstantinos Kaloutas
a237444f99 enhance: command panel icons and styles 2022-09-14 15:47:00 +03:00
Peng Xiao
dd9f48ffa5 fix show W for whiteboards in global search 2022-09-01 13:52:40 +08:00
Peng Xiao
70db603097 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-25 16:04:00 +08:00
Giuseppe D'Andrea
43124f2c12 fix: shift-click on recently searched page 2022-08-24 18:50:20 +08:00
Peng Xiao
37d0ad2524 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-24 16:50:57 +08:00
Tienson Qin
e52dec040f ux: rename to search blocks in page 2022-08-24 16:47:49 +08:00
Peng Xiao
7cb38f04a0 feat: showing whiteboard icon in page sort 2022-08-12 16:21:01 +08:00
Peng Xiao
6bb6acc437 fix: issue with stale cache 2022-08-10 11:50:57 +08:00
Peng Xiao
2308a5d120 fix: event is not being captured sometimes 2022-08-09 11:06:06 +08:00
Peng Xiao
b30adea656 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-05 13:59:06 +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
ab6eec5fc3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-03 14:12:10 +08:00
maxweilun1989
15a0f19a82 fix: add :feature/enable-search-remove-accents 2022-07-27 18:34:01 +08:00
Peng Xiao
ec3ebc8d5b feat: zoom into searched text shape 2022-07-22 00:16:22 +08:00
Peng Xiao
bc2ef6002b searching text in whiteboard 2022-07-21 15:46:25 +08:00
Peng Xiao
d3dae5fddc Merge remote-tracking branch 'upstream/master' into whiteboards 2022-07-07 14:07:35 +08:00
Andelf
87c5b64b43 fix(ui) trailing space of search-auto-complete 2022-07-04 17:11:58 +08:00
Peng Xiao
26ad627661 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-07-03 12:46:36 +08:00
Gabriel Horner
f749da1417 Close modal before opening more results
Fix #5794, fix #4375
2022-06-30 13:15:07 +08:00
Tienson Qin
ad8baa8e74 Whiteboard link 2022-05-18 18:29:54 +08:00
Tienson Qin
ce7133e39d wip: shape links 2022-05-18 13:39:00 +08:00
Tienson Qin
45ea8de1d1 ux: cmd+k to create page/block shapes 2022-05-17 18:07:34 +08:00
Gabriel Horner
5b0d5fb8b5 Decouple graph-parser util from app util usage
For tiny util heavily used fns like safe-re-find and uuid-string?,
decouple graph-parser from so much of the app
2022-05-13 16:17:44 -04:00
Tienson Qin
4fc479495e Simplify sidebar data 2022-05-09 21:30:31 +08:00
Gabriel Horner
85bd1fecb2 Move first batch of util fns to graph-parser.util
Still need to fix external.roam
2022-05-04 12:02:36 -04:00
llcc
663a3c9632 fix: ac-cp jumps on mobile 2022-04-21 09:37:18 +08:00
Gabriel Horner
f4839da1e1 Make dictionary namespaces bb compatible
Now that translations are just data no excuse for them not being bb
compatible. Also gets rid of needless sexp parsing
2022-03-28 12:33:28 -04:00
Junyi Du
59457f9b7d chore: rephrase search result wrong uuid prompting 2022-03-20 19:02:51 +08:00
Junyi Du
f24a509669 chore: diplaying message when cache is outdated; remove buggy unused uuid query 2022-03-20 19:02:51 +08:00
Gabriel Horner
5680c145cc Cleanup search-auto-complete component
Component was needlessly large and difficult to maintain. Split up
handlers to separate fns and removed duplicate get-current-repo calls
2022-03-01 20:41:41 +08:00
Gabriel Horner
3772e67ed9 Add keybinding to open links from search 2022-03-01 20:41:41 +08:00
Gabriel Horner
c6d03b67ab Merge branch 'master' into dev/var-sizes-linter 2022-02-08 12:02:39 -05:00
Tienson Qin
982eba9396 refactor: remove i18n tongue context 2022-02-08 17:31:32 +08:00