Commit Graph

195 Commits

Author SHA1 Message Date
Gabriel Horner
739b953ea3 Fix git commit command not opening
Removed unused event handler logic from when it was keydown based -
5d0ecd68b2
2023-02-17 15:59:20 +08:00
Gabriel Horner
bcaec408e6 Introduce keyword :fn to commands
Allows commands to invoke namespaces that previously caused circular
dependency issues
2023-01-30 14:56:35 +08:00
Gabriel Horner
92bec506ec Make all dev menu items into commands
Also add clear all notifications cmd
2023-01-30 14:56:35 +08:00
Andelf
c92f44d22e fix(editor): revise date-picker shortcut key handling and opening condition 2023-01-18 15:14:25 +08:00
Tienson Qin
1206d54c86 feat: mod+a to select parent up to the whole page (#7803)
mod+a to select parent up to the whole page
2022-12-29 22:29:26 +08:00
Tienson Qin
3a0fa79611 fix: can't switch between modals by shortcuts 2022-12-22 12:48:08 +08:00
Sebastian Sosa
5f3636a924 added shortcut for closing the right sidebar top item resolving issue #7275 (#7622)
* added shortcut for closing the right sidebar top item resolving issue #7275

* namespace update & binding update

* reverting git binding

* Address remaining feedback

- Use close instead of clear as it is a more general verb for future
  commands
- Use 'c t' for binding

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-12-12 10:52:57 -05:00
Tienson Qin
5decb5686d refactor!(shortcut): use mod+g c for git commit
BREAKING CHANGE: use mod+g c for git commit
2022-12-07 16:49:42 +08:00
Tienson Qin
feb6c2687b Deprecate: use g c to git commit instead of c
In general, we should avoid using single char as shortcut, the only
exception is for whiteboard actions.
2022-12-06 18:14:36 +08:00
Gabriel Horner
2685cd1325 Fix bug with certain plugins and misc cleanup
- Plugins that used effects weren't loading correctly e.g.
  logseq-power-plugin
- Cleaned up translation, docs and some fn naming
2022-10-17 10:31:07 -04:00
Gabriel Horner
0c570a0300 Fix more bugs, move plugins.edn and add enabled
- Move plugins.edn to config/ as it is user configuration
- Add plugin-config enabled flag and moved plugin enabled
- Fixed bugs with manual install
- Refactored plugin-config component to have its own listener
- Split out shared plugin fns to a common ns - plugin-config shouldn't
  need to depend on a component like plugin-handler
- Bump rewrite-edn to include upstream fix and avoid tons of cljs
  warnings with earlier versions
- Fix react warning introduced outside this PR in ui/icon
2022-10-17 10:13:27 -04:00
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