Commit Graph

195 Commits

Author SHA1 Message Date
charlie
388e9f33fc enhance(ui): polish the non-accent colors 2024-01-23 16:36:45 +08:00
charlie
8f0c4faec7 enhance(ui): polish the non-accent colors 2024-01-22 18:41:55 +08:00
Konstantinos Kaloutas
6e67df9e37 add shortcuts and fix naming 2023-12-14 14:42:03 -05:00
Charlie
036df25a17 Enhance: plugin APIs (#10399)
* enhance(plugin): call apis with the sdk ns

* enhance(plugin): types

* enhance(api): get value from the computed style

* enhance(api): types

* enhance(plugin): types

* enhance(plugin): types

* fix: lint

* fix(apis): incorrect shortcut command registion for block editing mode #10392

* fix(api): types

* enhance(apis): support register shortcuts with multi binding vals

* fix(plugins): normalize command key to make the internal keyword legal

* chore(plugin): build libs core

* chore(plugin): bump version

* enhance(apis): normalize apis cljs data

* chore(plugin): update libs user sdk

* chore(plugin): CHANGELOG.md

* fix: typo

* fix(ux): support querying plugins with right space chars
2023-12-13 15:42:21 +08:00
Tienson Qin
e0c7ff0ba3 fix: keep one command for toggle cards 2023-11-12 21:49:41 +08:00
Tienson Qin
34fd9d20fa enhance: show cmdk in the basic shortcut group 2023-11-12 20:59:44 +08:00
Tienson Qin
aacef8e94c Add shortcuts for search only commands && current page 2023-11-12 15:07:00 +08:00
Tienson Qin
b91fd4e6c8 Remove old cmdk && command palette 2023-11-06 15:25:35 +08:00
charlie
c8b564bc40 fix(shortcuts): conflicts 2023-10-19 21:22:51 +08:00
Ben Yorke
69e02edaeb Merge branch 'master' into feat/cmdk 2023-10-16 21:02:12 +02:00
charlie
9ca6e7896d fix(shortcut): render crash when edit disabled binding item 2023-10-14 00:59:36 +08:00
charlie
dd246229b7 enhance(shortcuts): incorrect default internal binding state 2023-10-14 00:59:36 +08:00
Konstantinos Kaloutas
a15daea979 fix: close window while editing 2023-10-09 21:53:37 +08:00
Ben Yorke
246e904457 cmdk2 updates 2023-09-15 13:30:51 +02:00
Konstantinos
89a489571f Enhance: Introduce customizable close window shortcut (#10190)
* add close window shortcut

* suppress build warnings

* add window ns docstring
2023-09-14 22:23:03 +08:00
Ben Yorke
0f7f9adf9b Merge github-bendyorke:logseq/logseq into feat/cmdk 2023-08-31 16:08:22 +02:00
Charlie
6d6da2046c Enhance/shortcuts (#9803)
* refactor(shortcuts): simplify to build handler category map

* fix(shortcuts): redundant re-mount for the pdf shortcuts

* refactor(shortcuts): simplify names

* refactor(shortcuts): simplify user keynames

* fix(shortcuts): persist inited state for dev mode

* refactor(shortcuts): simplify handlers installation

* refactor(shortcuts): optimize shortcuts mixin

* fix: incorrect function ref

* refactor(shortcuts): shortcuts mixin

* fix(shortcuts): incorrect initialization for the pdf shortcut handler

* refactor(shortcuts): optimize binding keys map

* refactor(shortcuts): optimize shortcuts conflicts detection

* refactor(shortcuts): optimize binding ids map

* refactor(shortcuts): WIP the new keymap page

* refactor(shortcuts): WIP the new keymap related components

* feat(shortcuts): WIP fuzzy search for the shortcuts

* refactor(shortcuts): WIP the new keymap related components

* feat(shortcuts): WIP the new shorcuts record component

* feat(shortcuts): WIP the new shorcuts record component

* feat(shortcuts): WIP check shortcut conflicts component

* feat(shortcuts): WIP the new shorcuts record component

* refactor(shortcuts): WIP persist user shortcuts

* fix(shortcuts): detection for the conflicts

* feat(shortcuts): WIP detection for the conflicts

* feat(shortcuts): WIP persist user shortcuts

* refactor(shortcuts): add unit tests

* enhance(ux): search pane for the shortcuts

* feat(shortcuts): remove the existent shortcut item

* feat(shortcuts): fold/unfold categories

* feat(shortcuts): add shortcuts filters

* enhance(shortcuts): resove binding map description

* enhance(shortcuts): reactive category shortcuts

* enhance(shortcuts): register api for plugins

* feat(shortcuts): add keyboard shortcuts filters

* feat(shortcuts): impl keyboard shortcuts filters

* enhance(shortcuts): leader keys for the shortcut conflicts detection

* enhance(tests): leader keys conflicts for the shortucts

* enhance(shortcuts): parse conflicts from current binding list

* enhance(ui): polish the component of the restore shortcut action

* enhance(shortcuts): get conflicts with specific handler id

* enhance(shortcuts): polish the confilts component

* enhance(shortcuts): polish keymap conflicts component

* enhance(shortcuts): ux for handling shorcuts conflicts

* enhance(ui): polish notifications cp

* fix(shortcuts): remove reduplicate shortcuts for category

* enhance(shortcuts): polish ux for handling shorcuts conflicts

* chore(plugin): build libs core

* enhance(plugin): support shortcut command lifecycle hooks

* enhance(plugin): support shortcut command lifecycle hooks

* chore(plugin): build libs core

* enhance(shortcuts): support shortcuts saved to global config

* enhance(shortcuts): support shortcuts be saved to global config

* feat(shortcuts): support keymap manager to global settings

* enhance(shortcuts): shortcut to open keymap settings

* fix(units): tests

* fix: lints

* enhance(shortcuts): unlisten all shortcuts

* fix: lints

* fix: lints

* fix(units): tests

* fix(units): tests

* fix(units): tests

* enhance(shortcuts): unlisten/listen all shortcuts

* enhance(shortcuts): polish conflicts component

* fix(ui): modal size

* fix(ui): modal panel container

* enhance(shortcuts): i18n

* enhance(ui): layout of the shortcuts recorder component

* fix(lint): i18n

* enhance(ui): keyboard icon for the keymap settings tab

* fix(shortcuts): incorrect filters for the collaspsed shortcuts

* enhance(ui): polish details for the keymap settings

* enhance(ui): polish details for the keymap settings

* fix(shortcuts): get shortcut description error when the associated handler-id not exist

* fix(ui): the shortcut disabled label overlaps with section headers.

* refactor(shortcuts): names

* enhance(ui): filter icons
2023-08-29 19:33:48 +08:00
Ben Yorke
4e2d980955 button and cmdk 2023-06-30 09:37:07 +02:00
charlie
0dea777558 Merge branch 'master' into enhance/keymaps-manager-x 2023-05-19 10:20:20 +08:00
Gabriel Horner
514b5faf6e Refactor and simplify dicts
- frontend.dicts encapsulates dicts behavior for all other namespaces
- Each dict ns only has one var which prepares us
- No longer need shortcut.dicts
- Fix remaining lints that were broken
- Also bring back frontend.dicts
- Update guide
- Add a false binding to :editor/toggle-undo-redo-mode which throws a
  needless warning
2023-05-18 18:13:50 -04:00
Avelino
e55f0fc331 shortcut/config: use default dicts (EN)
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Avelino
1d14f6a98f centralize translation dictionary
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Avelino
a2d1f65c2f shortcut/i18n: isolate package languages
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
charlie
7d5f4e62c1 enhance(shortcuts): expose shortcut cmd map from the pallette cmd to display more information for plugin shortcut col 2023-05-15 11:32:47 +08:00
charlie
82c36b7dea enhance(shortcuts): plugins shortcuts tables 2023-05-11 15:59:10 +08:00
charlie
535f64b495 Merge branch 'master' into enhance/keymaps-manager-x 2023-05-10 10:12:17 +08:00
Konstantinos
5885bc86b6 Enhance (Whiteboards): Add prefix to default keyboard shortcuts (#9340)
* enhance: keyboard shortcuts

* fix: portal shortcut

* fix: e2e tests

* fix: e2e

* enhance: keyboard shortcuts
2023-05-09 12:38:00 -04:00
charlie
c4c9be91e8 fix(plugin): normalize plugin keybindings to adapt for the closure lib legal keynames 2023-05-08 17:17:31 +08:00
charlie
9f36b74224 Merge branch 'master' into enhance/keymaps-manager-x 2023-05-05 16:57:13 +08:00
charlie
602e0231ea enhance(ux): support the keymap manager within modal container 2023-05-05 13:06:46 +08:00
charlie
f73d964899 Merge branch 'master' into feat/custom-children-list-style 2023-05-04 10:35:07 +08:00
Konstantinos Kaloutas
e912577610 fix externs 2023-05-03 15:30:05 -04:00
Konstantinos Kaloutas
736877d5c3 enhance: new whiteboard shortcut category 2023-05-03 15:30:05 -04:00
Konstantinos Kaloutas
00be5edb4c chore: handle tool shortcuts 2023-05-03 15:30:05 -04:00
Konstantinos Kaloutas
dd9eb3a4e2 enhance (wip): customizable shortcuts 2023-05-03 15:30:05 -04:00
Konstantinos Kaloutas
96aed148b4 enhance (wip): customizable shortcuts 2023-05-03 15:30:05 -04:00
Konstantinos Kaloutas
9a89def497 enhance (wip): customizable shortcuts 2023-05-03 15:30:05 -04:00
charlie
f727f6fc8e Merge branch 'master' into feat/custom-children-list-style 2023-05-01 09:49:14 +08:00
Gabriel Horner
1f279b43a5 Add shortcut for toggle numbers 2023-04-28 14:07:41 -04:00
Andelf
70f2ab1e98 fix(editor): more wrong usage of shortcut handler 2023-04-28 17:12:25 +08:00
Andelf
23add8fd13 fix(editor): copy page url with shortcut
Fix #9253
2023-04-28 17:12:25 +08:00
Bad3r
1ac2dcd870 enhance: Add strikethrough to keyboard shortcuts page (#9199) 2023-04-24 11:11:32 +08:00
Tienson Qin
17206d32c0 enhance: remove the short for toggle undo/redo mode
To avoid switching accidentally.
2023-04-12 20:37:52 +08:00
Tienson Qin
6f1237a8b5 enhance: bottom bar to show undo mode 2023-04-12 20:37:52 +08:00
Tienson Qin
81f571a7d6 enhance: mod+c mod+u to toggle undo/redo mode 2023-04-12 20:37:52 +08:00
Tienson Qin
68691467de feat: limit the scope of undo/redo to page only 2023-04-12 20:37:52 +08:00
Gabriel Horner
7a905583cf Split raw and formatted paste to prevent future coupling bugs 2023-03-20 09:54:41 -04: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
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
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