obsidian.nvim icon indicating copy to clipboard operation
obsidian.nvim copied to clipboard

`:ObsidianTOC` doesn't output all headings in non-latin languages

Open RobberFox opened this issue 1 year ago • 1 comments

🐛 Describe the bug

I don't know how exacly but some headings (in russian language, in this case) don't get outputted: image As you can see only 4/6 headings are listed

Config

{
	"epwalsh/obsidian.nvim",
	version = "*",  -- recommended, use latest release instead of latest commit
	lazy = true,
	ft = "markdown",
	dependencies = {
		-- Required.
		"nvim-lua/plenary.nvim",
		"nvim-telescope/telescope.nvim",
		"nvim-treesitter/nvim-treesitter",
	},

	opts = {
	workspaces = {
		{
			name = "personal",
			path = "~/vaults/personal",
		},
		{
			name = "work",
			path = "~/vaults/work",
		},
	},
}

	keys = {
		vim.keymap.set({"n", "i"}, "<A-c>", "<cmd>ObsidianTemplate<CR>"),
		vim.keymap.set({"n", "i"}, "<A-v>", "<cmd>ObsidianPasteImg<CR>"),

		vim.keymap.set({"n", "i"}, "<A-o>", "<cmd>ObsidianQuickSwitch<CR>"),
		vim.keymap.set({"n", "i"}, "<A-l>", "<cmd>ObsidianBacklinks<CR>"),
		vim.keymap.set({"n", "i"}, "<A-m>", "<cmd>ObsidianExtractNote<CR>"),
		vim.keymap.set({"n", "i"}, "<A-j>", "<cmd>ObsidianSearch<CR>"),
		vim.keymap.set({"n", "i"}, "<A-n>", "<cmd>ObsidianNew<CR>"),
	}
},

Environment

NVIM v0.11.0-dev-1326+g3bb2d02759
Build type: RelWithDebInfo
LuaJIT 2.1.1732813678
Run "nvim -V1 -v" for more info

RobberFox avatar Dec 10 '24 23:12 RobberFox

This is automatically fixed by applying this hack: https://github.com/epwalsh/obsidian.nvim/issues/669 image

RobberFox avatar Dec 16 '24 16:12 RobberFox