Commit Graph

134 Commits

Author SHA1 Message Date
Gabriel Horner
bf79db9d54 Install and uninstall plugins from file
Change plugins.edn to key off id as it is unique and all operations
work off of it.
Note: there are still some bugs with certain plugin installs
2022-10-17 10:13:27 -04:00
Charlie
d53ac94bfc Enhance/pdf improvements (#6475)
Full-text search, highlights and assets alias support 
It also exposes a plugin API for highlight context menu   
    ```ts
    /**
       * Current it's only available for pdf viewer
       * @param label - displayed name of command
       * @param action - callback for the clickable item
       * @param opts - clearSelection: clear highlight selection when callback invoked
       */
      registerHighlightContextMenuItem: (
        label: string,
        action: SimpleCommandCallback,
        opts?: {
          clearSelection: boolean
        }
      ) => unknown
    ```
2022-10-09 20:44:18 +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
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
Konstantinos Kaloutas
189d68d9a7 fix: create shortcut 2022-09-22 18:16:39 +03:00
Konstantinos Kaloutas
5d3e45e989 chore: add comment for single letter shortcuts 2022-09-19 11:15:06 +03:00
Konstantinos Kaloutas
97475826b5 fix: create whiteboard shortcut 2022-09-16 17:11:20 +03:00
Konstantinos Kaloutas
bed8b0eb70 chore: add new whiteboard shortcut 2022-09-16 13:57:46 +03:00
Gabriel Horner
12b8592f9b Update docstrings after Tienson's shortcuts fix
Also remove unused :db-schema
2022-09-08 12:34:27 +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
ab04fe3bfd Electron only commands should only show up in electron
Follow up to #6443
2022-08-25 10:17:39 +08:00
Tienson Qin
c919b61c07 feat: Enter/Shift+Enter and Cmd+g/Cmd+Shift+g to jump to the next/prev 2022-08-24 16:47:49 +08:00
Konstantinos Kaloutas
322e3a730a fix: search input issues 2022-08-24 16:47:49 +08:00
Tienson Qin
b6b9f5e665 feat: find in page on electron 2022-08-24 16:47:49 +08:00
Gabriel Horner
af8c0ee148 Add command to re-index graph 2022-07-22 14:21:11 +08:00
sawhney17
33c4a2bfa3 make the git commti customizable 2022-07-14 11:08:04 +08:00
Tienson Qin
b59d98ada5 fix: paste blocks 2022-06-16 04:47:17 +08:00
Tienson Qin
999defdad1 fix: raw paste 2022-06-16 04:47:16 +08:00
Junyi Du
c09fd7f70c fix: missing db persistency when creating new window via file menu (#5600)
* fix: missing db persistency when creating new window via file menu

* fix: remove the deprecated new window shortcut config

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-06-08 18:05:55 +08:00
sawhney17
a2cfdfdf73 feat(block-embed): Support mod+e to copy block embed to current block (#5584)
* support mod+e to copy block embed

* fix incorrect notification popup

* fix notification wrap styling

* remove extra files

* fix yarn.lock

* update yarn lock

* fix comments
2022-06-07 15:57:46 -04:00
charlie
ec7c72b1e9 enhance(ui): disable left menu button when pdf view active 2022-06-01 18:33:06 +08:00
Tienson Qin
d49eec78a4 fix: use mod+shift+c for raw text copy 2022-05-30 19:33:55 +08:00
Gabriel Horner
1d390f7bd4 Replace medley/{map-keys/map-vals} with {update-keys,update-vals} 2022-05-19 14:58:33 +08:00
Gabriel Horner
8162394698 Adds emacs keybindings to other up/down movements following #5202 2022-05-05 09:35:01 +08:00
charlie
8b9c64af6e fix: simplify register ctrl-next/prev shortcut for auto-complete 2022-05-04 09:40:14 -04:00
charlie
aafa988051 enhance(ux): support idiomatic shortcut ctrl+n for auto-complete navigation 2022-05-04 09:40:14 -04:00
sawhney17
9383652458 fix issues with CI and change shortcuts 2022-04-24 11:19:15 +08:00
sawhney17
a65fa87b05 update keybindings 2022-04-24 11:19:15 +08:00
sawhney17
779ce56546 add shortcuts to open in default app + directory 2022-04-24 11:19:15 +08:00
Tienson Qin
1ff87706f6 enhance: shift+up/down for smooth select and alt+up/down for block select 2022-04-23 07:25:24 +08:00
kkkiio
140fe27ad7 enhance(edit): add smooth-select action 2022-04-23 07:20:30 +08:00
Andelf
e6d87dfd6c enhance(editor): allow global git cmd shortcut 2022-04-16 00:39:16 +08:00
Tienson Qin
28d3cb4658 Merge pull request #4753 from logseq/enhance/allow-more-translations
Enhance: Allow translations throughout the application
2022-04-01 15:31:52 +08:00
Tienson Qin
1663192709 fix: command palette is no long working 2022-04-01 02:51:52 +08:00
Gabriel Horner
918e3511d6 Make inactive commands more explicit with :inactive
Also fixed inactive commands showing up in settings page.
This is a follow up to #4436
2022-03-28 15:36:23 -04: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
Gabriel Horner
5635469d7a Split out command and category descs
Move them to a more appropriate ns that is just dictionary focused.
This _majorly_ slims down dependencies for the main translation ns
Also:
- add tests
- make medley requires consistent
- alter spec to reflect how command data is actually being used in
  command palette component
- add basic translation tests
2022-03-28 11:05:42 -04:00
sawhney17
89c44028d2 fix(keyboard-shortcuts): Add favorite toggling to the settings pane (#4708)
* fix #3663
* Update dicts.cljs
* close #4697
2022-03-24 13:05:56 +08:00
Junyi Du
7bc731fcee ui: opening new window i18n support 2022-03-20 19:02:51 +08:00
Junyi Du
d425a60038 fix: persisting db before opening new window 2022-03-20 19:02:51 +08:00
Gabriel Horner
3772e67ed9 Add keybinding to open links from search 2022-03-01 20:41:41 +08:00
Andelf
ec75142730 fix(ui): exit edit mode when prompt
Fix #4359
2022-02-24 11:54:40 +08:00
Gabriel Horner
6957b17843 Add command to save graph to disk 2022-02-22 12:00:50 +08:00
Tienson Qin
26be474e55 fix: srs cards shortcuts not working
close #4230
2022-02-17 18:19:37 +08:00
Gabriel Horner
c6d03b67ab Merge branch 'master' into dev/var-sizes-linter 2022-02-08 12:02:39 -05:00
Gabriel Horner
be46506ba3 Merge branch 'master' into feature/add-more-graph-commands 2022-02-08 11:10:11 -05:00
Tienson Qin
d6f563db2c Don't notice search rebuilt when re-index or adding new graphs 2022-02-08 17:36:35 +08:00
Gabriel Horner
40eb74a47c Add first pass at large vars linter
Had to tweak rewrite-clj to read vars with metadata.
Added fail fast behavior to fns to prevent silent failure
which was impacting tasks. Started looking at a few vars. More to look
at
2022-02-04 14:06:50 -05:00