Re: Navigating folders and files in a project sidebar from the keyboard?

2019-02-07 Thread Brian Christiansen
Thanks, Barbara. I appreciate you sharing what you’ve learned. I haven’t been 
working in BBEdit projects of late, but I’ll tuck this away next time I’m back 
at it!
On Feb 7, 2019, 5:06 PM -0500, Barbara Snyder , wrote:
> Brian --
>
> What I have discovered (noted earlier) is the following:
>
> If I am in the editing window, pressing ctrl-shift-tab THREE times gets me to 
> the list of files at the top of the sidebar.
>
> Then I can use arrow keys to go up and down, and press Enter to open (if the 
> file is not already open).
>
> Then ctrl-tab THREE times gets me back to the editing window.
>
> -- Barbara
>
> On Monday, March 5, 2018 at 3:08:18 PM UTC-8, Brian Christiansen wrote:
> > Hello,
> >
> > After searching the user manual (love that thing) and this group, I can't 
> > find anything on getting around within the sidebar without taking my hands 
> > off the keyboard.
> >
> > What I am picturing is,
> >
> > 1. Key combo to shift focus to the sidebar
> > 2. Keys to move through the hierarchy, in the manner of navigating the 
> > Finder from the keyboard.
> > 3. Perhaps CMD-O to open a file
> > 4. Key combo to shift focus back to the editor pane.
> >
> > Am I just missing it? I've wanted to do this for years, and have never 
> > gotten around to asking. The majority of my work is within Projects, so for 
> > me the Sidebar is there 95% of the time.
> >
> > Thank you,
> > ~brian
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
> ---
> You received this message because you are subscribed to a topic in the Google 
> Groups "BBEdit Talk" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/bbedit/t5szJm2_Mgg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Use of `Edit Markup…` Popover in files without `html` extensions?

2018-03-10 Thread Brian Christiansen
This is borderline a feature request… but I'm first curious if other people 
are seeing this and not just me. Or maybe I'm the only person using BBEdit 
that does this?

I'm often working in Markdown files that are the backend of web systems. 
The most well known example of this set up would be content files in Jekyll 
(jekyllrb.com). They are nominally ".md" files, but are really a mix of 3 
possible things: the front manner is YAML. The primary content section is 
Markdown (there are other options), and within Markdown, it is valid to 
write HTML inline, as the canonical version of Markdown does not do 
everything HTML does (intentionally so).

Here's the scenario: I'm writing in the content section of a Jekyll file, 
but need to wrap something in a span to apply a special style via class. 
Typically, I'd mash down Cmd+Shift+, (custom shortcut because HTML tags 
open with `<` which is shift+,) and then start typing the tag contents.

But that command doesn't work in files that do not end with the .HTML 
extension.

However, I can summon the other shortcuts I've created for other HTML 
elements and get the same popover editor, with say Ctrl+Cmd+k to summon 
 (yep, that's obscure, but I'm writing online software manuals at the 
moment).

I'd love to be able to summon the Edit Markup popover in any file where 
HTML might possibly be a valid input. I often use it to edit the contents 
of the tags a little more quickly (I'd **love** to use it to edit matched 
pairs of tags, say switching an `em` to a `strong` or a `div` to `article`. 
This is a fairly common thing for me.) I've veered off into speculative 
feature request territory, so I'll stop.

Am I the only one else who see this "No editing Markup here!" behavior in 
"non-HTML" documents? Perhaps is there a really good reason I'm barred from 
this?

Thanks all.

Best,
~brian
@briandigital

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Navigating folders and files in a project sidebar from the keyboard?

2018-03-10 Thread Brian Christiansen
> defaults write com.barebones.bbedit ProjectsListCanAcquireKeyboardFocus 
-bool YES

Patrick, thank you. Now I have to struggle with whether I actually like 
this or not. Because the Project sidebar is instant-activation, by which I 
mean, it opens the file as soon as it's highlighted. So if I want to arrow 
down 10 files to open the 10th, I wind up opening 1–10. On first 
experiment, I opened 30 files in 1.5 seconds, unintentionally. ("This is 
why it's not enabled by default behavior", Patrick thinks to himself.)

However, playing with this in the Currently open documents pane, that I've 
liked a lot.

> CMD + OPT + Left or Right Arrow Key

David! How are you. Do you write your books in BBEdit? Thanks for the note. 
I had this set to Opt+Cmd+ [ & ] -- mimicking the browser shortcut to 
switch between open tabs. I just switched it to use the arrow keys after 
realizing that combo is not a text control combo like opt+right-arrow or 
cmd+right-arrow. I'll try this for a bit and see how it feels. Thanks!

> Any tricks for getting the focus on the [project’s] file list WITHOUT 
having to click on it (i.e., without taking our hands off the keyboard)? We 
want to save EVERY calorie that we can. 

Yes, sir, Alfredo! Ever since I read this one StackOverflow post about Vim 
years ago, I've been on a quest to use BBEdit in a similar fashion… when 
I'm in code, I want to pretend the mouse does not exist (or in my case, 
trackpad.)

> Control-Tab
> Control-Shift-Tab

Thank you, Chris! This one is completely new to me.

I appreciate everyone's input.

Best,
~brian
@briandigital

On Wednesday, March 7, 2018 at 9:34:45 PM UTC-5, Alfredo wrote:
>
> Hey Chris,
>
> These two shortcuts work great.
>
> Thanks!
>
> Alfredo 
>
> On Mar 7, 2018, at 5:52 PM, Christopher Stone  > wrote:
>
> On 03/06/2018, at 16:33, F. Alfredo Rego  > wrote:
>
> Any tricks for getting the focus on the [project’s] file list WITHOUT 
> having to click on it (i.e., without taking our hands off the keyboard)?
>
> --
>
> Hey Alfredo,
>
> Control-Tab
>
> Control-Shift-Tab
>
> --
> Best Regards,
> Chris
>
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "sup...@barebones.com " rather than posting to the group.
> Follow @bbedit on Twitter: 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+un...@googlegroups.com .
> To post to this group, send email to bbe...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit.
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Navigating folders and files in a project sidebar from the keyboard?

2018-03-05 Thread Brian Christiansen
Hello,

After searching the user manual (love that thing) and this group, I can't 
find anything on getting around within the sidebar without taking my hands 
off the keyboard. 

What I am picturing is,

1. Key combo to shift focus to the sidebar
2. Keys to move through the hierarchy, in the manner of navigating the 
Finder from the keyboard.
3. Perhaps CMD-O to open a file
4. Key combo to shift focus back to the editor pane.

Am I just missing it? I've wanted to do this for years, and have never 
gotten around to asking. The majority of my work is within Projects, so for 
me the Sidebar is there 95% of the time.

Thank you,
~brian

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Global Keyboard Shortcut for BBEdit Scratchpad?

2017-09-06 Thread Brian Christiansen
This worked brilliantly, Fletcher. I wouldn't have thought to create a 
service to accomplish this. Thanks so much for taking the time to write out 
the script.

Best,
~brian

On Friday, September 1, 2017 at 12:09:10 PM UTC-4, flet...@cumuli.com wrote:
>
> You can do this with an Automator Service and the global Keyboard 
> Shortcuts system preferences. Check out the Stack Exchange article below. 
>
>
> https://apple.stackexchange.com/questions/175215/how-do-i-assign-a-keyboard-shortcut-to-an-applescript-i-wrote
>  
>
> Open Automator and create a new Service. Set the input to No Input. Add a 
> Run AppleScript action with this AppleScript. 
>
> tell application "BBEdit" 
> activate 
> open scratchpad document 
> set the index of the window of scratchpad document to 1 
> end tell 
>
> Save that as as "Scratchpad.workflow" or something similar. 
>
> Now, go into System Preferences and open Keyboard and the Shortcuts tab. 
> Select Services and scroll down to General. Your new service should be 
> listed there. Assign it a keyboard shortcut. I assigned it to Command-` and 
> it does seem to work. 
>
> [fletcher] 
>
>
> > On Sep 1, 2017, at 8:41 AM, Brian Christiansen  > wrote: 
> > 
> > Hello, 
> > 
> > I use the scratchpad all day long… I compose messages for pretty much 
> anything there first, before pasting them into email, Slack, Basecamp, web 
> forms, whatever. I would love a universal keyboard shortcut that could be 
> triggered from any app or the Finder that would bring me the Scratchpad 
> instantly. 
> > 
> > I thought I might be able to create one in Sys Prefs > Keyboard > 
> Shortcuts, but I struck out. I experimented with LaunchBar's ability to 
> trigger services, and there is an "Append to BBEdit Scratchpad" service, 
> but unfortunately, it takes its service very literally… it'll append the 
> selection, but it won't make the Scratchpad visible. 
> > 
> > Does anyone have something to do this currently? Thanks! 
> > 
> > P.S.—this message was written on the Scratchpad. 
> > 
> > -- 
> > This is the BBEdit Talk public discussion group. If you have a 
> > feature request or would like to report a problem, please email 
> > "sup...@barebones.com " rather than posting to the group. 
> > Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups "BBEdit Talk" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to bbedit+un...@googlegroups.com . 
> > To post to this group, send email to bbe...@googlegroups.com 
> . 
> > Visit this group at https://groups.google.com/group/bbedit. 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Global Keyboard Shortcut for BBEdit Scratchpad?

2017-09-01 Thread Brian Christiansen
Hello,

I use the scratchpad all day long… I compose messages for pretty much 
anything there first, before pasting them into email, Slack, Basecamp, web 
forms, whatever. I would love a universal keyboard shortcut that could be 
triggered from any app or the Finder that would bring me the Scratchpad 
instantly. 

I thought I might be able to create one in Sys Prefs > Keyboard > 
Shortcuts, but I struck out. I experimented with LaunchBar's ability to 
trigger services, and there is an "Append to BBEdit Scratchpad" service, 
but unfortunately, it takes its service very literally… it'll append the 
selection, but it won't make the Scratchpad visible.

Does anyone have something to do this currently? Thanks!

P.S.—this message was written on the Scratchpad.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Placeholders - what more can I do with them?

2016-07-08 Thread Brian Christiansen
Folks,

I've used the <##> placeholder in BBEdit for years. I'm wondering if I am 
getting everything I can out of it. For example,

Every few months, I have to fill in a YAML document with strings of text 
(HTML and or MD, sometimes mixed). I delete the YAML values of a prior 
document, and put placeholders in their place. Then I load up my clipboard 
manager with let's say 10 strings (textual content to be displayed on a web 
site) of materials from their source (usually a Google Doc), and I tab 
through the placeholders and paste in the strings. (the formatting changes 
every few months, so scripting this is not something I'm going to attempt)

Sometimes, the items I have to edit, though, aren't these random content 
strings, but instead one of two options, e.g. "Monday" vs "Wednesday". I've 
been marking those with <#Monday|Wednesday#>. Is there a way through the 
keyboard to say to BBEdit "Please replace this placeholder with the first 
of the two options in the placeholder", e.g., "Make this instance of 
`<#Monday|Wednesday#>` become `Monday`.

All the time I've used placeholders, I've always felt like there is more 
waiting for me to unlock with them… but couldn't glean anything from the 
manual on how to take them to the next level. This comes up a lot with CSS 
clippings too. E.g. `line-height: <#normal|15px|2em#>;` —ideally in this 
situation, I want to tap a trigger key to highlight the placeholder, then a 
second trigger to select one of the 3 options (`2em`) and have my cursor 
select the value (`2`) so I could overwrite it, and then a final trigger to 
close the operation which hops the cursor to the right of the semi-colon.

Any thoughts on placeholders? Am I totally missing something? Have the 
absolute wrong expectations? Call me a dreamer?

Thanks,
~brian

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Syntax Colouring: YAML, MD and Jekyll

2016-06-19 Thread Brian Christiansen
Here's the trick, and it's an "issue" I've dealt with for years, as the system 
Statamic (Statamic.com) uses essentially the same syntax: the file extension is 
HTML or MD, and the text in the file is HTML or MD, but that MD (etc) lives as 
the "value" in a YAML key: value pair. As such, BBEdit's syntax coloring gets 
all confused. In fact sometimes when I'm dealing with a string of HTML as the 
value, I can't even envoke the "Edit Markup" command, because BB doesn't notice 
my cursor is in the middle of a string of HTML (I imagine because the file type 
is .md, even though HTML is fully parsable within a line of MD.

I believe there's a "Ruby in HTML" syntax? (Forgive me, I'm on my iPad right 
now, not near my Mac) It would be amazing if there was a way to set two 
syntaxes, one for the key: value language, and one for the value strings. So 
you could say [pull down 1:] YAML (with [optional pull down 2:] Mardown. I 
always thought I was fringe enough for this not to be worth writing to BB with 
this as a feature request—but honestly, Jekyll is wildly popular right now, I 
may be less and less fridge by the day. Secondly, it would also be awesome to 
allow the "Edit Markup" command in any syntax, since HTML is stuck inside many 
scripting languages. This request is probably far less fringe.

~brian

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: html2txt.py as a text filter

2016-04-19 Thread Brian Christiansen
Kerri, Sam,

Wow. This is embarrassing. So… now it just magically _works._ I'm not sure 
what changed. Last time I tried my old version of the script, and a fresh 
download from Aaron's account, `html2text/html2text.py 
` and both resulted in an error 
message I couldn't interpret. When I went back to regenerate the error to 
post here, I realized I deleted all copies of the old script. So I 
downloaded a fresh copy and… it just worked. Thanks for being the trigger 
that made that happen!

As for everyone else, TJ & Patrick, thank you. My comments about wanting 
this to be self-contained is mostly because I already have a web dev 
environment set up under my Mac, and I don't want lots of things set up 
where I'm not sure what's going on down there, both so it doesn't interfere 
with what's part of my work environment, and so I know all the things that 
are going on down there. I'm just barely in the know about what I've set up 
with mamp, homebrew, npm, and a few more tools. Unix-y structures are so 
obtuse to me. I've even taken a Linux Foundation course, and "the why" of 
where things are where they are and why they're named what they're named is 
still a partial mystery to me. And the answers of the internet are usually 
written in experienced developer speak. I am inexperienced barely developer 
(actually I'm an experienced UX guy who can code front-end and knows a 
minute amount of js, python and php). If anyone has a good source that 
approaches the explanations from this angle, please pass them along. Sorry 
to vent.

Thanks again,
~b

On Tuesday, April 19, 2016 at 9:06:27 AM UTC-4, Kerri Hicks wrote:
>
> On Mon, Apr 18, 2016 at 1:27 PM, Sam Hathaway  > wrote:
>
>> html2text.py from https://github.com/html2text/html2text.py works fine 
>> for me in BBEdit 11.5.1 on MacOS 10.10.5. I clicked “Download ZIP” on the 
>> GitHub page, unzipped the download, and dragged the resulting html2text.py 
>> file into my Text Filters folder.
>>
>
> This worked for me, as well. After I put the html2text.py file (that's 
> really all you need from the zip package) into my Application Support -> 
> BBEdit -> Text Filters folder (my Application Support folder is in Dropbox, 
> but some folks have it in Library, instead), I opened an HTML document in 
> BBEdit, and then chose Text -> Apply Text Filter -> html2txt. It turned the 
> contents of my HTML file into pretty believable Markdown. 
>
> I did have to change the document type from HTML to Markdown (in the bar 
> at the bottom of the editor window) to get the syntax coloring and Preview 
> in BBEdit to display properly. 
>
> Hope this helps,
> --Kerri
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: html2txt.py as a text filter

2016-04-18 Thread Brian Christiansen
Patrick,

Thanks for the reply, I appreciate your suggestions. Unfortunately, neither 
of those options are within my current skill set, nor do I have time to 
level them up; I am no scripter. I am a little surprised no one else in our 
community was using this script, as I thought it was fairly popular amongst 
the Markdown crowd, especially since it doesn't need anything setup on your 
Mac to run, except for having Python installed, as OS X has by default. You 
just drop the .py into the Text Filters folder, and the magic happens. 
Maybe my reply will bump this thread so someone familiar with this can 
offer how they've worked around it. If not, ¯\_(ツ)_/¯ and thanks for all 
the fish.

Best,
~brian


On Monday, April 11, 2016 at 5:10:11 PM UTC-4, Patrick Woolsey wrote:
>
> Though I haven't used this particular tool before, I would like 
> to offer the following general observation: 
>
> Please keep in mind that a text filter does not _have_ to be a 
> single executable file -- you can also symlink a binary, or use 
> an AppleScript, shell, or Unix code (Perl/Python/Ruby/etc) 
> `wrapper` to invoke _any_ desired executable -- and the only 
> hard requirement is that a text filter must accept input and 
> provide output as documented in the manual: 
>
> [from "Text Filters" on pg. 35] 
>
> When you apply such an item, BBEdit will pass either the 
> selected text 
> (if any) or the contents of the entire document on STDIN to Unix 
> executables and filters, as a reference to a 'RunFromBBEdit' 
> entry point 
> in AppleScripts, as text input to Automator workflows, and 
> as a source 
> to text factories. (An AppleScript script intended for use 
> as a text 
> filter must have a 'RunFromBBEdit' handler.) 
>
> AppleScript scripts and Automator workflows should return a 
> string which 
> BBEdit will use to replace the selection range, Unix filters should 
> write to STDOUT, and the text emitted by a text factory will 
> replace the 
> selection range. 
>
> So, you should be able to just install the latest 'html2.txt.py' 
> as its directions indicate, and then create a suitable wrapper 
> to employ this tool as a text filter. 
>
>
> As an alternate approach, you could create a 'Scripts' menu 
> script to target the current (unedited) document's file via the 
> BB_DOC_PATH environment variable, then convert its contents and 
> e.g. automatically create a Markdown 'counterpart' file. 
>
>
> In closing, I hope this helps explain the options BBEdit offers 
> you (and anyone else inclined :) at least well enough to give 
> them a try. :-) 
>
>
> Regards, 
>
>   Patrick Woolsey 
> == 
> Bare Bones Software, Inc. <http://www.barebones.com/> 
>
>
>
> On 4/11/16 at 3:00 PM, bri...@gmail.com  (Brian 
> Christiansen) wrote: 
>
> >For years, I used Aaron Swartz's (RIP) html2.txt.py to convert 
> >HTML docs to -- wait for it -- text. When working, it did a 
> >wonderful job leaving you with clean Markdown-formatted output, 
> >even if supplied with Google Docs' excuse for HTML export as 
> >its input. 
> > 
> ><https://github.com/html2text/html2text.py> 
> > 
> >At some point, this stopped functioning as a text filter. I'm 
> >not sure if it was a change to BBEdit or to OS X. It was 
> >probably a while ago because I tried it, it failed with an 
> >error, and I left it. Now, I have something it may be useful 
> >for, but the forks of the python script *appear* to have 
> >complexified it in a manner that it's not a single file I can 
> >just drop into the Text Filters folder of BBEdit. 
> > 
> ><https://github.com/Alir3z4/html2text/> 
> > 
> >(please correct me if I'm wrong on that one) 
> > 
> >Does anyone have this functioning on BBEdit 11.5.1 and OS X 10.11.4? 
> > 
> >Does anyone have a worthy replacement? (Converts HTML > 
> >Markdown-formatted plain text) I am aware of the the `Markup > 
> >Utilities > Translate HTML to Text…` feature of BBEdit, but 
> >unfortunately, it is not as capable. (I'd love to see the 
> >BBEdit crew bulk this up based on Aaron's work!) 
> > 
> >Thanks kindly, 
> > 
> >~brian 
> >briandigital.com | @briandigital 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


html2txt.py as a text filter

2016-04-11 Thread Brian Christiansen
Hi folks,

For years, I used Aaron Swartz's (RIP) html2.txt.py to convert HTML docs to 
-- wait for it -- text. When working, it did a wonderful job leaving you 
with clean Markdown-formatted output, even if supplied with Google Docs' 
excuse for HTML export as its input.



At some point, this stopped functioning as a text filter. I'm not sure if 
it was a change to BBEdit or to OS X. It was probably a while ago because I 
tried it, it failed with an error, and I left it. Now, I have something it 
may be useful for, but the forks of the python script *appear* to have 
complexified it in a manner that it's not a single file I can just drop 
into the Text Filters folder of BBEdit.



(please correct me if I'm wrong on that one)

Does anyone have this functioning on BBEdit 11.5.1 and OS X 10.11.4?

Does anyone have a worthy replacement? (Converts HTML > Markdown-formatted 
plain text) I am aware of the the `Markup > Utilities > Translate HTML to 
Text…` feature of BBEdit, but unfortunately, it is not as capable. (I'd 
love to see the BBEdit crew bulk this up based on Aaron's work!)

Thanks kindly,

~brian 

briandigital.com | @briandigital


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Disabling Search/Find Dialog from showing up on all desktops

2016-03-07 Thread Brian Christiansen
I've been having similar problems with the Find box(es) going rogue on to other 
desktops, since BBEdit 11 came out. I use 5 Spaces on my large monitor, and two 
on my built-in MBA display. I didn't write for support to report a bug because 
I didn't know if there was something new that I just didn't have set right—and 
I've been far to busy to fiddle with settings. The biggest problem is 
illustrated by this scenario: I'll be in an app on my 1st Space, and then want 
to command tab to BBEdit, which is on the 4th space. But when I command-tab to 
BBEdit, it brings me to a find dialog, stranded on Space 2, and then if I 
command-tilde to switch to the main editor from the Find box, but that doesn't 
work either, because apparently command-tilde won't switch to other windows 
within the same app, if said windows are on different Spaces. I'm not sure if 
that's a Mac OS thing, or a BBEdit thing. Am I the only one having trouble 
cmd-tabbing back to my BBEdit projects?

This brings up something I've wished for for a long time. I wish we could dock 
BBedit's various Windows to each other. Mine often get lost under windows from 
the editor, or other apps. I'd love to be able to to attach a find window, and 
an entity or clipping palette and sometimes a preview window to a project 
window. Am I the only one who's pined for this over the years?

(You don't need to remind me to submit bug reports and feature requests to BB 
and not post them here)

~b

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Clippings, options, auto-complete and keyboarding

2015-05-11 Thread Brian Christiansen
When I'm using auto-complete with CSS, I get items like this:

display: <#none|inline|block|inline-block|list-item|run-in|compact|marker#>;

Is there a way from the keyboard to select one of those options, that isn't 
"highlight and delete everything that's not the option you want"? I feel 
like I'm missing something. For the record, I don't know if this is from a 
built-in auto-complete lib, or a user-contributed clippings library. I 
didn't see anything in the clippings chapter of the manual that spelled out 
a non-mouse way of selecting one of the options.

I feel like I could be making more use of the clippings feature, especially 
from the keyboard. Any additional tips beyond answering this query, or "you 
can assign shortcuts to specific clippings" (which I do) are welcome.

I understand when I get options like this:

margin: <#top#> <#right#> <#bottom#> <#left#>;

That I can tab to each place holder and overwrite a value. That's great. 
That's the type of interaction I would like from the top sample. If there 
were a way of selecting one of those options (top sample) from the keyboard 
after an auto-complete, I would absolutely put that to work with a number 
of custom clippings.

Thanks, all.

~brian

@briandigital

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: A "notebook" for BBEdit?

2015-04-29 Thread Brian Christiansen
I know you said it wasn't a good fit for your project, but I'll just add that I 
use BBEdit for this function. 

I keep journals to track all my projects at work, and I write in Markdown. I 
made a Project named—wait for it—Project Journals, and for each project, 
there's one running .md file. Each entry is delimited by a time stamp that's a 
clipping. (I actually do that with LaunchBar, but there's no reason you 
couldn't do it with BB's clippings and a keyboard shortcut. ) I tag each entry 
with `@tag` And then I can use live find to skip around the file by tags. I can 
use Multi-file finds to search across the Project. When I type the `@` and a 
letter, auto-complete kicks in so my tags stay consistent. When I get a new 
project, I make a fresh .md, and when a project is complete, I move the 
corresponding.md to an archive folder within the Project. I can use filters in 
the Find function to so I can search across live, archived or both at the same 
time. 

It works great for me. It just requires establishing your own process. You're 
welcome to steal mine—there I just open sourced it. ;-)

If that doesn't work for you, I've heard many people love Day One for work 
journals. I love it for the personal journal that I never update… it's 
beautifully made.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: A great little feature I would like very much in BBEdit...

2014-10-09 Thread Brian Christiansen
I have caught myself many times clicking on something rendered in the HTML 
BBEdit preview window, and expecting it to hope to the line of code that 
created it. For example if I've spotted a typo. San's comment about Firebug 
(actually all the browsers' built-in code inspectors do this at this point) 
made me remember this feature, and that I've attempted to use it in BBedit! 
Clearly it couldn't work with out advanced logic if scripting was involved 
(say the text you clicked on was included from another document you didn't 
have open).

Anyhow, if it existed, I'd use it.

On Wednesday, October 8, 2014 7:34:24 PM UTC-4, San wrote:
>
> That's an interesting question: how could you accomplish that in BBEdit? 
> It's easier to understand how Firebug does it -- clicking on part of the 
> rendered web page jumps to a line in the HTML, or vice versa, because 
> Firebug is working with Firefox's *generated* source code (transformed as 
> the browser understands it in terms of its own DOM), not with the 
> *original* source as we do in BBEdit. And yet...
>
> If you think about it, the browser *must* have an internal concept of the 
> relationship between the original source code and its generated HTML/DOM in 
> order to render the page in the first place. I would guess that the browser 
> doesn't bother maintaining a "memory" of how it transformed the original to 
> the rendered version once it's accomplished that, but I don't know... maybe 
> there's a way to tap into that correlation on a low level?
>
>
>
>  

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Tips for using BBEdit for Python?

2014-03-14 Thread Brian Christiansen
Steve,

Thanks for sharing! I looked up PyCharm, and found it's PHPStorm for 
Python. (a day after reading this did I get the pun in the name)

Grail,

Tell me more about this "make tags" I've read about exuberant ctags in the 
past, and I'm still not sure what they're for (probably because I'm not a 
proper programmer). From what I can tell, you run the CLI command and 
BBEdit will scan your (project?|document?) for things it can put into 
auto-complete suggestions? Will that work for HTML/CSS projects, as well?

Breaking away from Python for a moment, and into my day job…
The area I always felt BBEdit lagged in web coding is in the intelligence 
of it's autocomplete. Coda, for example, does autocomplete much better for 
HTML and CSS properties and attributes. And, ideally, each time I went to 
enter a class or ID, I'd really want an autocomplete to know what classes 
and IDs I've already used in other docs in the project, especially those 
you've already coded into a css, scss, or sass file, and suggest them.

Can ctags help with that?

~b


On Wednesday, March 12, 2014 9:40:37 PM UTC-4, Grail wrote:
>
> For me the number one tip for working with any codebase in BBEdit is to 
> remember to run “bbedit --maketags .” whenever you finish a round of 
> editing. Then you get the right-click->definitions->source goodness. 
>
> I have PHPtidy and Perltidy text filters, but strangely enough I don’t 
> have a Python tidying script. 
>
> Alex 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Tips for using BBEdit for Python?

2014-03-12 Thread Brian Christiansen
Françios, Steve,

Thanks for your replies. When you reference "Dash", you're referring 
to http://kapeli.com/dash the Mac app for documentation?

When I talk about "tips for Python in BBEdit", I presume everyone on this 
list "likes how BBEdit works" (as do I) or we wouldn't be here and we would 
be using a different editor. I was hoping for perhaps, "Hey, I make my 
living writing Python web apps, and here are some things I've gravitated to 
within the app, [or] here are a couple of extras I use (and why)…" 

Speaking of Sublime, if you Google "using Sublime Text for python" you'll 
get a post like [Setting up Sublime Text for Python 
development](http://dbader.org/blog/setting-up-sublime-text-for-python-development).
 
*Granted*, Sublime works differently, has a package manager, etc., so 
that's a little more applicable for ST (and ST is extensible *with* Python, 
which likely attracts Python users to begin with). But this is along the 
lines of what I was hoping for.

> Seems to be a lot of hype and noise around SublimeText. 

I spend most of my time in BBEdit with web front-end code. I'm the only 
professional I know who uses BBEdit. Of the other web coders (front & 
backend) I know, ST2 is easily the most popular, most of the ST users are 
TextMate 1 refugees, and rave about ST. The rest include PHPStorm, and Vim 
(these Vim guys are Rubyists). A few, like me, open up Coda 2 occasionally 
(It's the most visually pleasing editor I've used, strong in several areas, 
but weaker in general than BBEdit). The guy next to me uses Eclipse all day 
(don't ask, I don't know why). I've installed BBEdit on his Mac and he 
occasionally uses it. :-)  

I mention this because I've finally joined this list because I can't get 
help and tips from my peers or find much on the web.

Best,
~b

On Wednesday, March 12, 2014 12:40:10 PM UTC-4, Steve wrote:
>
> I use BBEdit with Python (and C, and C++ and so on...).  I think you 
> likely didn't get an answer because everyones more or less happy with using 
> BBEdit with Python.  One thing I do recommend is using Dash. 
>
> Seems to be a lot of hype and noise around SublimeText.  I don't know, 
> never tried it myself.
>
> The only thing I find missing from BBEdit is cscope integration. And 
> that's irrelevant for Python.
>
> - Steve
>
>
> On Wed, Mar 12, 2014 at 8:11 AM, Brian Christiansen 
> 
> > wrote:
>
>> (bump)
>>
>> So no Python-writing BBEditors? Every pro I know is using something else 
>> (mostly SublimeText 2) and I'm trying to stay with BB for all the reasons 
>> we all like it. I'm hoping someone around here might be able to help me out?
>>
>> On Monday, March 3, 2014 2:16:26 PM UTC-5, Brian Christiansen wrote:
>>>
>>> Greetings,
>>>
>>> I've used BBEdit for several years for HTML, CSS, editing UNIXy files, a 
>>> lot of plain text and Markdown, and the occasional PHP hack. I'm now 
>>> starting an online course that uses Python to teach CS. I downloaded 
>>> Pythonista for my iPad on account of it's stellar rep (read its reviews in 
>>> the App Store, it's rare to see such gushing there), and I'll concur, it's 
>>> a neat app. It's auto-fill features (et al) inspired me to wonder what tips 
>>> and tricks, if any, BBEdit-using Pythoneers might suggest for working with 
>>> Python within BBEdit? (within the context that I'm a newbie to Python)
>>>
>>> Thanks,
>>> ~b
>>>
>>> --
>>>
>>> @briandigital
>>>
>>  -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or would like to report a problem, please email
>> "sup...@barebones.com " rather than posting to the group.
>> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+un...@googlegroups.com .
>> To post to this group, send email to bbe...@googlegroups.com
>> .
>>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Tips for using BBEdit for Python?

2014-03-12 Thread Brian Christiansen
(bump)

So no Python-writing BBEditors? Every pro I know is using something else 
(mostly SublimeText 2) and I'm trying to stay with BB for all the reasons 
we all like it. I'm hoping someone around here might be able to help me out?

On Monday, March 3, 2014 2:16:26 PM UTC-5, Brian Christiansen wrote:
>
> Greetings,
>
> I've used BBEdit for several years for HTML, CSS, editing UNIXy files, a 
> lot of plain text and Markdown, and the occasional PHP hack. I'm now 
> starting an online course that uses Python to teach CS. I downloaded 
> Pythonista for my iPad on account of it's stellar rep (read its reviews in 
> the App Store, it's rare to see such gushing there), and I'll concur, it's 
> a neat app. It's auto-fill features (et al) inspired me to wonder what tips 
> and tricks, if any, BBEdit-using Pythoneers might suggest for working with 
> Python within BBEdit? (within the context that I'm a newbie to Python)
>
> Thanks,
> ~b
>
> --
>
> @briandigital
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Tips for using BBEdit for Python?

2014-03-03 Thread Brian Christiansen
Greetings,

I've used BBEdit for several years for HTML, CSS, editing UNIXy files, a 
lot of plain text and Markdown, and the occasional PHP hack. I'm now 
starting an online course that uses Python to teach CS. I downloaded 
Pythonista for my iPad on account of it's stellar rep (read its reviews in 
the App Store, it's rare to see such gushing there), and I'll concur, it's 
a neat app. It's auto-fill features (et al) inspired me to wonder what tips 
and tricks, if any, BBEdit-using Pythoneers might suggest for working with 
Python within BBEdit? (within the context that I'm a newbie to Python)

Thanks,
~b

--

@briandigital

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.