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
Copy file name to clipboardExpand all lines: README.md
+23-7Lines changed: 23 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,17 +187,17 @@ Transform the result paths into relative ones with this value as the base dir.
187
187
188
188
Default value: `vim.fn.getcwd()`
189
189
190
-
##### `fd_opts`
190
+
##### `fd_opts` & `find_exec_opts`
191
191
192
-
**This is a relatively advanced option that you should use with caution. There is no guarantee that a particular set of options would work the same across multiple versions**
192
+
**These are relatively advanced options that you should use with caution. There is no guarantee that a particular set of options would work the same across multiple versions of the plugin**
193
193
194
-
This passes additional options to the command `fd` that generates the repository list. It is inserted like so:
194
+
This passes additional exec options to the command `fd` that generates the repository list. It is inserted like so:
fd [set of default options] [fd_opts] --exec [find_exec_opts] [pattern] …
198
198
```
199
199
200
-
##### Example
200
+
###### `fd_opts` Example
201
201
202
202
Let’s say you have a git repository `S` inside another git repository `M` (for instance because of [#5](https://github.com/cljoly/telescope-repo.nvim/issues/5)), but `S` is in a directory that’s ignored in the `.gitignore` in `M`. `S` wouldn’t appear in the Telescope list of this extension by default, because it is ignored (`.gitignore` are taken into account by default).
203
203
@@ -207,7 +207,23 @@ To avoid taking into account the `.gitignore`, we need to pass `--no-ignore-vcs`
This will list `M` and `S` in the Telescope output! The downside is that listing repositories will be a little longer, as we don’t skip the git-ignored files anymore.
210
+
This will list `M` and `S` in the Telescope output. The downside is that listing repositories will be a little longer, as we don’t skip the git-ignored files anymore.
211
+
212
+
###### `fd_exec_opts` Example
213
+
214
+
This is mainly to accommodate different OS shells like PowerShell on windows.
215
+
216
+
Let’s say you try to use telescope repo in windows powershell, then the command could be something like this to make it work
217
+
218
+
```
219
+
fd --exec powershell /C "echo {//}" ; ^\.git$
220
+
```
221
+
222
+
To use an equivalent command with the plugin, run:
@@ -294,7 +310,7 @@ if you encounter any problems. If it’s not the case by default, you should aut
294
310
295
311
Options are the similar to `repo list`, bearing in mind that we use `locate` instead of `fd`. Note that the following `list` options are not supported in `cached_list`:
296
312
297
-
*`fd_opts`, as we don’t use `fd` with `cached_list`,
313
+
*`fd_opts` and `fd_exec_opts`, as we don’t use `fd` with `cached_list`,
298
314
*`search_dirs`, as `locate` does not accept a directory to search in.
0 commit comments