daablogs.blogg.se

Textmate ruby windows
Textmate ruby windows








I have this hooked up to Ctrl-space, and Shift-Ctrl-space adds in a newline and tab indent.

  • Make the word I just typed into an opened-and-closed HTML tag, with the cursor in between.
  • When I’m cleaning up generated HTML, I remove lots of code (, , class="foo"), so I can see the parts I care about.
  • Delete all copies of whatever text is selected.
  • Great for copying code and data out of MS Office products.
  • Replacing “smart quotes” and other funny characters with their plain-text equivalents.
  • js files from my Google Pages…I’ll put up more when I have a minute): Here are some tasks I’ve automated so far (you can get some of the. None of this is stopping me from rolling up my sleeves yet. Someone please tell me I’m missing something here. You have to start from scratch with each script. I think this is a pretty significant problem.

    textmate ruby windows

    How about a nice, clean interface to WSH’s hairy objects? I’d love to write one! (Well, I’d love to have one, so I’d be willing to write it.) But you couldn’t use it, if I did. No RedCloth for blog posting, no REXML for auto-formatting XML, no Hpricot for digging through generated HTML. This means no library re-use, no utility functions. Nothing like Ruby’s require, Java’s import, C#’s using. Since it’s built on WSH, you don’t have any means of including other files. Or Haskell, or Lua, which makes it easier for me to experiment with them now. Actually, since WSH is language-agnostic, you can write your macros in any language with a WSH interface.

    textmate ruby windows

    The macros are run through the Windows Script Host (WSH), which is a little scary, but it means that you can write your macros in JavaScript. It has programmable macros, with a decent set of variables that give you access to the buffers, editors, and all menu items. It has a 30-day trial, and it’s $40 to buy. I found EmEditor, which gets me pretty close. It doesn’t have to be Ruby, but that’d be nice.

    textmate ruby windows

    This would let me automate probably 99% of the repeatable things I do. If I could send a buffer’s contents through some code, and replace the buffer with the script’s output, that’d be something. Really, I want something like Ruby’s text-mashing power, built into my editor. I want to insert custom code templates, based on keywords I type. I want to take a list of values, and generate SQL from it. I spend lots of time working with text, and I want an editor that lets me write code to process my text. Based on screencasts I’ve seen, I’d say I want something like TextMate, but I’ve never actually used it, so that’s just a guess.

    textmate ruby windows

    I know there’s Emacs and Vim, but I want something that looks good, and is easy to learn. Windows lacks a decent programmable text editor.










    Textmate ruby windows