Re: RegExp and search / replace question - removing "" when around a single word without whitespace

2024-04-19 Thread Rainer Krug
nshot 2024-04-18 at 16.42.39.png] >> >> HTH >> >> Jean Jourdain >> On Thursday, April 18, 2024 at 3:19:21 PM UTC+2 Kerri Hicks wrote: >> >>> Maybe this will help? >>> >>> --Kerri >>> >>> [image: Screenshot 2024-04-18

Re: RegExp and search / replace question - removing "" when around a single word without whitespace

2024-04-18 Thread Rainer Krug
> can you be more specific? What is the determining factor? > >- Exactly "this" > this >- Only single words > > pls give some examples of before and after so we can see logic. thanks. > > On Thu, 18 Apr 2024 at 08:04, Rainer Krug wrote: > >&

RegExp and search / replace question - removing "" when around a single word without whitespace

2024-04-18 Thread Rainer Krug
Hi I had a regex but can't find it anymore (I found the "Manage Pattern" only now - it always reminds me of Google...). Could somebody give me a regex which removes the `"` around "this" word, but not "this word"? Thanks Rainer -- This is the BBEdit Talk public discussion group. If you

Re: Deleting all \n which are not followed by a number and a .

2023-07-07 Thread Rainer Krug
Pattern : `\n(?!\d+\.)` > Replace Pattern: ` ` > > Note that the Replace pattern is a space to avoid concatenating together > the lines. > > Best regards, > > Jean > > On Friday, July 7, 2023 at 6:24:09 PM UTC+2 Rainer Krug wrote: > >> OK - found it. >> Search Patt

Re: Deleting all \n which are not followed by a number and a .

2023-07-07 Thread Rainer Krug
OK - found it. Search Pattern: `^[0-9]\. ` Replace Pattern: `###\0` Same for two digits. I was always trying `\1'... Thanks Pattern Playground!!! On Friday, July 7, 2023 at 6:10:51 PM UTC+2 Rainer Krug wrote: > I have a file as followed: > > 4. Leach M et al.: Equity and susta

Deleting all \n which are not followed by a number and a .

2023-07-07 Thread Rainer Krug
I have a file as followed: 4. Leach M et al.: Equity and sustainability in the anthropocene: a social–ecological systems perspective on their intertwined futures. Glob Sustain 2018, 1 This important review by some of the leading authorities in the field, summarizes the state of knowledge

Diff of markdown files in git with strikethrough etc

2022-05-09 Thread Rainer Krug
Hi \ I am looking for a diff formater for markdown documents in GitHub. I have found https://github.com/jduckles/pwdiff and the output looks like what I would like to have e (see https://raw.githubusercontent.com/jduckles/pwdiff/master/example/output.png). Does anybody has any experiences

Re: Formatting markdown tables in bbedit

2022-04-24 Thread Rainer Krug
things -- in BBEdit, > as well as other apps. If you use Markdown a lot, it's worth checking out. > > https://brettterpstra.com/projects/markdown-service-tools/ > > -- Watts > > On Apr 13, 2022 at 07:32:00, Rainer Krug wrote: > >> Thanks brilliant - that worked, but I had to

Re: Formatting markdown tables in bbedit

2022-04-13 Thread Rainer Krug
tify'); > process.stdin.setEncoding('utf8'); > > process.stdin.on('data', function(text) { > console.log(CliPrettify.prettify(text)); > }) > > HTH, > > Jean Jourdain > > On Wednesday, April 13, 2022 at 1:48:44 PM UTC+2 Rainer Krug wrote: > >> Hi >&

Formatting markdown tables in bbedit

2022-04-13 Thread Rainer Krug
Hi How can I align the | in a markdown table in bbedit? Any scripts / filters which help me working with tables in bbedit? All the ones I found are REALLY old. Thanks, Rainer -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please

Re: Running script in background - i.e. not blocking BBEdit

2022-03-28 Thread Rainer Krug
ject ~/Desktop/quarto > % bbedit ~/Desktop/quarto/quarto.qmd > > 5. Use the BBEdit > Markup > Preview menu item to render your file. > > Your document should be rendered and re-rendered whenever you save the > file in BBEdit. > > ⚠️ Apparently for t

Re: Running script in background - i.e. not blocking BBEdit

2022-03-25 Thread Rainer Krug
& /dev/null & >> >> Stop quarto preview: >> >> #!/bin/bash >> pid=$(ps -A -mm | grep -v grep | grep >> "/Applications/quarto/bin/quarto.js preview ${BB_DOC_PATH}" | awk '{print >> $1}') >> kill -9 $pid >> >> HTH

Re: Running script in background - i.e. not blocking BBEdit

2022-03-24 Thread Rainer Krug
pidfile" rm -f "$pidfile" ``` They run nicely, only the initial backgrounding is not working and I have to Cancel the dialog box. Also, I do not see a dialog box in the Stop script. But I am happy with how it works (although automatic backgrounding ad closing ot=f the dialog box

Re: Running script in background - i.e. not blocking BBEdit

2022-03-24 Thread Rainer Krug
own the quarto > process so that bash doesn’t wait around for it to finish before exiting. > > P.S.: Shell scripting is a minefield and I suggest taking a look at > shellcheck <https://www.shellcheck.net/> if you haven’t already. > > Cheers, > -sam > > On 23 Mar 2022, at

Re: Running script in background - i.e. not blocking BBEdit

2022-03-23 Thread Rainer Krug
ctory. (Or some other > directory and change the launchAgent accordingly.) > > • Start the launchAgent in the terminal with: > > % launchctl load > /Users//Library/LaunchAgents/quarto_watcher.plist > > • Now whenever a file with extension ".quar

Running script in background - i.e. not blocking BBEdit

2022-03-22 Thread Rainer Krug
I have an using quarto to render technical documents (it is very nice!) and writing them in BBEdit. Now I have a script which I want to start from BBEdit as I do with all scripts, but this script runs continuously and updates the preview. I would very much like to have

Re: Confused Syntax highlighting in markdown

2022-03-21 Thread Rainer Krug
Or: how can I have a `_` as a `_` and not as markup? On Monday, March 21, 2022 at 3:12:33 PM UTC+1 sie...@barebones.com wrote: > On 21 Mar 2022, at 9:49, Rainer Krug wrote: > > > Is this a bug, or a limitation (LaTeX math, underscores as underscores in > > the text, ... ? >

New Language definition inion by merging two?

2022-03-17 Thread Rainer Krug
Is it possible to merge two language definitions to get a new one? I am using Critic Markup (https://github.com/CriticMarkup/CriticMarkup-toolkit) in a markdown document, and would like to have the markdown as well as the Critic Markdown syntax highlighting? Thanks, Rainer -- This is the

Re: Project specific keyboard shortcuts?

2022-02-04 Thread Rainer Krug
appropriately. > if vConfig contains "optionA" then > set vCommand to "do A command" > else if vConfig contains "optionB" then > set vCommand to "do B command" > else > set vCom

Project specific keyboard shortcuts?

2022-02-03 Thread Rainer Krug
Hi Is it possible, to run project / folder specific keyboard shortcuts? In different projects I do different things regularly and would like to put these in the same keyboard shortcut. Thanks, Rainer -- This is the BBEdit Talk public discussion group. If you have a feature request or need

Re: BBEdit, Subversion and Monterey

2022-01-28 Thread Rainer Krug
Glad that it worked. It is the other way around - it was /usr/local for the intel Macs, but for the M1 Macs, it moved to /opt/homebrew. On Friday, January 28, 2022 at 2:38:10 PM UTC+1 miste...@gmail.com wrote: > Thank you all for your thoughtful answers and suggestions. I’ll leave here > one

Re: BBEdit, Subversion and Monterey

2022-01-27 Thread Rainer Krug
that should be 'homebrew' - autocorrect. https://docs.brew.sh/Installation On Thursday, January 27, 2022 at 6:39:36 PM UTC+1 Rainer Krug wrote: > Home-brew is your friend here: > > 1) install home-brew > 2) install subversion (`brew install subversion`) > > I do nearly all

Re: BBEdit, Subversion and Monterey

2022-01-27 Thread Rainer Krug
Home-brew is your friend here: 1) install home-brew 2) install subversion (`brew install subversion`) I do nearly all installations via home-brew and no problems so far. Cheers, Rainer On Thursday, January 27, 2022 at 2:46:44 PM UTC+1 miste...@gmail.com wrote: > Good [period of the day]

Re: Typewriter mode possible?

2021-11-24 Thread Rainer Krug
writer mode. > > On Wednesday, November 24, 2021 at 12:15:23 PM UTC+1 Rainer Krug wrote: > >> Interesting. But I have to use the shortcut ⌃↩︎ to execute the typewriter >> scrolling - so it is not automatic. Correct? >> >> On Wednesday, November 24, 2021 at 10:21

Re: Typewriter mode possible?

2021-11-24 Thread Rainer Krug
n error aMessage > display alert aMessage > end try > -- > > HTH, > > Jean Jourdain > > > On Monday, November 22, 2021 at 11:02:52 AM UTC+1 Rainer Krug wrote: > >> Hi >> >> is it possible to have typewriter mode (i.

Typewriter mode possible?

2021-11-22 Thread Rainer Krug
Hi is it possible to have typewriter mode (i.e. the line I am typing in stays in the middle off the screen) in BBEdit? I haven't found anything along these lines. Did I miss it? Thanks, Rainer -- This is the BBEdit Talk public discussion group. If you have a feature request or need

Re: Set selection point to next line in AppleScript

2021-08-05 Thread Rainer Krug
Replied to fast. I changed `startLine *of* selection` to `endLine *of* selection` and now it moves to the next line after the selection. Thanks, Rainer On Thursday, August 5, 2021 at 1:27:40 PM UTC+2 Rainer Krug wrote: > Perfect. Thanks. > > > On Thursday, August 5, 2021 at 12:

Re: Set selection point to next line in AppleScript

2021-08-05 Thread Rainer Krug
Perfect. Thanks. On Thursday, August 5, 2021 at 12:52:26 PM UTC+2 listmei...@gmail.com wrote: > On Aug 05, 2021, at 05:15, Rainer Krug wrote: > > > I have the following AppleScript to execute het selected text in R and > return the focus to BBEdit: > > ... > &

Set selection point to next line in AppleScript

2021-08-05 Thread Rainer Krug
I have the following AppleScript to execute het selected text in R and return the focus to BBEdit: *tell* *application* "BBEdit" *set* the_selection *to* (selection *of* *front* *window* *as* *string*) *if* (the_selection) *is* "" *then* *try* *set* the_selection *to* *line* (*get* startLine

Re: Window management and virtual desktop question

2021-06-11 Thread Rainer Krug
OK - than I withdraw my suggestion. And I also assume, you have to automate your fingers in this case... On Friday, June 11, 2021 at 4:17:17 PM UTC+2 Patrick Woolsey wrote: > On 6/11/21 at 10:02 AM, rai...@krugs.de (Rainer Krug) wrote: > > >I would assume, that you can do it w

Re: Window management and virtual desktop question

2021-06-11 Thread Rainer Krug
I would assume, that you can do it with Keyboard Maestro via a macro and possibly apple script? On Friday, June 11, 2021 at 3:55:42 PM UTC+2 Patrick Woolsey wrote: > On 6/11/21 at 9:15 AM, thep...@gmail.com (ThePorgie) wrote: > > >Can you not hit the "Command" + "Up Arrow" then drag the window

Re: Two files in the same window

2021-05-28 Thread Rainer Krug
By pressing shift can actually share two windows - and on the Advanced Tab, I can share a screen region (Zoom Version: 5.6.4 (765)) Cheers, Rainer On Friday, May 28, 2021 at 8:35:36 AM UTC+2 Jan Erik Moström wrote: > Thanks to all of you for confirming my own findings. > > In this case I

.bbpackage with scripts for working with R

2021-05-11 Thread Rainer Krug
Hi I started compiling a .bbpackage with scripts for working with R files (thanks jj). You can find it at https://github.com/rkrug/R_bbpackage Any feedback is welcome. Cheers, Rainer -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical

More order in Scripts menu

2021-05-11 Thread Rainer Krug
Hi I have some scripts in the script menu which contains general scripts and scripts for specific languages. What is the easiest way of sorting these? I am using at the moment e.g `R)` for R sripts. but is there something else? Can I define dividers in the Scripts menu? Can I define submenus

Re: Multi-File Search - I don't get the Filter to work!

2020-11-20 Thread Rainer Krug
On Friday, November 20, 2020 at 2:18:09 PM UTC+1 sie...@barebones.com wrote: > On 20 Nov 2020, at 4:46, Rainer Krug wrote: > > > Hi > > > > I have a folder Project in which I have multiple R projects, each > > containing a folder called `R` and in these fol

Multi-File Search - I don't get the Filter to work!

2020-11-20 Thread Rainer Krug
Hi I have a folder Project in which I have multiple R projects, each containing a folder called `R` and in these folders called `R` are files with the extension `.R`. In this folder Project are numerous other large folders with many other files. I have selected Search in Recent Folders the

Assign shortcuts to scripts

2020-08-25 Thread Rainer Krug
I did it, but I can't remember how - how can I assign keyboard shortcuts to scripts in BBEdit? Do I have to go through System Preferences, or can I do it within BBEdit? Thanks,. Rainer -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical

BBEdit and scientific articles - autocomplete for citation keys (@Author2002) from bibtex file or Zotero?

2020-06-26 Thread Rainer Krug
I started using BBEdit for writing scientific articles. Is there a way, of having autocomplete of the citation keys (e.g. Author2002) based on a bibtex file or on Zotero? Thanks, Rainer -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical

Re: Document tree / outline / TOC for navigation?

2020-06-23 Thread Rainer Krug
On Tuesday, June 23, 2020 at 4:14:26 PM UTC+2, Patrick Woolsey wrote: > > On Jun 23, 2020, at 08:21, Rainer Krug > > wrote: > > > > Well - the question was "is it possible to customise that drop down > display to have indentation, or is there a way of seeing

Re: Document tree / outline / TOC for navigation?

2020-06-23 Thread Rainer Krug
, June 22, 2020 at 5:23:38 PM UTC+2, Greg Raven wrote: > > This sounds to be a feature request, hence: > > https://groups.google.com/forum/#!topic/bbedit/UXFkRnxg77M > > On Friday, June 12, 2020 at 5:04:04 AM UTC-7, Rainer Krug wrote: >> >> Hi >> >> I real

Document tree / outline / TOC for navigation?

2020-06-12 Thread Rainer Krug
Hi I really love BBEdit. I use it to edit (R)markdown documents as well as R code. There is only one thing which I am missing, which is in RStudio, i.e. an outline view of the document for quick navigation. I have found the one in the dropdown on the top of the document, but the fact that it

Remove non-existing Projects / Files from History

2020-04-08 Thread Rainer Krug
Hi I know how to remove all items in `Open Recent`. But is there a way of removing only the ones which point to a non-existing file / Project? Thanks, Rainer -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email

Synchronising location in md file with preview?

2020-01-16 Thread Rainer Krug
Hi until recently, I used Atom which has a great feature: it synchronises the location of the cursor in the md file with the location shown in the preview of the md file. Is this also possible in BBEdit? Thanks, Rainer PS: I moved towards BBEdit, because the startup of Atom was taking ages,