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

ObsidianQuickSwitch bug with telescope insert link #721

Open
barcell1 opened this issue Sep 21, 2024 · 0 comments
Open

ObsidianQuickSwitch bug with telescope insert link #721

barcell1 opened this issue Sep 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@barcell1
Copy link

🐛 Describe the bug

When using obsidianquickswitch with telescope option insert_link, it correctly insert the link, but it also append a pipe | with some words that starts the note linked

so if i use a obsidianquickswitch to search a note called car.md (that have on the begining of the note a word like eletric) and hit the insert link option of telescope. it would add [[car|eletric]] instead of only [[car]]

I didnt found the behaviour to it choose certains words of my notes, sometimes it pick words from frontmatter, sometimes is the word of the first header

Config

picker = {
    -- Set your preferred picker. Can be one of 'telescope.nvim', 'fzf-lua', or 'mini.pick'.
    name = "telescope.nvim",
    -- Optional, configure key mappings for the picker. These are the defaults.
    -- Not all pickers support all mappings.
    note_mappings = {
      -- Create a new note from your query.
      new = "<C-x>",
      -- Insert a link to the selected note.
      insert_link = "<C-l>",
    },
  },

Environment

NVIM v0.10.1
Build type: RelWithDebInfo
LuaJIT 2.1.1720049189

@barcell1 barcell1 added the bug Something isn't working label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant