project-gemmi / gemmi

macromolecular crystallography library and utilities
https://project-gemmi.github.io/
Mozilla Public License 2.0
231 stars 46 forks source link

auto completion for gemmi grep #295

Closed frmupe closed 9 months ago

frmupe commented 9 months ago

For gemmi grep it would be super nice to have automatic completion for the tags... (something like bash autocompletion)

I have to look at the mmcif dictionary every time I use gemmi grep

:P

wojdyr commented 9 months ago

I'd be nice, but I'm afraid I don't see any (reasonably simple) way to implement it.

You can use glob patterns if it helps:

gemmi grep -t _*factor* 5cvz.cif