Giter Club home page Giter Club logo

Comments (3)

Aerilius avatar Aerilius commented on June 3, 2024

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.

gustavo-hms avatar gustavo-hms commented on June 3, 2024

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.

Aerilius avatar Aerilius commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.