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>
This commit is contained in:
sallto
2023-02-27 18:38:14 +01:00
committed by GitHub
parent ea933a292d
commit bdc11a9dcd
5 changed files with 36 additions and 15 deletions

View File

@@ -413,6 +413,10 @@
:inactive (not (util/electron?))
:fn page-handler/copy-current-file}
:editor/copy-page-url {:binding false
:inactive (not (util/electron?))
:fn page-handler/copy-page-url}
:ui/toggle-wide-mode {:binding "t w"
:fn ui-handler/toggle-wide-mode!}
@@ -626,6 +630,7 @@
:editor/open-file-in-default-app
:editor/open-file-in-directory
:editor/copy-current-file
:editor/copy-page-url
:editor/new-whiteboard
:ui/toggle-wide-mode
:ui/select-theme-color
@@ -769,6 +774,7 @@
:editor/insert-youtube-timestamp
:editor/open-file-in-default-app
:editor/open-file-in-directory
:editor/copy-page-url
:editor/new-whiteboard
:auto-complete/prev
:auto-complete/next