Add default destination configuration when ommited
See original GitHub issueI’m using njt most of the time just to jump to the repository. And I have always to type
njt react g
Would be good to have some configuration in web, that you can set for example default destinatio to g
and jsut write
njt react
Possible ways to implement it
- manually set a default destination
- jump to last used destination
- use most used destination
ps: I might start a PR soon.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Resolve the "Unable to validate the following destination ...
How do I avoid the "Unable to validate the following destination configurations" error with Lambda event notifications in CloudFormation?
Read more >Electronic reporting (ER) destinations - Finance & Operations
By default, configured destinations are applied only when you run an ER format version that has a status of either Completed or Shared....
Read more >config | npm Docs
Run npm config ls -l to see a set of configuration parameters that are internal to npm, and are defaults if nothing else...
Read more >Postfix Configuration Parameters
The default location of the Postfix main.cf and master.cf configuration files. ... the domain name in $myorigin or $mydomain, and adding missing headers....
Read more >Pitfalls and Common Mistakes | NGINX
This page outlines some of the NGINX configuration issues that we see ... server { server_name www.example.com; location / { root /var/www/nginx-default/; ...
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
easy peasy lemon squeezy with a bookmarklet 😃
We can add this to pro tips, when someone wants to extend njt functionality 🙂
Put this in “Query URL” of the search engine
https://gist.github.com/iamandrewluca/4184e0700e7c50a81e9c15daa63684cf
ps: now I realise that search engine + bookmarklets open a new level of scripting in the browser you can implement the whole njt in a bookmarklet 😄
Nice!
Here’s one more thing we can do to the web UI in theory. Imagine that the query is persisted in the local storage, so when the page reloads, you see what you’ve typed in the last time. A single click on the input selects everything, but a double-click selects only a given word. So this scenario becomes possible:
Double-click does not work for multi-word package names like
react-query
or@types/react
out of box, but it might be possible to override the default event handler to fix that.