-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening file in Light Table from command line? #87
Comments
We should update the sections to refer to how to move around to files within Light Table. |
+1 to that, as depending on the Light Table version, you may have to set up the https://github.com/LightTable/LightTable/blob/master/platform/mac/light The Light Table mailing seemed to imply that |
FWIW, on Mac OS X, the following "just works":
If LightTable is not open, it will open it and load the file. If it is open, it will load the file. |
An update, for anyone who wants to work on this issue: Probably, it would make sense to add information about one of the two above commands to the installfest instructions--maybe in the "Troubleshooting" section mentioned in #98 ? Also, adding the information for all of the operating systems linked to here would be helpful, if possible. |
I use Light Table on OS X, and the following works great for opening files and folders from the command line:
You could easily add an alias for this so that you can open files by just typing Apparently for the Linux version of Light Table, you can already open files by typing I'd be happy to make a PR to add a step of aliasing |
Yes, that would be helpful! Though, we'd need to update the Linux and Windows docs simultaneously, as well?
I should note that we generally avoid opening things from the command line in the actual curriculum, because people in many of the workshops aren't familiar with the command line, and that's kind-of a separate beast? This step would be more for intermediate-level folks, as well as optional. |
Ah, I see! That makes sense. So maybe it's best left as a minor note in the setup instructions, and note that it's optional. Linux should be good-to-go, I think. I haven't verified this, but it appears that when you install Light Table on a Linux machine, it gives you an executable script called I didn't think about Windows... I have no idea how that works! From what I can tell, there is a LightTable.exe that you double click to open it, but I'm not really familiar with using Cygwin, PowerShell, etc., so not sure how a typical Windows developer would go about opening files from the command line. |
Bah, yeah... I don't actually have access to a Windows machine, soooooo ¯_(ツ)_/¯ Though, you could totally still submit the Linux + OS X PR! And we could leave this issue open in the meantime? That or create a new issue that's Windows-specific. |
PR submitted! I vote that we close this issue and we can always create a new issue if the question ever comes up in the future about how to open files in LT from the command line in a particular Windows shell. Also, here's your other arm, lol: \ |
@daveyarwood did you try the command I suggested earlier in this thread:
That seems simpler than using |
@seancorfield when I try that command, the file does open up in LightTable, however I also see this error message in the terminal:
It also blocks the terminal until I hit Ctrl-C. |
Ah, good to know. OK, sounds like |
The pull request was merged and the updated document is, https://github.com/ClojureBridge/curriculum/blob/gh-pages/outline/setup_osx.md |
Hi again -- I just realized I made a dumb mistake and used |
A few times at the SF workshop, the curriculum/slides/TAs guided students to
cd
into a certain directory--leading to the natural question, "How do I open this file/directory in Light Table from the command line?"We should either have the Light Table equivalent of
subl
added to the installfest, or rewrite the sections that refer tocd
ing into directories in the curriculum.The text was updated successfully, but these errors were encountered: