Comments (3)
This feature has also been here for a very long time (console.rb#L205), but it is currently not exposed in the UI because it needs to be rethought:
- Is it really useful, do people actually use it? (from you request, yes)
- Architecture-wise, it would need dependencies to classes that it should not have. I would prefer to swap it out into an extension ("feature class") instead of having it in "console.rb".
- How to represent the operation in the undo menu with a distinguishable, meaningful name?
from sketchup-console-plus.
It is indeed useful. Suppose I run a code that does, say, 1000 copies of a group and put them in a grid. If I then realise that the gap between them is just too small, I need to undo the operations, adjust the parameters and then rerun the code. But undoing 2000 operations is very tedious, if not unfeasible.
Regarding the representation of the operation, I don't have the perfect answer, but maybe we don't need to find a detailed representation; maybe something like “Undo Console+ code run” or “Undo Console+ operation” is good enough.
from sketchup-console-plus.
An issue in the previous version was that someone using the console is likely to emit many commands (some of which even don't modify the model). When navigating the undo stack backwards they should be distinguishable.
I had solved it by adding a counter in the operation name, which was not very meaningful and not elegant in the code.
It is a feature and not a core responsibility of the console, so I need to figure out how to best implement it using the feature system and keep the core console class as lean as possible (to avoid bloat).
from sketchup-console-plus.
Related Issues (20)
- Extension using `.singleton_class`? HOT 9
- Multiple warnings when on a Portuguese version HOT 7
- SketchUp Console+ closes when Geolocating HOT 1
- Error when transfering strings with non-UTF-8 compatible bytes HOT 2
- Tutorials HOT 3
- Warning upon launching Console+ 3.1.3 HOT 5
- Text in some console window is white on pale grey - almost ureadable HOT 1
- Points visualized as vectors? HOT 2
- Idea: In-console visualizations HOT 3
- undefined local variable or method `cp' HOT 1
- Draw 3d normals using view.draw? HOT 2
- super laggy some times
- Promise.then method conflicts with standard ruby in Sketchup 2021
- Documentation search not working?
- Console is lagging even after uninstalling console-plus
- Load error, ruby 3
- Display file paths in error trace as a links
- Sketchup2022(Get a reference to an entity in the model by picking it with the pointer.)not work HOT 1
- ReferenceError: ace is not defined HOT 1
- Intro to Sketchup tutorial fails on first step? 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 sketchup-console-plus.