Re: Cannot replace source text using GREP

2020-01-03 Thread Marek Stepanek
Sorry Howard! I was in a hurry on the way to my work. You have of course capture the numbers like follows: ^(\d)\n Replace with \01, Please read the BBEdit manual of GREP. This are really fundamental questions you are asking. Have a nice evening marek > On 3. Jan 2020, at 16:00,

Re: Cannot replace source text using GREP

2020-01-03 Thread Marek Stepanek
Happy New Year 2020! Search with grep: ^\d\n Replace with: \01, Hope this helps! > On 3. Jan 2020, at 05:07, anotherhoward wrote: > > Here is my input: > 1 > 2 > 3 > 4 > 5 > > Here is my search pattern: > \d\n > > It finds all the source text. > > Here is how I want my output to

Re: not able to install the Command Line Tools (BBEdit version 12.6.6 (412112, 64-bit, sandboxed), macOS Mojave 10.14.6)

2019-08-12 Thread Marek Stepanek
Hi Vlad! I am not sure, but has your /usr/local the right permissions? It’s only a guess! To illustrate: ls -l drwxr-xr-x@ 9 root wheel 288B Oct 24 2018 usr/ drwxr-xr-x 19 root wheel 608B Jul 21 17:53 local/ And in /usr/local/ I get: drwxrwxr-x6 mstep admin192 Aug 10

Re: problem with grep replacing selected text

2019-03-04 Thread Marek Stepanek
Hello all! I did not read all in this thread, but here a little remark: Since 15 Years the shortcut of replace in selection: ctrl+command+= is not working on German keyboard (The = is on German keyboard over the 0 zero that means the shift is involved). This feature I am missing,

Re: Tricky regex question

2019-02-02 Thread Marek Stepanek
^\s*([A-Z\dm♭#bdimsu]+\s+)+ Good night folx ps: how to put “dim” or “sus" into a character class as a string? > On 2. Feb 2019, at 19:56, bruce linde wrote: > > yes, but… what about Eb7#9 or C#7#9 or A9sus? -- This is the BBEdit Talk public discussion group. If you have a feature

Re: Tricky regex question

2019-02-02 Thread Marek Stepanek
So try this: ^\s*([A-Z\dm♭#dim]+\s+)+ it’s working on this example: E B7 E A Am E This is a line of a song E This is a line of a song B7 E E7 This is a line of a song A This is a line of a song E This is a line of a song

Re: One-liner to replace multiple spaces between words (only words) with one space isn't working

2019-01-13 Thread Marek Stepanek
I did not know \h = horizontal white space. And it is even working with BBEdit. Is it mentioned in the User Manual BBEdit? Suggesting a little correction: Your search and replace is not doing what Dj was asking for: replace + with : > s/\h+/ /g; 1. Replaces *one* or with one space.

Re: How to get rid of "Dark Mode"

2018-12-14 Thread 'Marek Stepanek' via BBEdit Talk
Thank you Rich! You saved my day :-) marek On Friday, 14 December 2018 15:25:10 UTC+1, Rich Siegel wrote: > > On 12/14/18 at 5:19 AM, ms...@podiuminternational.org > (Marek) wrote: > > >New to Mojave and a new MacBook Pro (much too expensive!) > > > >How I can rid of this terrible dark

Changed grep engine after update?

2018-09-23 Thread Marek Stepanek
Hello all! A strange phenomenon happened: In my Perl Script the pattern $_ =~ m!/([\w]+?) does not matches Umlauts. For example: "Jürgen". Was this always like that? Or is there a change somewhere in MacOS (there was a recent update to 10.13.6)? BBEdit Version is 12.1.5

Re: Encoding question

2018-09-17 Thread Marek Stepanek
hanges the document after > it’s already been read into memory (using the wrong encoding). > > You want to click Options in the open dialog, or use File > Reopen Using > Encoding. > > Cheers > > >> On 2018-09-17, at 01:51, Marek Stepanek >> wrote: >

Encoding question

2018-09-16 Thread Marek Stepanek
Hello all BBEditors! I thought that we have no encoding problems, since everybody moved to UTF-8. But opening the file: /usr/local/texlive/2018/texmf-dist/doc/latex/koma-script-examples/Kapitel-11/source/scrjuraexample.tex there is crap in the file: ‰ for ä ¸ for ü etc Everybody having

Re: Search for unicode character

2018-07-19 Thread 'Marek Stepanek' via BBEdit Talk
Thank you all for your insight and the answers! In the BBEdit help, if I am searching for "unicode", there are no results. Best greetings marek On Wednesday, 18 July 2018 18:15:01 UTC+2, Maarten Sneep wrote: > > > > > On 18 Jul 2018, at 17:49, Marek Stepanek >

Re: Search for unicode character

2018-07-18 Thread Marek Stepanek
On 18.07.2018 15:42, Patrick Woolsey wrote: > On 7/18/18 at 4:40 AM, ms...@podiuminternational.org (Marek Stepanek) > wrote: > >> I pasted a text from a open Office into BBEdit TeX file. But the >> compiling stops with: >> >> ! Package inputenc Error: Unicode cha

Re: Search for unicode character

2018-07-18 Thread Marek Stepanek
On 18.07.2018 12:09, Kjetil Rå Hauge wrote: > On 18/07/2018, 10:41, "bbedit@googlegroups.com on behalf of Marek Stepanek" > wrote: > ... >> I pasted a text from a open Office into BBEdit TeX file. But the > >compiling stops with: > >

Search for unicode character

2018-07-18 Thread Marek Stepanek
Hello all! I pasted a text from a open Office into BBEdit TeX file. But the compiling stops with: ! Package inputenc Error: Unicode character ̈ (U+308) (inputenc)not set up for use with LaTeX. I switched on "show invisibles". I zapped gremlins. But nothing

Re: grep help coordinates

2018-03-05 Thread Marek Stepanek
On 05.03.18 22:49, Steve Wilson wrote: > Need help trying to figure out how to do a grep search and replace in BBEdit > of a couple of coordinates into KML. > Unfortunately the order of the lat/long needs to be flipped. > Here is what it looks like: > > (32.839098817184, -97.303764761793) > >

Re: BBEdit iCloud LaTeX - How to compile the file?

2017-12-04 Thread Marek Stepanek
On 03.12.2017 21:13, Tom Robinson wrote: ... > > A workaround is to turn on iCloud Drive for Desktop & Documents folders, and > store your file there, and you’ll have a standard path :] > > Thank you Tom! I activated iCloud Drive already. From there I am opening the TeX-file. Probably I

Re: BBEdit iCloud LaTeX - How to compile the file?

2017-12-01 Thread Marek Stepanek
On 01.12.2017 17:23, Bruce Van Allen wrote: > > In a BBEdit shell worksheet, you can cancel a process with Command-dot > (dot = period/full stop). > > I'm unfamiliar with the use of tilde ('~') in file paths. Maybe try > com.apple.CloudDocs in that portion of the path? > > HTH Thank you

Filter to reverse order of lines

2017-11-17 Thread Marek Stepanek
Hello all! I would like to reverse the order of a selected lines with a BBEdit filter. Best with Perl. My approach is something like follows: #!/usr/bin/local/perl use File::ReadBackwards; use warnings; use strict; tie *BW, 'File::ReadBackwards', (<>) or die

Re: How to edit config files in root folder?

2015-01-19 Thread Marek Stepanek
the word helper installed happened along with some other stuff…kind of a match for you maybe After that everything worked a treat no muss no fuss. Didn’t use sudu…admin password asked and given..business as usual On Jan 18, 2015, at 10:59 AM, Marek Stepanek ms...@podiuminternational.org

How to edit config files in root folder?

2015-01-18 Thread Marek Stepanek
Hello all! I have a new 5K iMac - and expect many jealous congratulations from this list ;-) The new Yosemite does not allow me to edit the Apache httpd.conf file in /etc/apache2/ I am opening the files in my shell with sudo bbedit /etc/apache2/httpd.conf But while saving I get error 20004

Re: Search for hexcode

2014-12-19 Thread Marek Stepanek
To finish this thread: in your shell you enter following command: ./replace_emoticon.pl emoticon_file.txt #!/usr/bin/perl use strict; use warnings; # use utf8; # use charnames ':full'; use open qw( :encoding(utf-8) :std ); while() { # foreach (/\x{1f618}/g) {print hurray! And Here Is Your

Re: Search for hexcode

2014-12-19 Thread Marek Stepanek
Thank you Charlie and Ronald! Your knowledge is amazing! Best greetings from Munich marek On 19/12/14 23:29, Charlie Garrison wrote: Good morning, On 19/12/14 at 9:07 PM +0100, Marek Stepanek ms...@podiuminternational.org wrote: To finish this thread: I should have read ahead

Search for hexcode

2014-12-17 Thread Marek Stepanek
Hello all! I need to replace many emoticons in a large xelatex-file. I have had the intention to make a perl-filter like follows while(){ s/\x3DD818DE/pix/emo01.jpg/g etc etc } but already the search in BBEdit for the hexcode did not succeeded. I made a file with two

Re: Search for hexcode

2014-12-17 Thread Marek Stepanek
Thank you Rich, everything is working now as intended and I have learned a lot :-) marek On 17/12/14 15:51, Rich Siegel wrote: On Wednesday, December 17, 2014, Marek Stepanek ms...@podiuminternational.org wrote: Hello all! I need to replace many emoticons in a large xelatex-file. I

Re: Search for hexcode

2014-12-17 Thread Marek Stepanek
# } # while() { # if (/\x{0020}/) {print hurray!\n}; # this is working! (Searches for a space!) # } while() { if (/\x{D83D}\x{DE18}/) {print hurray! And here is your emoticon!\n}; # this is not working! (Searches for the emoticon  !) } On 17/12/14 22:40, Marek Stepanek wrote: Thank

Help with Perl Filter to increment an element

2014-11-01 Thread Marek Stepanek
Hello all! I try to transform this LaTeX (MusiXTEX) snipped from \NOtes\qu{ABCD}\enotes\barre % 6. Takt \NOtes\qu{EFGH}\enotes\barre % 7. Takt \NOtes\ql{IJKL}\enotes\barre % 8. Takt \NOtes\ql{MNOP}\enotes\barre % 9. Takt \NOtes\ql{QRST}\enotes\barre % 10. Takt

Re: Help with Perl Filter to increment an element

2014-11-01 Thread Marek Stepanek
On 01/11/14 10:59, Marek Stepanek wrote: Hello all! I try to transform this LaTeX (MusiXTEX) snipped ... Sorry! I found it: a point was missing: ... sprintf(%30.10s,$increment) -.- . Takt/eg; But how to align the last 10. Takt with sprintf()? But I will certainly find out myself

Re: Help with Perl Filter to increment an element

2014-11-01 Thread Marek Stepanek
On 02/11/14 02:03, Charlie Garrison wrote: Good morning, On 1/11/14 at 12:49 PM +0100, Marek Stepanek ms...@podiuminternational.org wrote: But how to align the last 10. Takt with sprintf()? I don't recall specifics, but I'm pretty sure dash character will right align, so something

Where is gone the free half page on bottom?

2014-05-27 Thread Marek Stepanek
Hello all! I am missing one preference, which I remember I used some years ago: display a half page on the bottom (without line feeds). Is it a hidden preference now? Which keyword I should grep doing: defaults read com.barebones.bbedit | grep -i bottom ? bottom gives nothing - window many

Re: Editing httpd.conf file

2014-04-07 Thread Marek Stepanek
to this group, send email to bbedit@googlegroups.com. -- ___ the embassy for talented young musicians Podium International | Marek Stepanek | ms...@podiuminternational.org http://www.PodiumInternational.org

BBEdit request

2014-01-02 Thread Marek Stepanek
Hello all from BBEdit User Group! Happy New year 2014 first! This is a little bit off-topic: Every new year I am cleaning up my Thunderbird email accounts and every year I have the same problem cleaning up the BBEdit User Group. I would kindly ask the group administrator, to put in front of

Re: BBEdit request

2014-01-02 Thread Marek Stepanek
something like: [XeTeX] in every subject line, which is a big help ... marek On 02/01/14 18:30, Fritz Anderson wrote: On 2 Jan 2014, at 10:30 AM, Marek Stepanek ms...@podiuminternational.org wrote: Every new year I am cleaning up my Thunderbird email accounts and every year I have

Re: BBEdit request

2014-01-02 Thread Marek Stepanek
Thank you Chris! This was really very helpful. Sorry for this noise to the group. marek On 03/01/14 02:17, Christopher Stone wrote: On Jan 02, 2014, at 13:35, Marek Stepanek ms...@podiuminternational.org mailto:ms...@podiuminternational.org wrote: Of course, I can filter in Thunderbird

Filter for Mail 7-Bit ASCII

2013-07-16 Thread Marek Stepanek
Hello all! I have saved some files out of my Thunderbird in .eml format. They were PGP translated but in the body are all these =20 =DE ... means '=' + Hexcode characters. I would like to make an Perl-Filter replacing all these letters. I installed some Perl-Modules like MIME::Tools. But this

Re: Encoding question 'GREEK (DOS)'

2013-03-06 Thread Marek Stepanek
On 06.03.2013 1:46 PM, Aris Karatarakis wrote: I've been trying to convert some legacy sgml files and the only options that displays the text correctly is 'Greek(DOS)' which specific code page corresponds to the File Reopen Using Encoding Greek (DOS) menu item used in BBEdit, is it

Re: Replace character in selection

2013-02-08 Thread Marek Stepanek
On 08.02.2013 7:37 AM, t...@luo.ma wrote: On Feb 7, 2013, at 9:38 PM, Zephyr Mays zephyr.m...@gmail.com wrote: Apologies for the newbie question; I'm just discovering the power of BBEdit. I'd like to change all instances of a character in a selection without invoking the find/replace

Re: Replace character in selection

2013-02-08 Thread Marek Stepanek
On 08.02.2013 5:27 PM, Patrick Woolsey wrote: At 10:24 +0100 02/08/2013, Marek Stepanek wrote: [...] In former times we were used to do this like follows: highlight the space hit Apple ALT + E (now the space is in the replace of the find) then highlight what you want to replace - in your case

Extend selection with search

2011-11-18 Thread Marek Stepanek
Hello all! Once upon a time there was a feature in the search window extend selection with search backwards or the other direction. I have a long file with email sources. The attached files encoded with base64 are difficult to strip out. I have to scroll a long while to get to the end of

Use worksheet with LaTeX

2011-10-07 Thread Marek Stepanek
Hello all! I am wondering, how to use a worksheet in BBEdit. I never used a worksheet and probably I misunderstood it. Could somebody help me to use it with LaTeX? When using BBEdit for LaTeX, I am switching to the Terminal, to do the following commands: pdflatex file open file.pdf

Re: Use worksheet with LaTeX

2011-10-07 Thread Marek Stepanek
Thank you for the quick answers. Herbert, Maarten you where right. It was pretty clear, that my worksheet was starting in my ~/ home folder. I changed the directory with cd to the folder, where my file.tex and file.worksheet are saved. And now it is compiling as it is intended. But you are

Re: Repeating a Grep Search Until It Fails

2011-09-24 Thread Marek Stepanek
-- ___ the embassy for talented young musicians Podium International | Marek Stepanek | ms...@podiuminternational.org http://www.PodiumInternational.org ___ -- You received this message because you are subscribed to the BBEdit Talk

Re: Automatic TeX quotes?

2011-09-10 Thread Marek Stepanek
On 05.01.2011 12:57 PM, Andrew J wrote: Hi, I generate and edit quite a few LaTeX documents. Like many people, I am considering the move over from TextMate to BBEdit, which has excellent LaTeX support. I have been very happy with Maarten Sneep's compilation scripts

Save question in Lion

2011-08-16 Thread Marek Stepanek
Hello all! (I little bit off-topic!) I just stumbled over a little problem, saving the ingenious paragraph-filter of John Delacour: Being a two weeks user of Lion, and user of shell and vim, I did not realized, that the normal user is not able to save files into ~/Library any more ...

Re: Save question in Lion

2011-08-16 Thread Marek Stepanek
Thank you all for these precious tips! I am loosing contact to my MacOS, being only in my shell ... Best greetings to all marek -- 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

Re: Adding text to end of multiple files

2011-08-02 Thread Marek Stepanek
On 08.02.2011 7:14 AM, Charlie Garrison wrote: Good afternoon, I need to add text to the end of a bunch of files from a couple of directories. It sounds easy but I'm having trouble finding the right method. The tricky part is the text needs to include the file name. That's easy enough to do

Re: Regex Find

2011-01-19 Thread Marek Stepanek
On 18.01.2011 22:02, Ronald J Kimball wrote: On Tue, Jan 18, 2011 at 01:29:50PM -0600, Christopher Stone wrote: Hey Folks, I've been looking at positive and negative assertions until my head is spinning. :) What I want to do is find the entirety of line 1 but *not* line 2: ./Address

Re: Regex Find

2011-01-19 Thread Marek Stepanek
On 19.01.2011 14:40, Simdude wrote: You can't assume you're searching for Address Book.app. If you don't know what can be before the .app, the search has to be a little more clever. Sorry I misunderstood the original posting. The answer of Ronald is as ever ingenious. Greetings marek

Re: Help to set up a filter!

2011-01-13 Thread Marek Stepanek
On 12.01.2011 23:15, Doug McNutt wrote: The $ may be referring to the last match as it occurs in a previous loop operation instead of what you think. But why do you need the loop at all? The g flag will repeat each substitute over the whole text if the target is $_ instead of

Help to set up a filter!

2011-01-12 Thread Marek Stepanek
Hello all! I want to clean up a film script in a bad html shape. I have replaced nearly every thing, which has been formatted by a pre /pre, many white spaces and line breaks. Rest again the many actors texts which are hanging between /p and p tags. To give an example here the original: ...

Re: A useful missing BBEdit's command

2010-12-15 Thread Marek Stepanek
On 15.12.2010 14:00, Mike wrote: I've been waiting for this feature for over 14 years. Me too, since I started to work with BBEdit. Would be really neat to have this command with a short cut. marek -- You received this message because you are subscribed to the BBEdit Talk discussion

Re: Help using grep

2010-11-22 Thread Marek Stepanek
V C00:02:19:18 00:02:25:07 00:02:19:18 00:02:25:07 * FROM CLIP NAME: 5860.tif * FROM CLIP IS A STILL -- ___ the embassy for talented young musicians Podium International | Marek Stepanek | ms...@podiuminternational.org

Re: Completion: Use a specific (natural language) dictionary?

2010-08-10 Thread Marek Stepanek
On 10.08.2010 08:43, David Winter wrote: Under Text Completion, the BBEdit manual says : Completions are derived from a variety of sources, including (in no particular order) [...] dictionary words provided by the system spelling service. I'm running OS X in English. However, I need/want

Re: Am trying to extract all images in an HTML file and put them into another file

2010-07-11 Thread Marek Stepanek
On 02.07.2010 23:02, Jonah Lee Walker wrote: So I want to either write an applescript to automate a search for multiple files, or a search expression so that I can extract everything between theimg src= and border=0 in the document and have them all pasted into another document, skipping

Re: Display number of characters in selection

2010-05-15 Thread Marek Stepanek
On 15.05.2010 19:41, Gabriel Roth wrote: Partial answer to my own question: On Sat, May 15, 2010 at 1:35 PM, Gabriel Rothgabe.r...@gmail.com wrote: Does anyone know of a way to make BBEdit display the number of characters in the current selection? Clicking on the document statistics in the

Re: move to next blank line?

2010-05-12 Thread Marek Stepanek
On 12.05.2010 09:47, Roland Küffner wrote: Am 12.05.2010 um 02:06 schrieb wallabadah: I have not used AppleScript before - but it appears to be an ideal solution in this case. I started by recording, then a little bit of editing. I prefer to have the wrap around option turned off in this case,

Re: how to empty the clipboard?

2010-05-12 Thread Marek Stepanek
On 12.05.2010 15:43, stratboy wrote: Hi! I like th cut/copy append commands :) But one problem: how can I empty the clipboard so that new copy append calls will start appending from nothing? Hi stratboy! Did I understand your question? Simply make cmd + C for the first copy. The

Re: Use file name in replace pattern

2010-02-14 Thread Marek Stepanek
Here a Perl solution: I am not very good in Perl and your question was too vague to make a script adapted for your needs. I made several files in a certain folder containing this is file: This script adds to this the file name: this is file: filename. #!/usr/bin/perl use warnings;

Re: LaTeX Clippings does not show up!

2009-09-07 Thread Marek Stepanek
Marek Stepanek wrote: Hello all! After new install on a new computer, my LaTeX-Clippings does not show up in BBEdit. There is probably something wrong with the Resource Fork. In the Finder this file is shown as a file, to open with Excalibur (! why that? I'am never using

LaTeX Clippings does not show up!

2009-09-05 Thread Marek Stepanek
Hello all! After new install on a new computer, my LaTeX-Clippings does not show up in BBEdit. There is probably something wrong with the Resource Fork. In the Finder this file is shown as a file, to open with Excalibur (! why that? I'am never using it!). In my shell it appears normally as

Count table rows and insert the number in rowspan

2009-08-19 Thread Marek Stepanek
Hello all! I have a question about a perl filter. I have a complicate table with a frame around, which consists of a td with a rowspan until the bottom of the table. Each time I insert new rows, I have to count the table rows tr again to adapt the rowspan to my table. My idea of a perl

Re: Unix filter

2009-07-09 Thread Marek Stepanek
Simdude wrote: I have used the unix filters on BBedit where I have created a filter and run from the menu, but I'm wondering how to filter text through a quick and dirty unix filter. i.e., let's say I have a text file with tab delimited fields and just want to pull out a few columns. On the

Re: Perl-Filter: Count tabs of each line

2009-06-04 Thread Marek Stepanek
Ronald J Kimball wrote: snip /[^\t]+?\t/ returns true or false depending on whether the regex matches. The foreach there is iterating over a single-item list containing either '1' or ''. Try this: #!perl use warnings; use strict; my $count; while () { $count = 1;