Generate uuid columns #1564
-
Hello, I'm a newbie of visidata - and in general not a very expert Python developer - but I'm trying to define a command in visidata to generate I was able to generate uuids using this function in my
the problem is though that I don't want the cell to be recalculated everytime I move my cursor on the sheet. I've also tested the Any help would be fantastic :-) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @kerruba-milkman, that's an interesting question. One thing you could do is "freeze" (with Alternatively, you could follow the
(The Now you can create a blank column with |
Beta Was this translation helpful? Give feedback.
Hey @kerruba-milkman, that's an interesting question. One thing you could do is "freeze" (with
'
) the column after creating it, and then hide the original column and use the new frozen column for everything. You could also incorporate this into your command by usingaddColumnAtCursor(StaticColumn(uuidColumn(cursorCol)))
as the execstr.Alternatively, you could follow the
setcol-
command pattern rather than theaddcol-
pattern, since you want them to be set once and never recalculated. For instance:(The
@…