Allow searching in `~/.config/`
See original GitHub issueThe more people who use cosmiconfig, the more dot files will be littered in the home dir.
Lots of other modules place their config in ~/.config
dir, mine looks like this:
Autodesk
Last.fm
QCAD
deluge
git
hub
karabiner
menus
sinopia
xbuild
NuGet
configstore
gtk-2.0
inkscape
robomongo
stetic
yarn
Would be cool…
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Enable content to be searchable - Microsoft Support
Click Site Actions, and then click Site Settings. Under Site Administration, click Search and offline availability. In the Indexing Site Contentsection, under ...
Read more >Searchable Configuration - Android Developers
This page describes the search configuration file in terms of its syntax and usage. For more information about how to implement search features...
Read more >5 ways to configure how the Windows 10 Search works
Another way to get to the Search settings is to open the Settings app (keyboard shortcut Windows + I) and then click or...
Read more >Control Search Options In Windows 11 Using Policies
Allow search and Cortana to search cloud sources like OneDrive and SharePoint. This policy allows corporate administrators to control whether ...
Read more >Search settings filter and group global search results by table
Global search filters and groups matching results by table. You can configure search sources (in Next Experience UI) or search groups to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
See https://github.com/davidtheclark/cosmiconfig/issues/50#issuecomment-269242018 for my thoughts on this.
That said, I think I’m open to adding an option that specifies alternative directories to search. For your case, something like
searchIn: ['~/.config']
.searchIn
could accept an array of paths. This way the inevitable request for a different directory, like!/.conf
, can still be addressed.Open to a PR.
raise another issue @masaeedu so we don’t notify everyone on this thread.
and you probably don’t want to use searchPlaces for your use-case because that option is intended for listing files that should be attempted when traversing up the directories. You should just try loading it directly