You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: remove sorting/timestamps, add mark reordering, fix deletion bug (#4)
BREAKING CHANGES:
- Remove sort_marks config option and all timestamp functionality
- Remove validation features from UI and API
- Marks now maintain insertion order by default
- Add J/K keys for moving marks up/down in UI
- Fix deletion not immediately refreshing in marks window
- Preserve mark order with new mark_order array in storage
Fixes#2Resolves#3
storage.get_project_name() -- Get current project name
308
288
```
309
289
@@ -315,30 +295,10 @@ storage.get_project_name() -- Get current project name
315
295
|`auto_save`| boolean |`true`| Automatically save marks |
316
296
|`max_marks`| number |`100`| Maximum marks per project |
317
297
|`search_in_ui`| boolean |`true`| Enable search in UI |
318
-
|`sort_marks`| boolean |`true`| Sort marks by access time (false = insertion order) |
319
298
|`minimal`| boolean |`false`| Set to true for clean UI (only order and filepath)|
320
299
|`silent`| boolean |`false`| Set to true to supress notifications|
321
300
|`highlights`| table |`{...}`| Custom highlight groups |
322
301
323
-
### Sorting Behavior
324
-
By default (`sort_marks = true`), marks are sorted by:
325
-
1.**Access time** (when you last jumped to the mark)
326
-
2.**Creation time** (when the mark was created)
327
-
328
-
This means recently used marks appear first, making them easier to access.
329
-
330
-
When `sort_marks = false`:
331
-
- Marks maintain their **insertion order** (oldest marks first)
332
-
- Quick access keys (`goto_1`, `goto_2`, etc.) will jump to marks in the order they were created
333
-
- Useful if you prefer predictable, stable ordering
334
-
335
-
```lua
336
-
-- Example: Disable sorting to keep insertion order
337
-
require("marksman").setup({
338
-
sort_marks=false, -- Marks stay in creation order
339
-
})
340
-
```
341
-
342
302
## How it works
343
303
344
304
### Storage
@@ -366,7 +326,7 @@ The search function looks through:
366
326
- Code context (the line content)
367
327
368
328
### File Path Display
369
-
The UI now shows relative file paths instead of just filenames, making it easier to distinguish between files with the same name in different directories.
329
+
The UI shows relative file paths instead of just filenames, making it easier to distinguish between files with the same name in different directories.
0 commit comments