Commit Graph

73 Commits (eee7d06c8285610e6ef937042a61a7b6242c0fd9)

Author SHA1 Message Date
Gabriel Horner ea933a292d Fix invalid example in default repo config as caught by Bad3r
Also mention valid keys for global config
2023-02-27 10:17:40 -05:00
Gabriel Horner 4d55fc4b13 Fix schema so that shortcut disabling is valid
fixes #8580
2023-02-15 17:57:32 +08:00
Andelf 7e4698315d enhance(quick-capture): add date as template variable 2023-02-10 11:54:41 +08:00
Gabriel Horner dd006bf6b1 Add schema for #8429 and tweak comments 2023-01-25 16:57:34 -05:00
Bad3r cdddabf19a
fix: add missing user-config options (#8429)
* fix: add scheduled/future-days configuration option 🔨

* fix: add :journal/page-title-format configuration option 🔨

* fix: add :feature/enable-whiteboards? configuration option 🔨

* fix: add :custom-js-url configuration option 🔨

* fix: add :arweave/gateway configuration option 🔨
2023-01-25 16:56:36 -05:00
Dan Zwell 7cc3645095 Clarify the option to prefer pasting a file rather than text
Fixes #8362
2023-01-15 12:53:50 +08:00
Sergio Miguéns Iglesias e58e545248 Add option to show full block body in ref 2023-01-09 22:48:22 +08:00
Gabriel Horner 9e5577a8f2 Add missing config options to template and improve existing config docs 2022-12-06 17:47:40 -05:00
Tienson Qin 91d70535ee fix: set default file format to nil 2022-11-25 21:25:16 +08:00
Andelf 3cbaf1abed enhance(editor): rename quick-capture config keys 2022-11-25 12:33:22 +08:00
Vitali Haravy 6eab0d7f30 Correct wording of a comment in `config.edn` 2022-11-17 16:59:50 -05: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
Tienson Qin 937a22c7ba Increase content-max-length to 10k 2022-09-30 11:56:00 +08:00
Gabriel Horner 9d9e976b8c Merge branch 'master' into refactor/refs-from-property-values 2022-09-21 15:34:47 -04:00
Gabriel Horner a2ef3c5800 Fix confusing wording for :query options - fix #6751 2022-09-15 12:17:33 -04:00
Gabriel Horner 35e526e717 Merge branch 'master' into refactor/refs-from-property-values 2022-09-13 14:52:48 -04:00
Tienson Qin 9b34aec950 fix: config cleared if passed content is nil
Fixed #6701
Fixed #6700
2022-09-13 22:05:40 +08:00
Tienson Qin bb15d8ccf3 fix: change the property option to set 2022-09-09 15:36:55 +08:00
Tienson Qin b516c1db5f Add :property/separated-by-commas option 2022-09-09 12:40:14 +08:00
Tienson Qin 336fa578d5 refactor: replace directives(front matter or org) with properties 2022-09-09 12:37:55 +08:00
Tienson Qin cc66195b58 fix: remove monitor-dirs 2022-09-03 19:31:17 +08:00
Charlie 01d879c18e
feat!: File Sync (#5355)
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-09-01 00:31:49 +08:00
Gabriel Horner 252fec4dd6 Fix typo in comment 2022-08-31 11:09:35 -04:00
Tienson Qin 9ac8bf98e1 feat: introduce :block/content-max-length for better performance for
both searching and editing.
2022-08-31 23:02:19 +08:00
Gabriel Horner 5f9f090a8f Add comment to use :rich-property-values? correctly 2022-08-26 10:11:21 -04:00
Gabriel Horner 569b2417e5 Document config introduced in #2975 2022-08-26 10:07:33 +08:00
Tienson Qin f7d5315acf fix: CI 2022-08-25 21:24:22 +08:00
Tienson Qin 1ee294e047 fix: filters not working for children blocks in linked references
related to #6457

fix #6462
fix #6458
2022-08-24 19:45:10 +08:00
Gabriel Horner 55ccc2d17c Rename config to :rich-property-values?
Name should allow for additional functionality later
2022-08-23 09:55:15 -04:00
Gabriel Horner 0719163d30 Split out parse-property for use in dsl-query and tests
- Add tests for all *property dsl queries with and without new
  config option
- Add tests for property persistence
- Add tests for property relationships
2022-08-11 16:32:00 -04:00
Gabriel Horner 405183db09 Add config option to allow for more free text in property values
Still need to test that *property operators work correctly when this
option is on
2022-08-11 16:32:00 -04:00
Andelf 271700ec02
Merge branch 'master' into fix/search-remove-accents 2022-08-02 12:14:24 +08:00
maxweilun1989 78882b0051 fix: add some remember note for toggle :feature/enable-search-remove-accents? 2022-07-28 21:34:40 +08:00
Alex L 178e2f51bb Clearer examples in config.edn 2022-07-28 15:49:45 +08:00
maxweilun1989 15a0f19a82 fix: add :feature/enable-search-remove-accents 2022-07-27 18:34:01 +08:00
Gabriel Horner a0087d7792 Add config options to disable property pages and to exclude certain ones 2022-07-15 15:26:09 +08:00
Gabriel Horner 2917cce179 Macro docs tweaks - close #1598
two curly braces are sufficient
2022-07-11 16:00:23 -04:00
llcc 2f35629738 allow user to disable gestures on blocks with customized tags 2022-06-27 15:43:37 +08:00
Andelf e82c2b637c fix(config): wrong quick capture text template
Fix #5791
2022-06-22 11:55:04 -04:00
Hounsou Dansou 826a075b4f fix: Add missing config
- bullet indentation
- scheduled and deadline default query
2022-06-13 15:22:30 +08:00
Darwis 14dc2d1e30
Predefined view and transform (#5479)
* add pre-defined view in config.edn and use it in query :view

* expose js/console.log and pprint to use in query transform function or view function for easy debug query result.

* reusable pre-defined result-transform in cunfig.edn to use in query

* fix whitespace diff

* Add query namespace to predefined :view and :result-transform in config.edn
2022-06-03 10:00:15 -04:00
Charlie 55ccdd5dba
Feature/onboarding Quick tour (#5247)
* enhance(ui): polish elements of left sidebar

* enhance(ui): active state of nav item from left sidebar

* enhance(ui): active state of nav item from left sidebar

* enhance(ui): WIP quick tour tips

* enhance(ui): WIP quick tour tips

* enhance(ui): WIP quick tour tips

* enhance(ux): add quick tour palette command

* enhance(ui): add step dots for quick tour tips

* enhance(ux): title hints for sidebar link items

* fix(ui): active state for journals from left sidebar

* enhance(ux): support quick tour command when initial app

* fix(ui): position of journal page quick tour tip box

* fix: cljs lint

* fix: remove unused method

* fix(e2e): e2e test for new left sidebar
2022-05-31 16:41:17 +08:00
arcstur d0e9a66a94 Typo 2022-04-18 12:12:05 +08:00
arcstur 3db9eaa334 Add start-of-week to default config.edn 2022-04-18 12:12:05 +08:00
llcc 21e172feb6
feat(mobile): share intent (#4599)
* feat(mobile): share intent

* feat(ios): share content

* feat(share): fix kUTType* deprecation

* feat(share): fix result of call to 'openURL' is unused

* fix screenshot copy rewrite issue

* fix AndroidManifest.xml

* fix(iOS): app not showing in share list

* address comment
2022-03-28 12:30:32 +08:00
Tienson Qin fc644e207b Adds :outliner/block-title-collapse-enabled? configuration option 2022-03-17 16:09:29 +08:00
llcc 1361728457
fix #+keyword issues in orgmode (#4573)
* fix(orgmode): don't parse some in-file #+keyword as page properties

e.g. #+Name:, #+tblfm:, etc.

* enhance(orgmode): display image and table's caption keyword

https://orgmode.org/manual/Captions.html

* enhance(orgmode): ignore some #+keywords for parsing properties.

Orgmode uses lots of file level #+keyword: styled keywords[1].
Logseq parses their value as page references except `title` and
`filters`, which pollutes Logseq database.

Users can setup `:ignored-page-property-tags` in config.edn to
make Logseq not parsing those keywords.

[1]: https://orgmode.org/manual/In_002dbuffer-Settings.html.

* use take-while instead. Thanks tienson.

* comment out new settings

* revert some merge conflicts.
2022-03-16 17:10:49 +08:00
Andelf b43a8c846b chore: add new options to config templates 2022-01-04 21:35:07 +08:00
leizhe d1b43ee719 enhance(mobile): add option for editing photo before embeding it 2021-12-09 11:36:51 +08:00
llcc 584c929839
Enhance logbook (#2987)
* fix(logbook): fix https://github.com/logseq/logseq/issues/2866 partially

Timetracked logbook shouldn't only shown up in block with scheduled
timestamp.

* fix https://github.com/logseq/logseq/issues/2866

* cleanup: arguments in some commands

* Revert "cleanup: arguments in some commands"

This reverts commit 0e7df6e5fe.

* enhance(logbook): add two-level options to show logbook

This PR offer two options to control when the logbook drawer shows in
your block.

- `:logbook/enabled-in-timestamped-blocks`: This option defaults to
true, which means that the logbook drawer will be visible in blocks
only with scheduled or deadline timestamp after timetracking.

- `:logbook/enabled-in-all-blocks`: This option defaults to
nil. Adding `:logbook/enabled-in-all-blocks true` to your config file
will enable the logbook shown-up for all blocks after timetracking.

* fix last commit

* fix: timetrack for now->later on repeated task

* fix: add default marker

* enhance(logbook): support seconds

* logbook: add `with-second-support` doc

* logbook: re-define display config

* fix logbook string indentation

Co-authored-by: leizhe <leizhe@leizhedeMacBook-Air.local>
2021-10-22 22:24:53 +08:00