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

org_tags_exclude_from_inheritance not working as expected #830

Open
lyz-code opened this issue Nov 22, 2024 · 0 comments
Open

org_tags_exclude_from_inheritance not working as expected #830

lyz-code opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lyz-code
Copy link

Describe the bug

As far as I understood org_tags_exclude_from_inheritance configuration is used to prevent certain tags from being inherited by a task children.

However, when opening a Match agenda by the excluded tag, the parent task is not shown in the report

Steps to reproduce

  1. Create the next test file:
* TODO test  :non_inherited_tag:                                                                    
** TODO test 2                                                                                      
  1. Open it with the minimal example below
  2. Open the Match agenda gaM and enter the tag non_inherited_tag
  3. the parent task test does not show in the report

Expected behavior

The TODO element with the tag should appear in the report

Emacs functionality

No response

Minimal init.lua

local tmp_dir = vim.env.TMPDIR or vim.env.TMP or vim.env.TEMP or "/tmp"
local nvim_root = tmp_dir .. "/nvim_orgmode"
local lazy_root = nvim_root .. "/lazy"
local lazypath = lazy_root .. "/lazy.nvim"

-- Install lazy.nvim if not already installed
if not vim.loop.fs_stat(lazypath) then
	vim.fn.system({
		"git",
		"clone",
		"--filter=blob:none",
		"https://github.com/folke/lazy.nvim.git",
		"--branch=stable", -- latest stable release
		lazypath,
	})
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
	{
		"nvim-orgmode/orgmode",
		event = "VeryLazy",
		ft = { "org" },
		config = function()
			require("orgmode").setup({
				org_tags_exclude_from_inheritance = { "non_inherited_tag" },
				org_agenda_files = {
					"./*.org",
				},
				mappings = {
					global = {
						org_agenda = "ga",
					},
				},
			})
		end,
	},
}, {
	root = lazy_root,
	lockfile = nvim_root .. "/lazy.json",
	install = {
		missing = false,
	},
})

require("lazy").sync({
	wait = true,
	show = false,
})

Screenshots and recordings

non_inherited

OS / Distro

Debian

Neovim version/commit

v0.10.0

Additional context

No response

@lyz-code lyz-code added the bug Something isn't working label Nov 22, 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