Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard shortcut conflicts with... itself? #6838

Open
Oaklight opened this issue Sep 28, 2022 · 6 comments
Open

keyboard shortcut conflicts with... itself? #6838

Oaklight opened this issue Sep 28, 2022 · 6 comments

Comments

@Oaklight
Copy link

What happened?

I got a conflict notification when I installed "tidy-blocks." Then I changed the shortcut from default mod+ctrl+x to alt+ctrl+x but ended up with another conflict. This one is a bit confusing to me: why does it conflict with itself?

Reproduce the Bug

  1. go to settings of 'tidy-block`
  2. change keyboard shortcut to toggle block properties

Expected Behavior

shortcut should only conflict with existing shortcuts to other functions

Screenshots

image

Desktop Platform Information

Deepin 20.7
Logseq v0.8.7

Mobile Platform Information

No response

Additional Context

No response

@menelic
Copy link

menelic commented Oct 1, 2022

Just had a similar error message with a different plugin - the great Citation Manager plugin - when updating from its v2.0.2. to 2.0.3. and without having changed the default keyboard shortcuts:
image

@hiway
Copy link

hiway commented Oct 10, 2022

+1

I am writing a plugin.

import '@logseq/libs'
import ElizaNode from 'elizanode'


async function main() {
  var eliza = new ElizaNode()

  logseq.App.registerCommandShortcut({
    binding: "ctrl+shift+enter",
    mode: "global"
  }
    , async () => {
      const current_block = await logseq.Editor.getCurrentBlock()
      const input = await logseq.Editor.getEditingBlockContent()
      if (!input) {
        console.log("Eliza: No input, skipping...")
        return
      }
      const output = eliza.transform(input)
      const formatted_output = `Eliza: *${output}*`

      const reply_block = await logseq.Editor.insertBlock(current_block!.uuid, formatted_output, { sibling: true })
      await logseq.Editor.insertBlock(reply_block!.uuid, "", { sibling: true })
    })
  console.log('Eliza: ready.')
}

logseq.ready(main).catch(console.error)

I get this error every time I reload:

Screenshot 2022-10-10 at 6 35 12 PM

In order to reload the plugin, I have to quit Logseq and start the app again.

@xxchan
Copy link
Contributor

xxchan commented Dec 24, 2022

In order to reload the plugin, I have to quit Logseq and start the app again.

A workaround for plugin development is to reload Logseq.. 🥲
image

@github-actions
Copy link

Hi There! 👋

We haven't seen any activity on this issue in a while 😴, and we just wanted to make sure that it's still relevant. If you're still experiencing this issue, you might find it helpful to update to the latest version of Logseq. The latest version includes bug fixes and new features that may help to resolve this issue, and you can download it from our website. If updating to the latest version doesn't help, please let us know by adding a comment 💬. We're here to help!

If the issue has been resolved or is no longer relevant, that's great news! 🎉
We'll go ahead and close this issue to keep our backlog organized. Please note that this issue will be closed automatically in 20 days if there is no further activity. If you need more time to resolve the issue or provide more information, please just let us know by adding a comment.

Access additional Logseq 🚀 resources:

Thanks for your contributions to Logseq! If you have any other issues or feature requests, please don't hesitate to let us know. We always welcome pull requests too!

@xxchan
Copy link
Contributor

xxchan commented Jun 24, 2023 via email

@redactedscribe
Copy link

redactedscribe commented Sep 17, 2023

I have several plugins and I often see errors about shortcuts conflicting with themselves, e.g.: :plugin.logseq-bionic-speedreader/$shortcut$mod_b_mod_s ctrl+b ctrl+s Keyboard shortcut conflicts with existing shortcut: plugin.logseq-bionic-speedreader/$shortcut$mod_b_mod_s. It has been happening for a long time now, without having changed any default shortcuts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🗄 Backlog
Development

No branches or pull requests

5 participants