Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions lua/marksman/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -523,16 +523,8 @@ local function setup_window_keymaps(buf, marks, project_name, mark_info, search_
end

local function clear_all_marks()
vim.ui.select({ "Yes", "No" }, {
prompt = "Clear all marks in this project?",
}, function(choice)
if choice == "Yes" then
local marksman = require("marksman")
marksman.clear_all_marks()
close_window()
notify("󰃀 All marks cleared", vim.log.levels.INFO)
end
end)
local marksman = require("marksman")
marksman.clear_all_marks()
end

local keymap_opts = { buffer = buf, noremap = true, silent = true }
Expand Down