mvn-search icon indicating copy to clipboard operation
mvn-search copied to clipboard

exit when q is pressed

Open jorgheymans opened this issue 3 years ago • 1 comments

Hi, great tool thanks for making this !

When doing a search, it would be nice if i could exit directly from the search overview, without having to go to a detail screen to then select quit. Sometimes i'm just searching for the latest version of something, so from below screen i'ld like to press q already and exit. I am doing CTRL-C currently and that works as well though, but q would be more intuitive perhaps ?

$ mvn-search spring-security-core
? coordinates: 
  org.springframework.security:spring-security-core:5.4.2 
❯ ch.rasc:wamp2spring-security-core:2.0.3 
  com.webauthn4j:webauthn4j-spring-security-core:0.7.0.RELEASE 
  io.quarkus:quarkus-spring-security-core-api:5.3.Final 
  net.osgiliath.wrappers:net.osgiliath.wrapper.spring-security-core:0.3.7 
  com.stormpath.spring.security:stormpath-spring-security-core:0.3.0 
  org.springframework.security:spring-security-core-tiger:2.0.8.RELEASE 
  org.apache.servicemix.bundles:org.apache.servicemix.bundles.spring-security-core:5.4.2_1 

jorgheymans avatar Jan 29 '21 12:01 jorgheymans

Hello @jorgheymans , thanks for your kind words. The library uses inquirer.js , I will look after if it supports special key handling while reading a response.

erosb avatar Jan 29 '21 12:01 erosb