Coder Social home page Coder Social logo

Package support about atom-stata-exec HOT 9 CLOSED

nickeubank avatar nickeubank commented on July 2, 2024
Package support

from atom-stata-exec.

Comments (9)

nickeubank avatar nickeubank commented on July 2, 2024

Invited you as collaborator so you can do as you see fit here!

from atom-stata-exec.

kylebarron avatar kylebarron commented on July 2, 2024

I have code working to do line-by-line execution through Applescript. I haven't added full do-file support yet but that should be really easy and quick to do.

I think I'm more likely to try to create a repo on my Github account. Once I add the do-file support it should be a superset of your code.

Also, I discovered Stata's automation API yesterday and have some ideas I want to try out: for example, it should be entirely possible to create an Autocomplete provider that uses the current variable names and macro names in Stata.

from atom-stata-exec.

nickeubank avatar nickeubank commented on July 2, 2024

GREAT! Way to contribute to the public goods!

from atom-stata-exec.

kylebarron avatar kylebarron commented on July 2, 2024

I'm not sure how easy it would be to create something like that, but I'd be interested in trying.

from atom-stata-exec.

kylebarron avatar kylebarron commented on July 2, 2024

I got all of the package ported to Stata. Test it out! It works for me on my computer. Important bits from the README:

Usage

  • cmd-enter: send selection or current line to Stata.
  • shift-cmd-d: send entire file to Stata. (File must be saved first. This runs do "/path/to/current/file")
  • shift-alt-p: send the previous command.
  • shift-cmd-c: change Stata's working directory to that of current file.
  • shift-cmd-p: send paragraph under current cursor. A paragraph is a region enclosed by whitespace.
  • shift-cmd-r: send program definition under current cursor. For example, all the lines in the below snippet would be sent to Stata:
    program define myProgram
        // program contents
    end

Configuration

  • Which App
    • Select StataIC, StataSE, or StataMP, depending on which version of Stata you have.
  • Advance Position
    • If checked, move cursor to the next line/paragraph after running the current line/paragraph.
  • Focus Window
    • If checked, bring the Stata window to focus when sending code.
    • Otherwise, code runs in the background and the screen remains focused on Atom.
  • Notifications
    • If checked, a pop-up notification will appear when a paragraph or function is not identified.
  • Skip Comments
    • If this and Advance Position are checked, the after running a line, the cursor will move to the next uncommented line.

from atom-stata-exec.

nickeubank avatar nickeubank commented on July 2, 2024

wow, amazing. I'm on a deadline right at the moment, but will demo it soon! Thanks so much for the great work! (also, you clearly have a better grip on Atom packages than me at this point, so if you're in a hurry and would like to just release, please feel free. :) )

from atom-stata-exec.

kylebarron avatar kylebarron commented on July 2, 2024

I'm happy to release it, but unless you want to keep your package listed on Atom's package manager, I'd be happy to release this named as stata-exec so that people who have previously downloaded your package are upgraded automatically. If you want that, I think you'd have to do apm unpublish stata-exec before I can publish this as the same name.

from atom-stata-exec.

nickeubank avatar nickeubank commented on July 2, 2024

done! let me know if you have issues.

screen shot 2017-11-13 at 12 56 42 pm

from atom-stata-exec.

kylebarron avatar kylebarron commented on July 2, 2024

https://atom.io/packages/stata-exec
It's online! thanks!

from atom-stata-exec.

Related Issues (1)

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.