@@ -139,6 +139,42 @@ local function create_marks_content(marks, search_query)
139139 end )
140140 end
141141
142+ -- MINIMAL MODE: Show only order and filename
143+ if config .minimal then
144+ if vim .tbl_isempty (filtered_marks ) then
145+ table.insert (lines , " No marks" )
146+ return lines , highlights , {}
147+ end
148+
149+ for i , name in ipairs (mark_names ) do
150+ local mark = filtered_marks [name ]
151+ local filename = vim .fn .fnamemodify (mark .file , " :t" )
152+ local line = string.format (" [%d] %s" , i , filename )
153+ table.insert (lines , line )
154+
155+ local line_idx = # lines - 1
156+ mark_info [line_idx ] = { name = name , mark = mark , index = i }
157+
158+ -- Highlight the number
159+ table.insert (highlights , {
160+ line = line_idx ,
161+ col = 0 ,
162+ end_col = string.len (string.format (" [%d]" , i )),
163+ hl_group = " ProjectMarksNumber" ,
164+ })
165+ -- Highlight the filename
166+ table.insert (highlights , {
167+ line = line_idx ,
168+ col = string.len (string.format (" [%d] " , i )),
169+ end_col = - 1 ,
170+ hl_group = " ProjectMarksFile" ,
171+ })
172+ end
173+
174+ return lines , highlights , mark_info
175+ end
176+
177+ -- NORMAL MODE: Full detailed view
142178 -- Header
143179 local title = search_query
144180 and search_query ~= " "
0 commit comments