Page:
Search
Pages
Actions
Attachment
Audio recorder
Autocmds
Bookmarks
Breaking Changes
Cache
Checkbox
Commands
Completion
Daily Notes
Editing this wiki
Extensions
File
Folding
Footer
Frontmatter
Home
Images
Integrations
Keymaps
LSP Progress
LSP
Link
Navigation
Note
Open
Recipes
Resolvers
Scripting
Search
Startup Guide
Statusline
Sync
Tag
Template
Unique Note
Workspace
No results
2
Search
github-actions edited this page 2026-07-25 11:38:35 +00:00
Table of contents
Sort By
opts.search.sort_by controls how search results are sorted. Valid values are "modified" (default), "created", "accessed", and "path". Set to false to disable sorting entirely, which can improve performance in large vaults.
Sort Reversed
opts.search.sort_reversed controls the sort direction. Defaults to true (newest/last first). Set to false to sort ascending.
Max Lines
opts.search.max_lines limits how many lines of each file ripgrep will search. Defaults to 1000. Set to nil to search entire files.
Options
---@class obsidian.config.SearchOpts
---
---@field sort_by obsidian.config.SortBy|false
---@field sort_reversed boolean
---@field max_lines integer
search = {
sort_by = "modified",
sort_reversed = true,
max_lines = 1000,
}
🌟 obsidian.nvim
Topics
- Actions
- Autocmds
- Commands
- Folding
- Extensions
- Images
- Integrations
- Keymaps
- Navigation
- Scripting
- Startup-Guide
- Recipes
- LSP
- LSP-Progress