Git Product home page Git Product logo

abstractify's People

Contributors

tsostarics avatar

Watchers

 avatar

abstractify's Issues

Add functionality for scopes other than global

For example, if you have a function that has become quite large, you could break it up into multiple smaller helper functions. However, the current implementation only looks in the global environment to see if an object with a given name exists. One could consider two different approaches:

  1. A pair of functions, the first has the user highlight a large code block (ie the whole function definition) to establish which symbols are available, and a second that has the user highlight a smaller code block within it (ie the snippet they want to turn into a new function definition).
  2. A function that searches the preceding lines until it finds a function definition. This has the potential to take a while if there are a lot of lines though, which to the user would make it seem like their session momentarily froze.

Add unit tests

The functions are currently set up to allow for writing unit tests, I just need to do it later at some point

manage `reformatCode` call to not run with qmd files

Running the addin with highlighted code in a qmd file triggers an error popup due to the call to reformatCode. Ideally this would be avoided by detecting what type of file the currently open file is, but if the isn't saved (hence having a filepath associated with it) then I'm not sure if this is easy to establish.

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.