Skip to content

Commit 2cd2ea7

Browse files
author
Sebastian Flügge
committed
docs: add key mapping suggestion
1 parent ce4e92d commit 2cd2ea7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Refile heading from capture or current file under destination with `:Telescope o
1515
[![asciicast](https://asciinema.org/a/1X4oG6s5jQZrJJI3DfEzJU3wN.svg)](https://asciinema.org/a/1X4oG6s5jQZrJJI3DfEzJU3wN)
1616

1717
## Installation
18+
1819
### With lazyvim
1920

2021
```lua
@@ -80,7 +81,7 @@ Every mode is available in every function.
8081

8182
This is the first and default mode. It shows all the headlines, initially
8283
sorted by most recently changed org file. The level of headlines can be
83-
[configured](#Configuration).
84+
[configured](#configuration).
8485

8586
### Search org files
8687

@@ -114,3 +115,16 @@ For a particular command you can pass it directly in your key mapping to the fun
114115
```lua
115116
require('telescope').extension.orgmode.search_headings({ max_depth = 3 })
116117
```
118+
119+
You can also create a key mapping, that allows you to search directly for org files:
120+
121+
```lua
122+
vim.set.keymap(
123+
"n",
124+
"<Leader>off",
125+
function()
126+
require('telescope').extension.orgmode.search_headings({ mode = "orgfiles" })
127+
end,
128+
{ desc = "Find org files"}
129+
)
130+
```

0 commit comments

Comments
 (0)