Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Feature Request: Code language preference config #5

Closed
FruityWelsh opened this issue Aug 16, 2020 · 3 comments
Closed

Feature Request: Code language preference config #5

FruityWelsh opened this issue Aug 16, 2020 · 3 comments
Assignees
Milestone

Comments

@FruityWelsh
Copy link
Contributor

It is would be nice to be able to list coding language preference so you are more likly to answers relevant to you when you fail to specify the lang

@davidmezzetti
Copy link
Member

For another project backed by txtai, the query language had a hook to require a term. For example, you could do "+python find in list" and it would only return matches if Python was in the text or a tag.

Is this what you had in mind?

@FruityWelsh
Copy link
Contributor Author

FruityWelsh commented Aug 27, 2020

something like that, basically something to say "How do I do X?" and be able to avoid "in python/javascript/rust/etc" by default. Just an annoyance I've run into with these kind of language queries and seems possibly solvable in cl tool like this.

Maybe options maybe better suited to the task? So something like codequestion --py how do I itterate a list for python answers, and codequestion --rs how do I iterate a list for rust answers.
What I was thinking of first though was something like an env var CODEQUESTION_DEFAULT_LANG which could be set to whatever language you primally code in.

Really like the tool so far by the way :)

Edit:
made the py, rs options example double lined options from single lines to keep them inline with normal command line standards.

@davidmezzetti
Copy link
Member

Added default language to query and shell

@davidmezzetti davidmezzetti self-assigned this Oct 3, 2022
@davidmezzetti davidmezzetti added this to the v1.1.0 milestone Oct 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants