fix: critical bugs and add documentation

- Fix missing path separator in glob patterns (files were not found)
- Fix nvim-tree setup overriding user config on every IdeaTree call
- Fix deprecated nvim API (nvim_buf_set_option, nvim_win_set_option)
- Fix missing arguments in sidebar.open() call in list.lua
- Remove unused variable in tags.lua
- Update help documentation with all commands
- Fix README.md (telescope reference, add changelog link)
- Add CHANGELOG.md
- Add llms.txt for AI/LLM context
This commit is contained in:
Carlos Gutierrez
2026-01-10 22:34:10 -05:00
parent 3dc33a46bb
commit de8ccfb9aa
9 changed files with 425 additions and 139 deletions

View File

@@ -11,7 +11,7 @@ local M = {}
function M.list_all()
local path = config.options.idea_dir
-- Find all .md files recursively
local files = vim.fn.glob(path .. "**/*.md", false, true)
local files = vim.fn.glob(path .. "/**/*.md", false, true)
if #files == 0 then
vim.notify("📂 No idea files found", vim.log.levels.INFO)
@@ -21,7 +21,8 @@ function M.list_all()
-- Present file selection UI
vim.ui.select(files, { prompt = "📂 Select an idea file to open:" }, function(choice)
if choice then
sidebar.open(choice) -- Open the selected file in sidebar
local filename = vim.fn.fnamemodify(choice, ":t")
sidebar.open(choice, filename, false) -- Open the selected file in sidebar
end
end)
end

View File

@@ -71,7 +71,7 @@ function M.fuzzy_search(query)
local results = {}
-- Find all .md files recursively
local files = vim.fn.glob(idea_path .. "**/*.md", false, true)
local files = vim.fn.glob(idea_path .. "/**/*.md", false, true)
for _, file in ipairs(files) do
if vim.fn.filereadable(file) == 1 then
@@ -199,7 +199,7 @@ function M.search_in_content(query)
local results = {}
-- Find all .md files recursively
local files = vim.fn.glob(idea_path .. "**/*.md", false, true)
local files = vim.fn.glob(idea_path .. "/**/*.md", false, true)
for _, file in ipairs(files) do
if vim.fn.filereadable(file) == 1 then
@@ -257,7 +257,7 @@ function M.search_by_title(query)
local results = {}
-- Find all .md files recursively
local files = vim.fn.glob(idea_path .. "**/*.md", false, true)
local files = vim.fn.glob(idea_path .. "/**/*.md", false, true)
for _, file in ipairs(files) do
if vim.fn.filereadable(file) == 1 then

View File

@@ -80,7 +80,7 @@ function M.get_all_tags()
local seen = {}
-- Find all .md files recursively
local files = vim.fn.glob(idea_path .. "**/*.md", false, true)
local files = vim.fn.glob(idea_path .. "/**/*.md", false, true)
for _, file in ipairs(files) do
if vim.fn.filereadable(file) == 1 then
@@ -203,7 +203,7 @@ function M.get_files_by_tag(tag)
local matching_files = {}
-- Find all .md files recursively
local files = vim.fn.glob(idea_path .. "**/*.md", false, true)
local files = vim.fn.glob(idea_path .. "/**/*.md", false, true)
for _, file in ipairs(files) do
if vim.fn.filereadable(file) == 1 then
@@ -264,7 +264,6 @@ function M.show_files_with_tag(tag)
-- Format file names for display
local file_choices = {}
for _, file in ipairs(files) do
local filename = vim.fn.fnamemodify(file, ":t")
local relative_path = file:sub(#config.options.idea_dir + 2) -- Remove idea_dir + "/"
table.insert(file_choices, relative_path)
end