-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qsv edit
- Edit a specific cell with a new value by row and column
#2046
Comments
Another idea in future implementations could be subcommands |
Great idea! For consistency, I would use I agree that for the initial implementation, let's just keep it to a single cell. And then when you want to operate on multiple columns/rows, to have the |
Can you show an example of the what this command would look like using that syntax? |
I think the main thing is to maintain consistency within the qsv suite. That is, for column/row selection - qsv does it with So Specifically, for column selection, support names. For row selection, that it be 0-based like
In that way, by being consistent with WDYT? |
Closing this with the |
Is your feature request related to a problem? Please describe.
Looking for a relatively simple interface to edit a specific cell within a spreadsheet. Editing a specific cell with a new value, maybe called
qsv edit
.Describe the solution you'd like
qsv command that lets a user specify a row and cell to edit with a new value. At a basic level the cell can be replaced with a string and in the future could consider regex, etc.
For example if I want to replace the cell value
comb
withnotebook
as shown in the following image then I'd run a command using the row and column indices:qsv edit items.csv 2 2 "notebook"
Or something similar (
-x
/col
and-y
/row
flags? different input order? index change based on header value or choose 0 vs 1 index? choose column by column name? choose row by a specific column's value? validate cell editing by an optional schema input?)Describe alternatives you've considered
qsv
replace
but that interface may be too much for this specific use case where a user may just want to edit a single cell with a new value (and no regex by default).The text was updated successfully, but these errors were encountered: