-
Hey there! I'm new to VisiData, but absolutely loving it, thank you so much for creating it, I've signed up to Patreon. :) I've been looking through the docs and doing lots of searches but I can't see how to create a column where the value for a cell is selected from a constrained list of values. Is this possible? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @DangarStu, welcome! There's a But otherwise no, enums don't really exist in VisiData. What exactly would you want it to do? It sounds like you're using VisiData for data entry; do you want to get an error if you try to input a bad value? or auto-complete when you enter the first letter of a value? |
Beta Was this translation helpful? Give feedback.
Hey @DangarStu, welcome! There's a
setcol-format-enum
which you can use to set mapping of values to more readable representation; for example if a field has1
meaning "red" and2
meaning "blue" you usesetcol-format-enum
with1=red 2=blue
and it would show the mapped value instead.But otherwise no, enums don't really exist in VisiData. What exactly would you want it to do? It sounds like you're using VisiData for data entry; do you want to get an error if you try to input a bad value? or auto-complete when you enter the first letter of a value?