Comments (2)
Implemented as of v0.59.
from visidata.
What I'm planning for this, is to have an editlog that tracks all edits and transforms in such a way that they can be replayed on top of the source sheet (the same one or a similarly structured one with different data). Then you could jump to the editlog sheet (M
for modifications, or T
for transformations? E
is currently 'errorlog' but maybe that should move to ^E
) and:
- change or delete any edits manually
- push a new sheet with current/selected/all edits applied to the same or different source sheet
^S
ave the editlog for later reuse.^R
eload on the source sheet re-applies the editlog
So undo would be a simple command:
command('u', 'editlog.rows.pop(); reload()', 'undo last edit')
or Mgjdq^R
if done manually.
This would also allow for a tight test framework, with source + editlog + golden output being a complete functional test.
A possible problem is that u
ndo might take a long time with a lot of edits or a large dataset. But I feel like that should be dealt with in a different way.
What do you think about this approach?
from visidata.
Related Issues (20)
- [docs] search-and-replace in a column
- [split] Change in behaviour in visidata 3.0 HOT 6
- [dup-selected] The dup-selected command leaves all rows still selected in the resulting sheet HOT 4
- [html] 'ValueError: Invalid IPv6 URL' when loading table with malformed URL HOT 3
- Drop support for Python 3.7
- [threads] HelpSheet thread causes an exception HOT 3
- key column wider than screen makes other columns un-viewable
- [dive-selected] Dive-selected traces on FreqTableSheet HOT 1
- [cosmetic] have the sidebar overlap the command palette HOT 4
- space + command_query + tab + number chooses the wrong entry
- [memory/cpu]. VisiData ends up using lots of CPU and memory in idle state HOT 6
- [cmdlog] when key column values are not unique, row commands refer to incorrect rows HOT 1
- vdsql 'ibis' NameError HOT 4
- [question] cmdlog tests save .rst file as tsv HOT 2
- Have "b to toggle sidebar" show user's shortcut HOT 4
- After replaying a script file, the timer is still present on screen HOT 6
- [dup-selected] Stack tracing related to sorting/diving HOT 3
- Fixed width saver and loader don't round trip. (Columns expand with increasing number of spaces) HOT 6
- vdsql: Don't know how to connect to .ddb (DuckDB) HOT 4
- [] a custom command `diff from previous column` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visidata.