onivim/oni

Allow wildcards in bookmarks

Ouverte

#2 562 ouverte le 10 sept. 2018

 (0 commentaire) (1 réaction) (0 personne assignée)TypeScript (297 forks)batch import
Feature-requestgood first issueinsider

Métriques du dépôt

Stars
 (11 247 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Currently, Oni bookmarks are defined as an array like so:

"oni.bookmarks": ["/home/ryan/git/oni", "/home/ryan/git/uni", "/home/ryan/git/dotfiles"...]

What would be nice is some form of wildcard expansion/globbing such that instead a user could do:

"oni.bookmarks": ["/home/ryan/git/*"]

And then add every git project say, or all projects in a folder and so on.

I think this would just be a case of hooking up some logic over in BookmarksSearch.ts to expand the wildcard in the constructor where we grab all bookmarks. There is some discussion of this over in #2554, including a package we could use.

We'd most likely want to restrict this to absolute paths only, so a users home dir isn't used etc.

Guide contributeur