Skip to content

Problem with .ignore - marksman ignores negation patterns #428

@x1340

Description

@x1340

On Linux | Neovim | marksman 2024-12-18

I have a directory (test.tar.gz) as follow:

.
├── attachments
│   └── public
│       └── quicknotes
│           ├── quicknotes.md
│           └── todo.md
├── .ignore
├── journal
│   └── 2021
│       └── f33d3c05-8a1e-47f7-959c-c7ac7713531b.md
└── .marksman.toml

.marksman.toml configuration:

[core]
markdown.file_extensions = ["md", "markdown"]
markdown.glfm_heading_ids.enable = true
text_sync = "full"
title_from_heading = true
incremental_references = false
paranoid = true

[code_action]
toc.enable = true
create_missing_file.enable = false

[completion]
candidates = 100
wiki.style = "file-stem"

.ignore file

attachments/**
!attachments/public/
!attachments/public/quicknotes/
!attachments/public/quicknotes/**

Problem: marksman doesn't show symbols under ./attachments/public/quicknotes/. I also try with rg, rg greps just fine with that .ignore.

> rg -e "^# Quick" .
./journal/2021/f33d3c05-8a1e-47f7-959c-c7ac7713531b.md
1:# Quick notes - 2021

./attachments/public/quicknotes/quicknotes.md
1:# Quick notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-further-inputFurther information is required from the reporter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions