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 2

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 file

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. Sea

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, 202

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 shortcut

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 text

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 li

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 thi

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 to

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 the

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: > I

Re: Zettelkasten

2019-12-17 Thread Roland Küffner
n) of all them out there. > The article describing their mentality in implementing it is worth a read ( > https://ia.net/writer/blog/write-to-organize), and as much as I thought > it was "genius", as most of their work on iA Writer is, I found it > cluttered up my interface, ma

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: Converting Google Keep to OrgMode

2019-07-03 Thread Roland Küffner
Hi Mark, assuming that your snippet is actually the complete content of the file, this should work search: (?s)\A([^\n]+)\n*(.+) replace: *\2\n\1 Short explanation: (?s) = let . match line breaks; \A = beginning of document; ([^\n]+)\n* = capture first line, ignore following line breaks; (.+)

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. wi

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 (e

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

2019-04-05 Thread Roland Küffner
Am 5. Apr. 2019, 21:01 +0200 schrieb Roland Küffner : > Am 5. Apr. 2019, 20:30 +0200 schrieb J Spellings : > > > tell application „BBEdit" >  find "\\)|}|\\]|'|\"" searching in (front text window) options {search > mode:grep, starting at top:fals

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 th

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 th

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 text

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

2018-10-23 Thread Roland Küffner
On Tue, Oct 23, 2018 at 2:34 AM Jean-Christophe Helary wrote: > > And Chris will probably jump in to talk about Fastscript or some other > wondermagical solution he has :) > > If you find yourself throwing around files between different applications very often, I'd highly recommend LaunchBar ( ht

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

2018-10-22 Thread Roland Küffner
Hi David, if I’am not mistaken, BBEdit comes with a system wide Service called „Open File in BBEdit“ (at least, I have it in my service collection). So, open macOS’ system preferences, goto Keyboard > Shortcuts. Find it in the list and give it a shortcut to your liking. -Roland On Mon, Oct 22,

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 Ev

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 to

Re: Regex to Escape Regex Characters in Any String

2018-03-09 Thread Roland Küffner
Apologies if I'm totally wrong on what you are trying to achieve, but ist „Using Selection for Find“ from the Search menu (cmd+E by default) what you are looking for? It puts your string into the Find section of the - well - Find dialog and translates all special characters (e.g. \t gets \\t). I us

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 t

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 t

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 ig

Re: Are there any special features about this code editor?

2017-11-30 Thread Roland Küffner
for a really comprehensible comparison, see: https://kieranhealy.org/blog/archives/2011/07/29/text-editors-in-the-lord-of-the-rings/ BBEdit’s stand-out characteristics - from my point of view (mostly echoing previous posts): - fast (I tried opening a 900 MB file in Atom once and have no intention

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 BBEdit Talk public discussio

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 Wed,

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 ht

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 Search-

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 > Docu

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 #LOCALPATH

Re: Searching text syntax

2015-03-02 Thread Roland Küffner
Hi, Marco, that’s quite easy (if you are into regular expressions ;-) search (without the quotation marks, those are just for clarification): " - .+“ replace with: nothing. Just make sure, that the „Grep“ box in the search dialog is checked. Regards, Roland -- Roland Küffner Am 2.

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 you

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

2015-02-10 Thread Roland Küffner
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) schrieb: > and… > > > Am 10.02.2015 um 15:41 schrieb Roland Küffner : > > > > I’m using the fine tool Ka

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 Entire

Re: Select word

2013-07-03 Thread Roland Küffner
Am 03.07.2013 um 21:05 schrieb Rick Yentzer : > 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 have a fe

Re: Select word

2013-07-03 Thread Roland Küffner
Am 03.07.2013 um 15:36 schrieb Rick Yentzer : > 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 quotes, wha

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 kno

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 t

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 t

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

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 t

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: > This is some string of > variable length You could search for: name="(.+?) (.+?)" and replace it with: name="\1_\2" You would have to hit "Replace All" until you get no further hits to repla

Re: how to mark html document headings

2012-01-15 Thread Roland Küffner
Von meinem iPad gesendet Am 16.01.2012 um 04:03 schrieb "Robert A. Rosenberg" : > This raises an issue in my mind - is there something I can use in lieu of or > in addition to the period to say that a newline in the match is acceptable. > IOW: Find the > ending a tag where the tag is split ove

Re: how to mark html document headings

2012-01-09 Thread Roland Küffner
Am 09.01.2012 um 9, 22:55 schrieb Walter Ian Kaye: > At 12:01 p +0100 01/09/2012, Roland Küffner didst inscribe upon an electronic > papyrus: > >> To get nicely named entries in the menu try this: >> >> Search: >> (.+?)<\h > > What do the &quo

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 > ___

Re: BBEdit and automatic completion

2011-11-17 Thread Roland Küffner
Am 16.11.2011 um 20:40 schrieb Rob: > Is there a way to get out of the clipping completion via TAB/NEXT? I use a very basic applescript to something like this, although not with TAB/NEXT. Via the script recording function I recorded a simple search for the closing parenthesis '>'. It looks lik

Re: Search and replace based on a custom dictionary file

2011-10-27 Thread Roland Küffner
Am 27.10.2011 um 27, 17:04 schrieb Bruce Van Allen: > On 2011-10-27, Roland Küffner wrote: >> My idea was to do it with some kind of dictionary file. In it each line >> would contain a single search replacement pair separated by tabs. Just like: >> >> old termnew te

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 Fa

Re: Grep - negate expression with quantifier

2011-10-07 Thread Roland Küffner
Am 05.10.2011 um 5, 19:52 schrieb Løseth Tor Rafsol: >>> Any suggestion on how to negate this expression so that it finds all the >>> words that are not 6 characters long? >> >> If you think about it another way, you want to find words that are either >> 1-5 characters long or 7+ characters long

Re: Why is BBEdit changing my find-and-replaces?

2011-10-05 Thread Roland Küffner
Am 04.10.2011 um 4, 23:37 schrieb Grant Barrett: > As of version 10, BBEdit has begun changing my find-and-replaces under > certain circumstances. (Same in 10.0.01.) It's an incredibly > frustrating experience, not least because it's different than what > BBEdit has done for more than a decade. >

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 i

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.

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 > anoth

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 y

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

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! T

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 "some normal text here" and did a Cmd- > B, the "some normal text here" would be selecte

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 > 2009-02-12 > and I'm processing them with a text factory that does a lot of other stuff. I > would like it to also change the wh

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 Stor

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 us

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]. T

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 eve

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 duplicate

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 ..

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

Re: modifying pretty print

2011-08-09 Thread Roland Küffner
Am 09.08.2011 um 9, 22:14 schrieb bwy: > Thanks Rick, anyone know how in v10? Hi, this is still working for me in v10 (from the 9.6 release notes): The "Pretty print" option for Markup -> Utilities -> Format is now implemented internally using a Dreamweaver-style source format profile. This aff

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 com.

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 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. The problem is

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 > presu

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

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: 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 BB

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 bu

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

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 Finde

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: Grep question: Replacing data that do not match criterion

2011-01-26 Thread Roland Küffner
Hi, I would do this in two steps. 1) find: <|> replace with \r 2) Process lines containing (with "copy to new document") ^[^@]+@[^@]+$ To make this a one-step-action: put it in a text factory ;-) Regards, Roland Am 26.01.2011 um 15:19 schrieb Ted Burger: > Oops should have been: > > Doug,

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 th

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 e

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 Textwra

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: > "", or > "" > are not found. If I understand this right, you are looking for extra hyphens in the opening and closing tags (I don't think these extra hyp

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: >> - star

Re: MobileMe integration

2010-10-18 Thread Roland Küffner
Roland Am 18.10.2010 um 18, 16:39 schrieb 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 O

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 Suppo

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 … 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 unde

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 shou

  1   2   >