question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow searching in `~/.config/`

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
davidtheclarkcommented, Jul 21, 2017

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.

0reactions
olsonpmcommented, Mar 27, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found