Re: shortcut for cutting a line?

2024-03-08 Thread Roland Küffner
And just in case you can't find that Edit > Cut Line command, remember that BBEdit adapts menu entries dependent on modifier keys pressed. In other words: Hold down the ctrl-key in the Edit menu to turn "Cut" into "Cut Line". Roland On Wed, Mar 6, 2024 at 8:30 PM Rich Siegel wrote: > On 6 Mar

Re: Scripting an Insert File Contents operation

2023-11-20 Thread Roland Küffner
I don't know all your premises, but if you can live without Applescript, why not simply use Text > Run Unix Command… with this: cd /path/to/folder; cat *.txt You could even just write cd and drag your folder from the Finder into the Shell Worksheet (while holding cmd). BBEdit will insert the

Re: Fix filenames with blank spaces...

2023-07-09 Thread Roland Küffner
You might have a hard time figuring out a pattern for this (as I guess that the amount of white space in the file names might differ and the file names may not follow a strict structure). You could write a script for the task. Or – if it was a one-shot-task – I would do the following steps: 1.

Re: Is it possible to Copy contents of multiple files at once?

2022-10-31 Thread Roland Küffner
Although a solution already has been given, I just wanted to add another way. In BBEdit's Text menu you'll find "Run Unix Command…" Just insert "cat - /path/to/your/folder/*" and it will insert all file contents from that folder into your current text document. Regards Roland On Fri, Oct 21,

Re: Process Duplicate Lines and count them

2022-07-26 Thread Roland Küffner
Hi James, my approach would include two steps: 1. Text Menu > „Add/Remove Line Numbers“ (adding them (of course) – with one space after the number) 2. Text > „Process Duplicate Lines“ (options: Leaving one; Duplicate to new doc; Delete duplicate lines; Match using pattern (All sub-patterns): >

Re: Project specific keyboard shortcuts?

2022-02-11 Thread Roland Küffner
While not a solution to Rainers problem, I found the recently added "Go > Commands …" palette (resp. the default shortcut cmd+shift+U) a very helpful addition and usage pattern. For lesser used commands I find it much easier to type a few letters than remembering yet another dozen keyboard

Re: Moving endnotes to inline

2021-05-17 Thread Roland Küffner
Hi, it is not quite clear, how consistent your search and replace patterns are. But if they are, BBEdit's Canonize-command could deliver an easy solution. In a nutshell: You can use a simple text file as a search-replace dictionary (think of a text based key-value array). Each line in such a

A regular expression based script to cycle links in a document

2021-02-05 Thread Roland Küffner
Hello, today I (finally) assembled a script to cycle through links in my document (think "select next link"). A huge part of my daily use cases cover the work with HTML and Markdown documents. With the latter I extensively use ´[[Wikilinks]]´ to connect notes. After wishing for a “jumpt to next

Re: [ANN] BBEdit 13.1 (414027) pre-release

2020-05-07 Thread Roland Küffner
> * [325024] [DOC] Added a new option to the Keyboard > preferences to > control whether Option-up-arrow and Option-down-arrow move by > paragraphs (see below). Oh sweetness! I missed this unimposing „standard text navigation behavior“ that much, I fumbled together some scripts for

Re: Shortcut to preview in a specific browser?

2020-04-29 Thread Roland Küffner
TJ Luoma schrieb am Mi. 29. Apr. 2020 um 08:40: > I don't know a way to assign a keyboard shortcut to a browser > directly, but that's OK because the preview menu items include the > version number, which change frequently. This might be another case for Keyboard Maestro - if you are willing

Re: Capture group question

2020-03-07 Thread Roland Küffner
Fletcher, thanks for the very helpfull link. To summarize that discussion: the {2} tells the capture group to look twice for it‘s pattern, but the capture group only saves the last instance it found. Putting the whole search term into another capture group should give you the desired result (as

Re: How to choose a color scheme specific to language

2020-03-05 Thread Roland Küffner
here is the map to the hidden treasure: Preferences > Languages > (add your desired Language in the bottom "Language-specific settings") > (double click it to edit the settings) > Display > Color scheme -Roland On Thu, Mar 5, 2020 at 4:36 AM Vlad Ghitulescu wrote: > Hey! > > > How can I choose

Re: Grep for removing injection spam links in a database or html

2020-01-29 Thread Roland Küffner
If only the content of the href attribute varies, this search should do the trick: \. if you have no other tags with just a colon in it, you could probably boil it down to \. Replacement text would be a space (of course). -Roland On Tue, Jan 28, 2020 at 5:31 PM Jefferis Peterson wrote: >

Re: Zettelkasten

2019-12-17 Thread Roland Küffner
> cluttered up my interface, made me add tags that I then had to later deal > with, and much more. > > In other words, if my document names are things like > "til-2019-12-16-giraffe-mating.txt" or > "thoughts-animal-teeth-coffee-beans.txt" or "journal-2019

Re: Zettelkasten

2019-12-16 Thread Roland Küffner
Hi Christopher, I'm actually doing a home brewn approach to a zettelkasten system. The main things are there: just one repository (folder) and date based id's in the file names. Here are some thoughts that you may also read as tipps: - My most important advice would be: do not relate on one

Re: Export settings

2019-11-11 Thread Roland Küffner
BBEdit has you covered. See the manual, chapter 2 ("Sharing Application Support & Preferences Data via Dropbox") Roland On Mon, Nov 11, 2019 at 4:38 AM Gauvins wrote: > I work on several computers. Ideally I'd sync preferences via something > like Dropbox. But I'd understand if files have to be

Re: Regex replacement item for entire line?

2019-10-07 Thread Roland Küffner
Hi, Bruce Van Allen has alredady provided a solution - so, just out of curiosity: I was wondering why you were searching for a replacement for the "&" in the replacement string? It does exactly what you want and it is a single character. It's hard to get that simpler or more elegant. But maybe I'm

Re: Can this be done without writing a script? (matching and replacing)

2019-07-17 Thread Roland Küffner
Hi Mark, first answer: yes, coding a script would be the natural solution. But. If you make a lot of assumptions, something like this would work: search: (?s)\[(\d+)\](.+)\1(.+?)\\+ replace: ((\3)) \2 breakdown: (?s) = let the dot include line breaks \[(\d+)\] = search for a number in brackets

Re: Single Line HTML Comments Possible?

2019-05-19 Thread Roland Küffner
Hi, I just tried it. I may be missing something, but BBEdit already does what you want. Try  selecting just a part of a line and choose Text > Comment Lines. This does not insert any line breaks in the comment. Try selecting a whole line - including the line break (this is what you get e.g.

Re: "tags" file for Text Completion

2019-04-20 Thread Roland Küffner
Maybe I did not fully understand what you are trying to achieve, but if you just want completion data on a word list, you might take a look at keywords. BBEdit’s support folder sports a „Custom Keywords“ section. Just place a file with a word list in this folder, give it the proper extionsion

Re: How to move to outside of auto-closed delimiter

2019-04-05 Thread Roland Küffner
Am 5. Apr. 2019, 20:30 +0200 schrieb J Spellings : > Is there a keyboard shortcut (other than arrow keys) to smoothly move to the > outside of an auto-closed delimiter? > > For example, I begin typing "(x=3" and BBedit supplies the closing ")" > automatically.  How do I jump the cursor outside

Re: RegEx Challenge, Title Case a column in an CSV File

2019-04-01 Thread Roland Küffner
Am 1. Apr. 2019, 18:01 +0200 schrieb Lee Hinde : > I have a CSV file where the 2nd column contains names that are being provided > all caps. I'd like to title case that column. > > First column is a number, always, so: > > 123,HUMAN RESOURCES, > 124,PUBLICATIONS, > > I'd like to convert

Re: Searching files by number of lines in the file

2018-12-11 Thread Roland Küffner
Nice problem. Rich’s patterns works for me - if I put some parentheses around the whole pattern: (^.*?\n){XXX} I guess, without the pattern the quantifier only checks for the „\n“ and you are in fact searching for a line of text followed by XXX line breaks (aka empty lines). -Roland On Tue, Dec

Re: Easy way to open .html files in BBEdit vs. browser?

2018-10-25 Thread Roland Küffner
Sorry, not much time on my hands, hence the delayed reply. Allen is spot on with his description. LaunchBar has two very nice features: a) you can configure it to „take the selection from Finder“ by a convenient shortcut - In my case: I tap twice and LaunchBar has the selected file, folder or

Re: auto-save front-most window on application switch

2018-06-06 Thread Roland Küffner
Hi Rails, I don’t wan’t to start an argument on what „modern developer workflow“ would mean. Personally, I would never want to have an automatic saveOnSwitching - but I can see why someone might like it. That said, rejoice: BBEdit already has you covered. Read the section „Attaching Scripts to

Re: Different Colour Schemes in different windows

2018-04-04 Thread Roland Küffner
Hi, as syntax coloring is bound to the language your are using, I think, there is no official way to do this. You might try „Use custom highlight colors“ in the Preferences (under „Text Colors“). This makes selected text in active and background windows appear different. Of course you would have

Re: wrapping python strings

2018-02-20 Thread Roland Küffner
Clippings could help simulate the mentioned PyCharm feature. Create a clipping (check the manual if you don’t know about them). In the file, put: ' ' that is: <4 spaces> Whenever you invoke the clipping with the „Insert Clipping“ function or via an assigned keyboard shortcut it will insert

Re: How to cycle through the currently open documents?

2017-12-13 Thread Roland Küffner
Hi Vlad, One more question tough: "*Previous*" / "*Next*" refers to the moment in > time when the document were opened (and not the order in they appear in the > list)? from BBEdits Help, section „BBEdit Expert Preferences“ (also read the instructions on top of that help page): > When using

Re: AppleScript for Word-Selection at the Cursor

2017-12-01 Thread Roland Küffner
Hi Chris, I can offer no efficient solution but I can affirm that this is a very handy functionality (if you ever tried the command viw in vim you know who it feels :-) In BBEdit I use two scripts for selecting words. The fist one is the same Neil pointed to (from John Gruber). The second one

Re: Disable auto complete

2017-11-28 Thread Roland Küffner
Preferences > Completion > Insert matching delimiters while typing -Roland On Tue, Nov 28, 2017 at 12:34 PM, marcherm wrote: > Whenever I type e.g. a single or double quote a second one is > automatically added. > How can I disable this feature? > > -- > This is the

Re: Text overlap on auto-complete menu

2017-11-08 Thread Roland Küffner
Three things come to my mind: 1. Try to increase the fontsize (View > Text Display > Zoom In) and then reset it again (aka „shake the dawm dthing“ :-) 2. Try changing the default font (just to see if the problem is connected to it) 3. Report your observations to support Regards, Roland On

Re: Search and replace hard returns within short lines.

2017-10-09 Thread Roland Küffner
Hi, if every line break you’d like to remove would be on a line with reliably more than 35 characters this would be easy. You could search for: ^(.{35,})\n and replace it with \1 Unfortunately, regular expressions (as I understand it) can’t match „1 to 35 characters, but only if there are no more

Re: Grep help

2017-10-08 Thread Roland Küffner
Although this is the BBEdit forum, I would recommend good 'ol "sed" from the command line for this job. Something like this should work: sed '/new.html to do it on all files in the working directory: find . -name '*.txt' -exec sed -i '' '/ wrote: > I've taken over a project and have many many

Re: RegEx for switching Artist - Title to Title - Artist

2017-08-31 Thread Roland Küffner
to bring this back to BBEdit, here is another „BBEdit only“ solution: 1. Create a new Unix Worksheet 2. type cd and drag your music folder after it, giving you something like cd '~/path/to folder' (add the quotation marks manually if you have spaces in the file path 3. hint (the again. 5

Re: Text Factory: replace found string with contents of file...

2017-08-28 Thread Roland Küffner
Hi Scott, maybe there is some way to do this with a text factory. BBEdit has the nice #bbinclude function (check the manual for details). So, in the first step, i would replace the search term with something like this: #bbinclude "/path/to/substitution/file.txt" After that „Markup > Update >

Re: Insert file path as a comment in multiple files

2017-05-18 Thread Roland Küffner
This could be a job for placeholders: 1. Open the folder with your files in BBEdit (creating an instant-project - or: add all files to the source list of a new project) 2. Mulitfile-replace (in the new project): search for \A (the start of the file), replace with a placeholder, probably

Re: Edit Find Replace History

2015-02-26 Thread Roland Küffner
The history is saved in your preference file (~/Library/Preferences/com.barebones.bbedit.plist) under the key „FindDialog_SearchReplaceHistory“. BUT: Messing around with this file is NOT RECOMMENDED or you are in serious danger to wreak havoc upon your BBEdit installation. Did you notice, that

Re: [OFF LIST]: How to speed up copy paste in BBEdit?

2015-02-10 Thread Roland Küffner
| ModifierFlag::CONTROL_L     /autogen /item I hope this is not too off-topic for this list, but IMO BBEdit can profit a lot from this tool. Have fun tinkering your keys, Roland -- Roland Küffner Sent with Airmail Am 10. Februar 2015 bei 10Februar 16:05:45, Vlad Ghitulescu (v...@ghitulescu.de

Re: How to: automate paragraph creation every 160 chars

2014-12-30 Thread Roland Küffner
Hi S., Am 26. Dezember 2014 bei 26Dezember 04:05:49, S. Go (spriv...@gmail.com) schrieb: That looks awesome, Roland. *Thanks*! glad, I could help. Where can a beginner like me start to learn about those expressions you used (which I've never seen before)? I'm interested in learning more.

Re: How to: automate paragraph creation every 160 chars

2014-12-20 Thread Roland Küffner
A simple regular expression does that job Search for: (.{160}) Replace with: \1\r Also the search dialog has a option „Entire Words“. You might want to check this. You might also try the search pattern .{140,160} to set the minimum and maximum number of matched characters when using the

Re: Select word

2013-07-03 Thread Roland Küffner
Am 03.07.2013 um 15:36 schrieb Rick Yentzer ryent...@gmail.com: What I'm looking for is a way to select a word and then select more words until I get the selection I want. grunt-contrib-nodeunit If my cursor is in the middle of contrib and I want to select the text between the double

Re: Select word

2013-07-03 Thread Roland Küffner
Am 03.07.2013 um 21:05 schrieb Rick Yentzer ryent...@gmail.com: Addition: Is there a script to select text between opening and closing tags? no script needed. See Balance in the View Menu and Balance Tags in the Markup Menu -Roland -- This is the BBEdit Talk public discussion group. If you

Re: Help with Grep to isolate the following text.

2013-03-27 Thread Roland Küffner
Hi, Jeff, this is not too much of a head scratcher. First of all: you'll need more than one run to do all you wanted. But you can use text factories to glue more than one grep replace steps together and run that resulting text factory against your thousand files (see the manual if you don't

Re: Help from the clueful

2013-02-18 Thread Roland Küffner
Well, if it’s taking a perl script to do it then I don’t feel quite so bad for failing to manage it with grep. Well, you can do this with grep, but not in one go (imo). Try search: (\d+#)(.+?)\r\1 replace (beware: there is a space ' ' character after the \1\2): \1\2 Now, simply repeat

Re: Adding text vertically / column mode in BBEdit?

2012-10-09 Thread Roland Küffner
Am 09.10.2012 um 00:06 schrieb Rick: So if I had the text: the fox the dog the cat I could highlight the position right after the space on all the lines. The way you do that in BBEdit - as far as I can tell - is to hold the ALT key and drag with your mouse. Then you could type red

Re: Selecting entire tags

2012-07-09 Thread Roland Küffner
Am 09.07.2012 um 9, 17:25 schrieb Mark: Hello, I am sure there is a simple answer to this. In earlier versions of BBEdit, when you double-clicked just in front of a tag, the whole tag was selected, including the brackets. Now (I am currently at 10.1.2 under MacOS 10.6.8) I can't seem to

Re: grep pattern for NOT capturing a zip code at the first of a line?

2012-07-09 Thread Roland Küffner
Am 08.07.2012 um 8, 13:59 schrieb Mosby: I have data that looks similar to this... 75092 Sherman 1811 Whao 75090 Sherman . at. 8am 3244 Dripping Springs Rd 903-647-3292 veryt 75092 Sherman 3204 M 75409 AnnaTooehold item There are tabs after the zip codes. I want to skip the

Re: GREP: Replacing spaces from a string of variable length

2012-04-20 Thread Roland Küffner
Assuming you already did your first step resulting in Am 19.04.2012 um 19, 22:54 schrieb Brad Ummer: h3a name=This is some string of variable lengthThis is some string of variable length/a/h3 You could search for: name=(.+?) (.+?) and replace it with: name=\1_\2 You would have to hit

Re: how to mark html document headings

2012-01-09 Thread Roland Küffner
Am 09.01.2012 um 9, 05:45 schrieb Christopher Stone: On Jan 08, 2012, at 20:17, JT wrote: i'm looking for a pattern / regular expression where i can find mark all headings ( h1, h2, etc) using BBEdit's Set Marker menu __

Search and replace based on a custom dictionary file

2011-10-27 Thread Roland Küffner
Hi, everybody, maybe someone has already a solution to this and is willing to share: More often than I thought I find myself having to replace a bunch of terms in a text file with new text. Doing it by hand means doing several search-replace-actions one after another. Putting together a Text

Re: Constrain text width in Lion full screen

2011-09-19 Thread Roland Küffner
Hi, Am 15.09.2011 um 08:18 schrieb amc: Thanks, Charlie, but I'm already soft-wrapping to window width. I'm looking for the effect that text editors like Writeoom offer, which means having the entire screen covered by the text editor window, but text constrained to a 600-700 pixel column in

Re: Create code folding rule?

2011-09-15 Thread Roland Küffner
Am 15.09.2011 um 05:02 schrieb Frederick Yocum: Is it possible to hack the CSS module to add a rule for code folding. I like to group my CSS with comments like so: /* @group Global Reset */ ...rules /* @end Global Reset */ and would love to be able to fold the groups. I don't

Re: jump mark question

2011-09-14 Thread Roland Küffner
Hi, Am 14.09.2011 um 05:52 schrieb tenox: Oh you are talking about markers aka bookmars. I'm talking about jump marks. It's a different function. To me and many others that I know of jump marks are useful only if they can be managed from a keyboard. Eg one key sets / unsets a mark another

Re: cannot enlarge fonts on workspace

2011-09-05 Thread Roland Küffner
Am 06.09.2011 um 6, 02:16 schrieb C. Fiddler: For folks with poor eyesight I would like to know if there is a method to enlarge fonts while coding a document. I searched preferences but this only allow change in the sidebar. Is there something I’am missing? If there is a solution, could you

Re: BBEdit - Find Replace using a list

2011-09-02 Thread Roland Küffner
Am 01.09.2011 um 1, 02:05 schrieb JT: Hi, I have 30 language files that I automate graphics production and the text files are identical except each one calls a new file in the path. For example, file://KR.tif and I need to change the 'KR' to AU, GB, DK and so on and save each find

Re: What am I missing in BBEdit 10?

2011-08-29 Thread Roland Küffner
Am 28.08.2011 um 16:33 schrieb Eros9: My main issue is with anchor tags. In v9, I can highlight a URL, hit cmd-ctl-A, and hit Enter. Voila! Now in v10, I highlight the URL, hit cmd-c, hit cmd-ctl-a, type in hr (autocompletes to href), tab, tab again, hit cmd-v, and hit Enter. Whew! The

Re: How to get Balance Tags to include the tags

2011-08-24 Thread Roland Küffner
Hi, Am 24.08.2011 um 24, 01:25 schrieb DaveHein: The problem I'm running into is that Balance Tags will select the innner HTML but not the span tags themselves. So if I put the cursor somewhere on or in spansome normal text here/span and did a Cmd- B, the some normal text here would be

Re: No authenticated open/save in the App Store version

2011-08-18 Thread Roland Küffner
Sorry, I'm not getting what you are so upset about Am 18.08.2011 um 07:01 schrieb crag: And that's my point. That link (or better) that FAQ should be on the App store. It didn't occur to me that the versions would be different. You think I spend my time learning the ins and outs of App Store

Re: Insert date with GREP

2011-08-18 Thread Roland Küffner
Hi, Mark Am 18.08.2011 um 10:23 schrieb Mark: Does anybody know if there's a way to enter today's date via search and replace? I have files with strings like this imported2009-02-12/imported and I'm processing them with a text factory that does a lot of other stuff. I would like it to also

Re: BBedit 10: Images and Alternative Text

2011-08-17 Thread Roland Küffner
Am 17.08.2011 um 11:15 schrieb Dave Fitch: I would have thought useful metadata would be in the caption or keyword fields rather than the comment field... [which I thought should be used for comments about the image/image creation process, rather than a description of the image per se]. The

Re: R support

2011-08-17 Thread Roland Küffner
Am 16.08.2011 um 16, 21:05 schrieb jarome: This R.plist and the two scripts no longer work. Does anyone know how to get R syntax support in BBEdit? Strange, both language recognition and script both are working fine for me (BBEdit 10 on Lion 10.7.1). Here is the script I use (I think I'm

Re: Incrementing numbers in a rectangular selection

2011-08-12 Thread Roland Küffner
Am 12.08.2011 um 12, 07:54 schrieb Christopher Stone: Script one will operate on the selected variable name OR let you enter a variable name IF no text is selected. ... Script two allows you to write the params in BBEdit like so: Hi, Chris, thank you so much for the two scripts that go even

Re: What's the BBEdit Sales Pitch?

2011-08-11 Thread Roland Küffner
Am 11.08.2011 um 04:01 schrieb oliver: ...and clippings (which can also contain scripts - though I've never found a great example of how this works). Here is a simple but nice example. I use this to insert the URL from Safari's front window as an HTML link. I have a clipping Insert Safari

Rectangular selections by keyboard - is it possible?

2011-08-11 Thread Roland Küffner
Hi, all so often I find myself wanting to make a rectangular selection in order to apply the mighty Preffix/Suffix Lines command to it. And all that often I find myself forced to leave the keyboard reaching for that mouse thing - which disrupts my workflow like having to go to another room ...

Incrementing numbers in a rectangular selection

2011-08-11 Thread Roland Küffner
Speaking of rectangular selections ... one other thing I find myself doing quite often, is that I write one, let's say, variable name with a trailing number, copy it down and then, increment the number. So, after duplicating one line (with a nice little script) I would have a bunch of

Re: BBEdit 10 - Code Selection

2011-08-09 Thread Roland Küffner
Am 09.08.2011 um 9, 16:18 schrieb solariane: in previous version, when you were selecting a block of code ( either separated by bracket {} or by parentheses () ), the delimiter was also selected. It's no longer the case is it any way to get back this functionality ? defaults write

Re: Can Currently Open Documents go back to where it was?

2011-07-26 Thread Roland Küffner
Hi, Am 26.07.2011 um 03:22 schrieb Wrong Size Glass: On Jul 25, 8:53 pm, Rich Siegel sie...@barebones.com wrote: Every other section in a project window can be collapsed -- or hidden entirely; that may be worth a try. (See the View menu.) Rich, I know the other sections can be collapsed.

Re: Trying out BBEdit

2011-07-20 Thread Roland Küffner
Hi Am 19.07.2011 um 21:57 schrieb vr8ce: I'm looking for an option to have the insertion point follow the cursor. That is, if I'm at the top of a document, and hit the Page Down key three or four times, I want the current line to be the top of the window, so that, if I hit the down arrow,

Re: Hiding tab character

2011-07-20 Thread Roland Küffner
Am 20.07.2011 um 13:44 schrieb Jason: So I'm trying to make the switch from Textmate to BBEdit and I've gotten past most differences except for one...the little arrows BBEdit puts in to show tab. For each time I hit tab a little arrow is displayed on the screen. Is it possible to turn

Re: BBedit 10 text factory glitch

2011-07-20 Thread Roland Küffner
Hi, Am 20.07.2011 um 13:44 schrieb amc: Just tried to set up a text factory, and didn't get what I expected. The factory is simply set to Tidy:Clean (discard empty paragraphs) Change Line Endings (to Windows) What I got was HTML output, with my text turned into Body text. I presumed I

Re: Growl appears

2011-07-19 Thread Roland Küffner
Hi, Am 19.07.2011 um 19, 18:02 schrieb Lewis Kirk: Out of the blue today, I got a Growl notification. I look in system preferences and now there's Growl. It sez it's helping me with BBEdit, Firefox, Yahoo! Messenger, etc. Don't know where it came from or how long it's been there. BBEdit

Re: PHP and HTML Syntax Highlighting for CakePHP .ctp file extensions

2011-06-08 Thread Roland Küffner
Hi, Am 08.06.2011 um 8, 21:17 schrieb Nick A: I have started working with the CakePHP framework and I do all my editing in BBEdit. File extensions in CakePHP of files which often contain both HTML and PHP code are .ctp. When editing these files I see no syntax highlighting. How do I set

Re: PHP syntax checking

2011-05-10 Thread Roland Küffner
Am 09.05.2011 um 07:27 schrieb crag: The one thing I miss from Textmate (ok the color themes I miss too) is syntax checking. Nothing fancy, just something that runs through the script and stops at any syntax error. make sure to check out this post by John Gruber. Not an in-BBEdit solution but

Re: Code Folding - PHP - switch/case statement + if / elseif / else

2011-04-20 Thread Roland Küffner
Am 20.04.2011 um 20, 19:05 schrieb newtonp...@gmail.com: I very very much want this as well. It is not only easier to deal with but makes debugging easier as well. I am very hopeful that someone from BBedit will read this. I use both if-then, loops, for-each's and switch's and none of

Re: Multi-File Search

2011-04-15 Thread Roland Küffner
Am 15.04.2011 um 15, 02:26 schrieb Matsaki: I want to to exclude some folders that I don't want to be searched when I do I Multi-File Search on my entire site. Did not find out how though. - use filters (at the bottom of the Search window) - select (only) the folders to be searched in Finder

Re: using applescript to find word boundaries

2011-03-02 Thread Roland Küffner
Hi Gregg, I'm not able to help you by myself on this. But perchance you need not reinvent the wheel by peeking at John Gruber's fine Select Word script for professional inspiration (and profund explanation): http://daringfireball.net/2003/09/select_word_script_for_bbedit Regards, Roland

Re: Applescript equivalent of Ctrl-O (open line)

2011-01-19 Thread Roland Küffner
Am 19.01.2011 um 00:09 schrieb Watts Martin: I'm working on a little AppleScript that replicates a trivial but cherished feature of another editor -- being able to press Ctrl-Return (or whatever) and having it start the new line with an appropriate indent. My script does the right thing

Re: Help using grep

2010-11-22 Thread Roland Küffner
You'd need a textfactory with 10 replace steps, one for each number: search (\S*)1(\S*?)\.tif replace \1A\2.tif search (\S*)2(\S*?)\.tif replace \1B\2.tif ... and so on. \S finds every none-space character. Thus, if you have file names with spaces in them you'll run into problems. Beware that

Re: Windows text editor

2010-11-16 Thread Roland Küffner
You might also take a look at jedit: http://www.jedit.org It is written in Java - hence the J in the name. Fit for almost every editing task - and also very customizable through plugins (unfortunately the MAC version feels rather clumsy (at least to me) and is nowhere near BBEdit or even

Re: grep to strip out double hyphens from HTML comment?

2010-10-29 Thread Roland Küffner
Hi, Am 28.10.2010 um 28, 21:18 schrieb Govinda: (?s)(!--[^-]*?)-+([^-]*?--) works great except that comments where the number of extra hyphens, like so: !--- some notes here ---, or ! some notes here are not found. If I understand this right, you are looking for extra hyphens

Re: grep to strip out double hyphens from HTML comment?

2010-10-28 Thread Roland Küffner
Am 28.10.2010 um 28, 06:56 schrieb Ronald J Kimball: On Wed, Oct 27, 2010 at 08:58:37PM -0700, Govinda wrote: Hi everyone I am trying to make a grep search string which finds any HTML comment that has a double hyphen inside itself. It should find any HTML comment which: - starts with !--,

MobileMe integration

2010-10-18 Thread Roland Küffner
Hi all, so I finally decided to try that MobileMe. BBEdit's feature lists emphasizes the easy integration of BBEdit with Apple's online service. I searched the manual, the forum and the preferences but can't find a word on how to do it correctly. I suppose I just copy over the Application

Re: MobileMe integration

2010-10-18 Thread Roland Küffner
TJ Luoma: I don't think you want to move anything. If you turn on MobileMe's Preference Sync (System Preferences » MobileMe » Sync), BBEdit's preferences will sync. Not sure what else you'd need to do. On Oct 18, 4:26 am, Roland Küffner medienmeis...@googlemail.com wrote: Hi all, so I

Re: Sorting a .plist

2010-08-18 Thread Roland Küffner
Hi, Am 17.08.2010 um 17, 08:39 schrieb LuKreme: I would like to sort all the dict … /dict entries in a .plist file at a certain level in a plist/xml file. basically, the file is the Extension.plist in $HOME/Library/Safari/Extensions, and I want to sort all the dict entries that are

Re: Select text after paste

2010-08-06 Thread Roland Küffner
Hi, nice applescript solution to this paste-select problem from Kendall. I'd like to offer another way using clippings. Just create a clipping with the following content: #SELSTART##CLIPBOARD##SELEND# Saving it under Universal Items is recommended. With an assigned keyboard shortcut it

Re: Jump Paragraph

2010-08-05 Thread Roland Küffner
Am 05.08.2010 um 04:16 schrieb Rick: I know it is possible to select a paragph with command+option+L. Does anyone know whether it Is it possible to make the insertion point jump paragphs like in emacs. Right now the only options I know about of moving the insertion point vertically with

Re: Newbie: Scripting a better HOME button?

2010-07-30 Thread Roland Küffner
The original poster wants to be able to move the cursor to a position immediately before the first non-whitespace character of the current line. The best the numeric keypad option can do is move it to the very start of the line. Here is another quick applescript solution. As another poster

Re: Migrating from TextMate to BBEdit

2010-07-27 Thread Roland Küffner
Am 27.07.2010 um 03:54 schrieb Toadling: On Jul 16, 2010, at 5:47 AM, Konstantinos Pachnis wrote: In TextMate there is feature Column Movement / Typing that you can select a column data and then start typing to type on each line. Can this be done in BBEdit? I think the closest you'll

Re: Tag maker always uses tabs, ignores auto-expand setting

2010-06-22 Thread Roland Küffner
Am 22.06.2010 um 08:49 schrieb John Delacour: At 16:52 -0700 21/6/10, Semper Fidelis wrote: It can be automated using Apple events with a script added to the Scripts palette and, optionally, actuated with a key command: tell application BBEdit tell front window

Re: GREP - Find First Instance Only

2010-06-17 Thread Roland Küffner
Hi, Am 15.06.2010 um 15, 22:12 schrieb mindmojo: I'm trying to insert some new HTML into several HTML pages. The new HTML should appear between the first and second HTML-formatted paragraphs but not between any other subsequent paragraphs. I'm not quite sure if I unterstood your aims

Re: HTML code formatting customization?

2010-06-08 Thread Roland Küffner
Am 07.06.2010 um 17:09 schrieb Toby S: I also miss the source format profile function ... The 'Tidy' command doesn't use tabs, and I can't find any prefs to change that? 'Gentle Hierarchichal' does 90% of what I want it to, but personally I find it a bit too verbose for things like html

Re: Bug Report: v9.5 (2740) - HTML Formatting Utility Broken

2010-05-06 Thread Roland Küffner
Hi Matt, I just had a quick look at your file. I corrected the syntax of your single tags: br / instead of br and img ... / instead of img Each correction returned the formating function one step back in the right direction. So, BBEdit obviously doesn't like misspelled elements (Syntax

Re: Grats on 9.5 simple column question

2010-04-29 Thread Roland Küffner
Am 29.04.2010 um 02:01 schrieb Matt Martini: If you work with columns, you might want to try this little filter: Save this as column.sh and put it into ~/Library/Application Support/BBEdit/Unix Support/Unix Filters #!/bin/sh column -t $1 This will columnize selected text.

Re: Convert spaces to nbsp; quickly

2010-04-01 Thread Roland Küffner
Another approach: You could use Apple's Automator to create a shortcut. BBEdit has some nice components that you can use from inside Automator. If you choose to create a workflow as service (Snow Leopard required) you will get a menu Item meaning you can select text in your browser, right

Re: GREP Find Replace Help

2010-03-31 Thread Roland Küffner
Am 31.03.2010 um 02:32 schrieb farley2: Hoping someone here can help solve an issue I have been struggling with. The code looks similar to that below. However all pages (over 600) are not as clean as this, meaning DIVs could be on the same line or there could be 1 or 2 line breaks separating

Re: Fix Implicitly Closed Tags script needeed for XHTML

2010-03-23 Thread Roland Küffner
that each line has a tag at it's end But maybe it does work for you. Regards Roland Küffner -- 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

Re: Find-Replace Patterns Via AppleScript

2010-03-04 Thread Roland Küffner
Hi, this regular expression should do the trick. Search for: (?s)\A.+VALUES(.+)\);/\*!.+\Z (small caveat: on a quick test this only worked with the cursor at the very top of the document. Don't have the time to figure out why) replace with \1 To turn it into an Applescript just record this

Re: Find word delete line

2009-05-02 Thread Roland Küffner
No need for exposure to Applescript. Create a new text factory in BBEdit. Add a step Process lines containing. In the options of that step make sure you have the option Delete matched lines selected. (I recommend the Text factories chapter in the BBEdit User Manual (chapter 5) for more on text

Re: Entities

2009-03-13 Thread Roland Küffner
Have you tried Markup Utilities Translate? First translate HTML to text (without removing the tags). Then translate again from text to HTML. In the second step you can choose your preferred encoding method. I did a quick test on one of my files and it worked. But you might try this on a copy

Re: Scratchpad doesn't remember line number settings

2009-01-31 Thread Roland Küffner
Am 30.01.2009 um 15:27 schrieb Steve Kalkwarf: On Jan 30, 2009, at 5:36 AM, Roland Küffner wrote: I'd like to have line numbers displayed all the time. Therefore I have turned it on in the preferences (Text Status Display). It works fine for text documents and shell worksheets

  1   2   >