project-gemmi / gemmi

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

auto completion for gemmi grep #295

Closed frmupe closed 8 months ago

frmupe commented 8 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 8 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