From c8d772a3dd95aa5156c3a5aac2c1a147e062c913 Mon Sep 17 00:00:00 2001 From: alexekdahl Date: Mon, 3 Nov 2025 07:50:12 +0100 Subject: [PATCH] fix: clear all dubble confirmation --- lua/marksman/ui.lua | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lua/marksman/ui.lua b/lua/marksman/ui.lua index a26e5ec..2db4775 100644 --- a/lua/marksman/ui.lua +++ b/lua/marksman/ui.lua @@ -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 }