atom / snippets

Atom snippets package
MIT License
205 stars 100 forks source link

Add special variables #173

Closed jacwah closed 7 years ago

jacwah commented 8 years ago

This PR builds on #83. The tests were failing because pathwatcher was failing to install. I merged it with master were the pathwatcher dependency has been removed.

Adds variables like ${/filename} that expand into special values, much like __filename in node. The prefix character is designed to not conflict with normal variable names if/when they are supported.

yniknafs commented 8 years ago

Hey sorry i'm not great with git. Is it possible for me to install this before its "merged"?

jacwah commented 8 years ago

@yniknafs I'm not sure how you'd install it to your regular Atom, maybe someone else can chime in.

Something you can do is to install it as a development package and run Atom in development mode. To do this, first install my fork of snippets as a dev package: apm develop jacwah/snippets. Then find the path APM installed the package in with apm ls. Go to the specified folder and switch to the variables branch with git checkout variables.

Now if you launch Atom in dev mode you should have the new features available! Either run atom --dev or go to View>Developer>Open In Dev Mode... in an open Atom window.

farism commented 8 years ago

Any word on getting this merged?

sbquinlan commented 7 years ago

@nathansobo any chance of getting this merged?

IanVS commented 7 years ago

It's a shame this has been stalled for the past year. I would really love to have this feature, is there anything I could do to help get it across the finish line? It looks like it needs a rebase. It seems like all of the review feedback was addressed by @jacwah.

brigand commented 7 years ago

I tried @jacwah 's instructions, but it gave "Request for package information failed: Not Found". Is there some way to install this branch?

jacwah commented 7 years ago

@brigand This branch is probably very out of date with current Atom since it's nearly two years old.

I'm not using Atom myself anymore. Anyone who is interested, feel free to fork and update this branch if they wish.