Re: CoffeeScript BBEdit package
On Friday, March 14, 2014 7:25:48 PM UTC-4, ascarter wrote: pmuellr (https://gist.github.com/pmuellr/1004413) and evandavis ( https://gist.github.com/evandavis/3219871). The function/method names seem to be working but I've been unable to come up with the right regex for capturing the full function block so folding doesn't work yet. Andrew, I've struggled with this myself for a while. The best thing I came up with is writing tests for the various Coffeescript behaviors around folding, then write a regex to pass the tests. I've created a gist of my initial work - mostly created on Pythonista on my iPad, so excuse the formatting. Gist: (https://gist.github.com/rwilcox/9599091). I hope it helps in some way. Later, _Ryan Wilcox -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com.
Re: Close open file by name window on 'open'
In the meanwhile it's easy to Applescript this or hook Keymando up to automatically close the window: http://bbedit-hints.tumblr.com/post/26979437023/closing-the-find-file-by-name-window Hope this helps _Ryan Wilcox On Thursday, August 2, 2012 9:19:04 AM UTC-4, Evan wrote: Bump! Would love to have this window close automatically when I open a file. On Tuesday, June 26, 2012 1:40:30 PM UTC-4, Oliver Taylor wrote: Is there a way to have the open file by name window close when I open something? I love having fast access to the files but don't want that window to remain open all the time. -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: indicating markup type
On Wednesday, July 18, 2012 12:04:46 AM UTC-4, Bucky Junior wrote: As little as a line of text suggesting what it is to be used for will work. The template should be language selected with the drop-down in the lower left of the editing window as noted by Mr. Woolsey and Ms. Mains. Save each language template you want to use in the ~/Application Support/BBEdit/Stationery folder. Remember to check the Save as Stationery box in the Save dialog. I fell out of the habit of using Stationary, but I might have to start using them again. I would be careful though - it seems like some settings aren't saved when you save a document as a stationary. (For example, Show Invisibles). What I would do, if these settings are important to you is to use Edit - Insert - Emacs Variable Block and save the stationary with the variable block. This is especially useful if you work in a team of people and want to enforce consistent line endings across you team, as most editors respect those settings. (Maybe you're in a white space sensitive language where that matters, or you're one of those people that care) I talk about using Emacs Variables in an article on the BBEdit hints blog: http://bbedit-hints.tumblr.com/post/15398636735/using-emacs-local-variables-to-force-consistant Hope this helps! _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: change default editor to bbedit
On Thursday, June 14, 2012 12:39:24 AM UTC-4, Grail wrote: Just a note about using BBEdit for editing commit messages: I use '/usr/local/bin/bbedit --wait --resume' for that purpose, mainly to allow the commit message to be written before returning control to the invoking process. Grail raises an excellent point: by default the bbedit command will turn immediately. This causes some confusion with some command line tools, which expect the editor command to quit only after the user has saved and quit their writing. In English, most command line tools expect to fire off the editor, and expect to hear back from the user when they are done editing. Instead, what the bbedit command does (by default) is to open the file in BBEdit then return immediately. So, the bbedit tool is written to behave like: Ok, I have displayed the file to the user, my job is done. Where as most command line tools expect the editor's job to be done when the user saves + closes the document in question. Here's the line from my own unix config: export EDITOR=~/bin/bb My ~/bin/bb script looks like this: #!/bin/sh # Information for this script comes from: # http://superuser.com/questions/383124/knowing-user-is-sshing-in-from-a-shell-script if [[ $SSH_CONNECTION ]] then vim $@ else bbedit -w $@ fi This script says, If the user is SSHing in right now, use vim as the editor. Else use BBEdit and wait around until the user closes the document in question. Why the check about SSH connections? I sometimes SSH into my main OS X machine using a Linux netbook. If I need to edit a file I don't want to launch BBEdit because I have no way of editing the text then because I'm not in front of OS X right now. Hope this helps, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BBEdit Editor Actions Package
On Mar 23, 7:51 pm, Watts Martin lay...@gmail.com wrote: I'd mentioned this a few weeks ago but finally got around to organizing this a little. It's a set of scripts that are mostly cobbled together from other places that add some useful little functional bits to BBEdit: [snip] The web page describes them a bit more and also gives the original sources, since most of these scripts aren't mine, although I've hacked on several of them to either make them compatible with BBEdit 10 or just work the way I think they should. http://www.ranea.org/bbedit_editoractions.html Watts, The Editor Actions package is pretty slick :) Can you put this (and your Markdown Package) up on Github? I have some modifications I want to make to each and also want to make sure I'm running the latest :) Later, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Syntax aware auto-indent?
On Feb 18, 2:32 am, Watts Martin lay...@gmail.com wrote: At any rate, in BBEdit I have a somewhat more advanced package I put together that's a collection of Applescripts which includes a smart return function that's not only a syntax-aware indent but does some of the auto-pairing that TextMate refugees miss. I'll try to get it cleaned up and online if people are interested. (I confess that against my own advice of last year I've lately been trying out a competing editor; I'm waiting for Take Control of BBEdit to come out and bring me back to the fold.) Watts, I didn't see this last paragraph until now. I have a Source BBEdit Package which might be a good place for those scripts. (https:// github.com/rwilcox/Source.bbpackage) I look forward to seeing your scripts, no matter how they end up going public. Later, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: color in codeless language modules
On Jan 27, 2:24 pm, Oliver Taylor mrolivertay...@gmail.com wrote: It seems to be that only strings and functions can be defined my regex in codeless language modules. Is that right? Keywords (example: if, for, and switch) can also be colored, and predefined names (example: functions from your language's standard library). To be fair, yes, codeless language modules/syntax coloring are sometimes disappointing, especially if you're coming from something like TextMate. Hope this helps, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Ctags on default python installation
On Dec 27, 1:31 pm, consiglieri apelsi...@gmail.com wrote: Can anyone give me a helping hand or tip with regards to this? What i tried was the following sudo bbedit --maketags /Developer/SDKs/MacOSX10.7.sdk/System/Library/ Frameworks/Python.framework/Versions/2.7/ I tried this, and it ended up creating a tags folder in /Developer/ SDKs/MacOSX10.7.sdk/System/Library/ Frameworks/Python.framework/Versions/2.7/ (Perhaps you were expecting it to be created in your current directory?) Disadvantage of generating this file? It's actually a ctags file for the Python C API (what's in that folder). That's not exactly what I expected (I expected a listing of the items in the Python standard library...) I think you actually want to run bbedit --maketags in the /System/ Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 directory :) PS: What I've done in the past to generate a Python ctags file is to download Django's code (the Python framework I'm using for this client), and run ctags in that directory. It's not the whole standard library, but it was good enough for my purposes. (And a lot smaller than generating the entire Python Standard Library, which generated a 3.1 MB ctags file). Hope this helps, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
[ANN] BBEdit Packages for Git and HTML
Howdy list folk, The other day I released a BBEdit package for using Git with BBEdit. (https://github.com/rwilcox/git.bbpackage). Those of you who don't subscribe to @bbedit_hints on Twitter might have missed the announcement, but that's OK.. ... because I have something of general interest to the community: a BBEdit package to help you edit HTML in BBEdit. (https://github.com/ rwilcox/html.bbpackage) But Ryan, BBEdit already has a bunch of tools for editing HTML in BBEdit? There's that whole Markup menu!?! Yes, absolutely. BBEdit has great tools built-in, but as a community we have some really good tools too. For example, the HTML bbpackage includes the JSLint syntax checking Applescript that everyone uses. It also includes some tools I've written myself. For example, do you have a bunch of JSON, and can't read it because it's been minified? I have a text filter for that... There are a few other tools in the package right now, but I *know* some of you guys have been writing HTML in BBEdit since '95. I would happily welcome any contribution to this package! Thank you all for your time, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BBEdit Packages for Git and HTML
On Nov 10, 2:55 pm, Phil Dobbin phildob...@gmail.com wrote: On 10/11/11 19:07, Ryan Wilcox ryanwil...@gmail.com wrote: The other day I released a BBEdit package for using Git with BBEdit. (https://github.com/rwilcox/git.bbpackage). The git.bbpackage URL returns a 404. Ahh, perhaps your email client was breaking the URL in the wrong spot. Try: http://github.com/rwilcox/git.bbpackage (Thanks to Lorin Rivers for the tip!) MacPorts can't find `port jsl` That's annoying. I think I need to modify that script some to look a bunch of places for jsl - for example, I know the current version of the script leaves the homebrew people out in the cold. Or Iwould certainly except a patch that did the same. Hope this helps, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
ANN: BBEdit (Rails) Workflow Screencast #2
Great news everyone, I've posted another BBEdit (Rails) Workflow screencast to Youtube: http://www.youtube.com/watch?v=G4HPukpaISk Like the last one, it's less Rails specific and more I'm doing development on BBEdit, from TextMate, now how do I make myself productive with BBEdit?... with common Rails problems in the background. (A common Rails problem being, for example, I have so. many. files. open... where did that one I want get to?!) I'm also making this an approximately weekly thing. Given the new, weekly, bent, I'm going to avoid spamming this list with further announcement emails like this one. As a heads up: the next 3 or so screencasts will be about some very Rails specific tools I've developed for BBEdit, but then will lighten back up into general BBEdit topics. If you're interested in these screencasts, subscribe to my Youtube Channel (http://www.youtube.com/user/BrotherAias) (RSS feed available) to keep informed of the latest screencasts. You could also follow me (in my BBEdit Hints persona) on twitter (http://www.twitter.com/bbedit_hints) where I tweet hints (about 1-2 a day), and I'll (of course) tweet when I have released a new screencast on there. I might set up an announcement mailing list or something if there's demand. So if you don't like Twitter and never go to Youtube, but are interested, let me know off list and I'll think of something :) (You're certainly welcome to follow me personally, @rwilcox, mostly on Rails development, gripes, and how sometimes my world devolves into an episode from M*A*S*H. But @bbedit_hints is actually on topic for this list :) ) Later, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Recreating CTags via AppleScript
On Sep 10, 11:11 pm, stirrell stirrel...@gmail.com wrote: I was wondering if someone had an AppleScript to recreate a project's CTags? The examples I have found seem to be out of date now for BBEdit 10. I essentially want an AppleScript that will just run the command: bbedit --maketags in the project's root directory. Does anyone have an example? I do. https://gist.github.com/1209666 I wish it were better, I believe it requires you to add the project directory, instead of just adding all the items in your project. So, if you have a project named foo_proj with items app, tests, scripts, public, your BBEdit project structure should look like: foo_proj: app tests scripts public NOT like app tests scripts public (I'm up for improvements - I'd prefer the flat structure myself, I think...) Hope this helps, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Ryan's BBEdit Rails Workflow Screencast #1
Hello everyone, I've posted a screencast of my workflow doing Rails development in BBEdit. It's a few little things I've discovered, tweaks from the base workflow, and includes some tricks to make Rails and TextMate developers more at home in BBEdit 10. I've spent the last 3 years using TextMate as my editor, and I used the features of TextMate and the bundles pretty hard... and I've needed to go to some work to replicate that flow with BBEdit. In this first screencast I show off a few very basic tricks to make Rails development in BBEdit better, showing you tricks to make your BBEdit workflow *evolutionarily* better. I plan on doing a few more screencasts on this topic, and showing more and more *revolutionary* tools for BBEdit and Rails development. Screencast: http://www.youtube.com/watch? v=_D90wofp6UQfeature=youtube_gdata_player Hope this helps someone out there, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
[ANN] BBEdit Clippings Clippings
Hello all, Lately I've been creating a lot of clippings. Today I got frustrated with how hard[1] clippings are to create, and decided I was going to do something about it. I present the BBEdit Clippings set for creating BBEdit Clippings: http://github.com/rwilcox/bbedit_clippings_clippings Never look up the clippings placeholder / substitution table in the BBEdit User Guide *again*! Let a thousand Clipping sets bloom, _Ryan Wilcox Footnotes [1] Memorization is hard, let's go shopping! -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Need Version Management System Recommendations
On Jul 12, 10:34 pm, Jack Stewart ja...@amug.org wrote: Does anyone know of something simple that is robust and works well? I'll throw my hat in the ring here: my favorite tools are: * Mercurial * Subversion Mercurial (and Git) allow to you create a repository very cheaply: hg init or git init and your folder is source controlled. I like Mercurial: it has all the advantages of Git, and none of the disadvantages (I liken Git's learning curve to a roller coaster, complete with loop-de-loops. My favorite analogy is that Git is a time travelling laser scalpel, which is exactly as complicated as it sounds). Mercurial is a much easier learning curve, I think... although my work with Mercurial has always just been side projects (I'm a Ruby on Rails developer, and the tool of choice there is Git) Having said that, Git is more popular, and the tool support might be better. Regardless which way you go, check out SourceTree (http:// www.sourcetreeapp.com/) for doing this stuff graphically. It also works with Subversion, though some adaptors. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: TextMate to BBEdit switchers guide?
On May 5, 3:23 pm, Gabriel Roth gabe.r...@gmail.com wrote: I'd love to see more organized sharing of BBEdit scripts etc. (I tried to send this message earlier, but I guess it didn't get through. Sorry if it's a repeat) I started a Git repository for my Rails related BBEdit filters: https://github.com/rwilcox/bbedit_rails_filters - I would love it if others contributed their Rails related FILTERS. The nice thing about TextMate is that the clippings/filters/etc etc for a technology are grouped into a bundle. Download the Ruby on Rails bundle and you get everything you might want. BBEdit instead groups things by what they are... so there almost needs to be a repository for Rails related Unix Scripts, Rails related clippings, Rails related Applescripts... Anyway, check out my filter: it makes Open Counterpart useful in Rails projects :) Hope this helps, _Ryan Wilcox -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Domain Specific Languages (Specifically Ruby/Ruby on Rails specific) in BBEdit
Greetings list. First time poster, long time BBEdit user here. Today I found myself in BBEdit, editing 4 very long Ruby on Rails files. This worked well until I had to navigate around in those files. You see, these files were written using a Domain Specific Language, on top of Ruby, called Shoulda[1], which gives us an easy way to test RoR apps. Shoulda files look like this: context As a user trying to log into the system, I should be able to access the home page do # some kind of test here end should have my username and password accepted do # and more tests end end Now imagine 1,000 lines of that, because neither the context nor the should lines show up in the BBEdit function popup. And why should they? Functions in Ruby start with def, not should but Shoulda So it was a little hard to navigate. So I started thinking, and ended up writing a Python script to make it easier to navigate Shoulda files. You can see my work at: http:// bitbucket.org/rwilcox/bbedit_dsl/ Ultimately this is a proof of concept script - I need to be able to support other DSLs, and I'd like to be able to handle user specific ones (maybe someone else writes an RSpec version (another Domain Specific Language on top of BBEdit), for example). However, I thought I'd get the word out there, and see if the wider community was interested. See also: my blog post talking about it: http://blog.wilcoxd.com/ blog/?p=189 Looking forward to hearing from folks, _Ryan Wilcox Footnotes: [1] https://github.com/thoughtbot/shoulda -- Wilcox Development Solutions: http://www.wilcoxd.com Providing People with Solutions PGP: 0x2F4E9C31 -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit