Ace editor - SublimeText package control equivalent? - sublimetext

I just started using Cloud9 with Ace editor after a long time usage of the wonderful Sublime text editor.
Is there something like PackageControl for Cloud9/Ace?
And if not, is there any way to install packages individually?
I really miss having snippets like yard documentation for ruby methods.
Thank's

The extension manager for cloud9 is still in alpha http://cloud9-sdk.readme.io/v0.1/docs/getting-started-with-cloud9-plugins so there are no installable plugins yet.
However if there is a sublime plugin with snippets it should be easy to modify it to work with cloud9, you should create an issue on their sdk repository https://github.com/c9/core or comment in https://github.com/c9/core/issues/25

You could use a mix of sshfs, your own terminal, and an EC2 instance that sleeps on idle to create your own "Cloud9" functionality by just running a single script that starts the server if needed, mounts the filesytem, and puts you into an ssh session all at once.
My recent blog post outlines step-by-step instructions:
http://zulrang.com/2018/03/cloud9-with-local-editor-and-terminal/

Related

How to spellcheck R comments with RStudio on R source files?

How to conveniently spellcheck R comments with RStudio on R source files?
I am writing a package and I want it to look professional. Thanks to Oxygen, all package's documentation lives in R comments, which by default is excluded from spell checking. So even if spell checking functionality does exist in RStudio, I don't know how to use it.
The spelling package is great for this: https://github.com/ropensci/spelling.
devtools::install_github("ropensci/spelling")
spelling::spell_check_package() # path to package Project
RStudio 1.3 will include this feature; and it is possible to already try it out.
Well this is moot now that Rstudio has spellcheck for spin documents!
So, I write a lot of my lessons and examples for teaching using spin rather than markdown. It just makes for an easier flow. The problem is that there is no spell-check in a spin document, much like your package documentation example.
What I have resorted to is using the terminal then running a command line spellchecker on the document.
I'm on linux so here is my workflow.
save the file I am working let's say example_lesson.R (typos and all)
open the terminal pane of Rstudio and cd to the right folder
make sure the file example_lesson.R is there
run the spell-checker
> aspell check example_lesson.R
Once I'm done with aspell, I go back to the editor window in Rstudio and it updates what I am working on with the spell-checked version. I spin it and I am done.
I've only tested with small examples, but it has worked thus far. Your mileage may vary. Hope that helps.

How to enable collaboration on local Cloud9 install?

Me and a friend are collaborating on a project using a Cloud9 SSH project, but we're not happy with the latency. We have tried installing Cloud9 directly on the server, but the collaboration option disappeared.
Is collaboration possible to enable on a custom Cloud9 installation? If so, how?
I imagine it's a plugin with some configuration required, so it's left out by default. I can't find anything when Googling though.
Edit: I found the collab plugin repo: https://github.com/c9/c9.ide.collab
Doesn't have a README file though, so I'm still just as stuck.
You can add the --collab flag while launching the server.js
Example:
nodejs server.js --collab

Eclipse keymap in Cloud 9 IDE (ide.c9.io), is it possible?

Is there a way to use Eclipse's keymap inside Cloud9 IDE (c9.io) ? I already know many shortcuts in Eclipse so I would like to use them in Cloud9.
Cloud9 supports custom keymaps. You can find the key map editor in the preferences. See: http://screencast.com/t/yICZYx9gDtUm. Afaik there is no eclipse keymap available yet. If you create one, it would be awesome to post it somewhere for others to find it as well.
Just came across a blog post regarding this: somebody already made a start, so I guess you can use this and extend it. http://demostene.ro/2014/11/eclipse-keymap-for-cloud9-ide-c9-io.html
If you add several keybindings we might even build it in, so everybody can enjoy the Eclipse keybinding.

Code completion for MacRuby/PyObjC/RubyMotion

One of Xcode's most powerful features is it's Intellisense completion, which brings up a list of potential candidates as you type the name of a Foundation/Cocoa/UIKit API. I am very interested in MacRuby, PyObjC, or the more recent RubyMotion, however without code completion these tools seem like more trouble than they're worth.
Is there any code completion feature (not necessarily Intellisense) for any of the three technologies above, for any text editor (but preferably for Vim or Xcode)? Bonus points for an IDE solution which allows for building and running the application in a single command (like Xcode's Run button).
It's my understanding that Xcode 4 dropped support for MacRuby/PyObjC, so Intellisense is no longer available. Should I install Xcode 3 alongside Xcode 4 for the code completion? How is everyone else doing it (surely you guys use some form of code completion -- I can't believe anyone can remember all the classes in Foundation/Cocoa/UIKit)?
RubyMotion comes with vi ctag support. Run rake ctags to create them.
FWIW, there is a Code completion package for Sublime Text 2, which can also be installed via the package manager of the Sublime text.
And it seems to work rather well for me.
Yes, you can give yourself Vim code completion by running $ rake ctags in the root directory of your RubyMotion app. To take that a step further, use a shell script to generate ctags automatically every time you create a new RubyMotion app. This article shows how to build such a script:
http://rayhightower.com/blog/2013/02/12/automatic-ctags-with-rubymotion-and-vim/

mirroring Terminal with gets Ruby

There may be a good gem out there for this, but I've run out of Google.
I'm creating a command line interface with a basic gets each inputed command. I also want to have basic terminal features like hitting the up arrow and having it cycle the history. Are there gems which mimic this or is there a simple way to implement it?
Not to self-promote, but my friend and I wrote a project that is mostly functional with this goal. Check it out here: https://github.com/jamez01/arsh
It's also a packaged gem that you can install.
Some time ago I did a "smart telnet" using "Readline". I even enabled autocompletion.
It has all the cool features like up down arrow, autocompletion, ...
Take a look at it

Resources