epwalsh / obsidian.nvim

Obsidian 🤝 Neovim
Apache License 2.0
4.25k stars 190 forks source link

Tags with swedish characters (åäö) does not work #766

Open ulve opened 2 weeks ago

ulve commented 2 weeks ago

🐛 Describe the bug

image

If I have tags with swedish characters (åäö) the UI does not work. #people/björn for exaple stops at #people/bj

This works fine in Obsidian proper

Config

return {
  "epwalsh/obsidian.nvim",
  version = "*", -- recommended, use latest release instead of latest commit
  lazy = true,
  ft = "markdown",
  -- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
  -- event = {
  --   -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
  --   -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
  --   -- refer to `:h file-pattern` for more examples
  --   "BufReadPre path/to/my-vault/*.md",
  --   "BufNewFile path/to/my-vault/*.md",
  -- },
  dependencies = {
    -- Required.
    "nvim-lua/plenary.nvim",

    -- see below for full list of optional dependencies 👇
  },
  opts = {
    workspaces = {
      {
        name = "FO",
        path = "~/OneDrive - Future Ordering Sweden AB/Obsidian/Future Ordering Notes",
      },
    },
    completion = {
      -- Set to false to disable completion.
      nvim_cmp = true,
      -- Trigger completion at 2 chars.
      min_chars = 2,
    },
    daily_notes = {
      -- Optional, if you keep daily notes in a separate directory.
      folder = "Daily notes",
      -- Optional, if you want to change the date format for the ID of daily notes.
      date_format = "%Y-%m-%d",
      -- Optional, if you want to change the date format of the default alias of daily notes.
      alias_format = "%B %-d, %Y",
      -- Optional, default tags to add to each new daily note created.
      default_tags = { "Daily" },
      -- Optional, if you want to automatically insert a template from your template directory like 'daily.md'
      template = nil,
    },

    -- see below for full list of options 👇
  },
}

Environment

nvim --version

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1727870382

nvim --headless -c 'lua require("obsidian").info()' -c q

Obsidian.nvim v3.9.0 (ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b)
Status:
  • buffer directory: nil
  • working directory: /Users/olovjohansson/.config/nvim/lua/plugins
Workspaces:
  ✓ active workspace: Workspace(name='FO', path='/Users/olovjohansson/Library/CloudStorage/OneDrive-FutureOrderingSwedenAB/Obsidian/Future Ordering Notes', root='/Users/olovjohansson/Library/CloudStorage/OneDrive-FutureOrderingSwedenAB/Obsidian/Future Ordering Notes')
Dependencies:
  ✓ plenary.nvim: 2d9b06177a975543726ce5c73fca176cedbffe9d
  ✓ nvim-cmp: 29fb4854573355792df9e156cb779f0d31308796
Integrations:
  ✓ picker: TelescopePicker()
  ✓ completion: enabled (nvim-cmp) ✗ refs, ✗ tags, ✗ new
    all sources:
      • nvim_lsp
      • path
      • buffer
      • snippets
      • lazydev
      • crates
Tools:
  ✓ rg: ripgrep 14.1.1
Environment:
  • operating system: Darwin
Config:
  • notes_subdir: nil%
msundin commented 1 week ago

I have the same issue.