saulpw / visidata

A terminal spreadsheet multitool for discovering and arranging data
http://visidata.org
GNU General Public License v3.0
7.96k stars 283 forks source link

How do I transform column values in place with g* on v3.x? #2526

Closed reagle closed 2 months ago

reagle commented 2 months ago

Perhaps this is related to #2524, but g* is not working for me either.

I'm following the directions in the docs "[How do I substitute text in my column]" (note the location to benchmarks.csv is broken; this heading is in brackets, and there is no section identifier).

https://asciinema.org/a/SJVLbVEruc5GViyUXwWCZJAU4

anjakefala commented 2 months ago

Ah! We should update the documentation for how to use g*.

Now, instead of using the /, you tab between search and replace. Beside search, you write the pattern to look for, and beside replace the string to replace it with.

Peek 2024-09-21 22-12

reagle commented 2 months ago

Thank you, I was never able to get the substitution commands with / to work and now I know why. BTW: The documentation and manpage still have the slash.

anjakefala commented 2 months ago

This has now been documented in the new RegexGuide: https://github.com/saulpw/visidata/blob/develop/visidata/guides/RegexGuide.md#examples