Skip to content

Adds BBEdit to list of supported external Editors - #2941

Closed
NiklasBr wants to merge 8 commits into
desktop:masterfrom
NiklasBr:editor-bbedit
Closed

NiklasBr wants to merge 8 commits into
desktop:masterfrom
NiklasBr:editor-bbedit

Conversation

@NiklasBr

@NiklasBr NiklasBr commented Oct 2, 2017

Copy link
Copy Markdown
Contributor

Noticed that this app did not use the macOS default text editors for various file types, nor did not use the EDITOR in .bash_profile. Preferably Desktop should also tell us which editor is used in the context menu (e.g. Open with Foo rather than Open with Default Program), but that's for another time.

@niik

niik commented Oct 2, 2017 •

Copy link
Copy Markdown
Member

Hey @NiklasBr, thanks for opening this. Looks like you've got some code that's not formatted according to our prettifier standards. Please run npm run prettify and commit those changes.

@NiklasBr

NiklasBr commented Oct 2, 2017

Copy link
Copy Markdown
Contributor Author

Thanks @niik , fixed and is working better now.

@niik

niik commented Oct 2, 2017

Copy link
Copy Markdown
Member

Alright @NiklasBr, thanks for fixing those formatting issues. At this point there's a few assertions that aren't being met over on the Windows side of things. Since this editor is the first so far to be exclusive to macOS we're gonna need a little time to think through how to best deal with that. I'll ping @shiftkey here since he wrote a bunch of the win32 stuff and see if he has any good ideas.

@shiftkey

Copy link
Copy Markdown
Member

@NiklasBr I had a chance to test your PR, and I've opened #3038 to address the underlying limitations (and better document things). When that's merged, all it should take is a merge into this branch (and maybe some cleanup) to integrate this work.

@NiklasBr

Copy link
Copy Markdown
Contributor Author

Looks really good @shiftkey, the in #3038 docs are :italian chef kisses fingers:

@shiftkey

Copy link
Copy Markdown
Member

@NiklasBr #3038 has been merged 🎉

Comment thread app/src/models/editors.ts
Atom = 'Atom',
VisualStudioCode = 'Visual Studio Code',
SublimeText = 'Sublime Text',
BBEdit = 'BBEdit',

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@theconsultant

Copy link
Copy Markdown

Hey @NiklasBr which version of BBedit are you running? I've just updated to v.12 and the CLI binary has a different name and is found in a different location /Contents/Helpers/bbedit_tool.
P.s. thanks for setting this up.. I was about to try and figure it out and i'm glad you got to it first 👍

@NiklasBr

Copy link
Copy Markdown
Contributor Author

@theconsultant I'm still running BBEdit 11, but I plan on purchasing the update soon.

A thing which makes me think my pull request could be better is that BBEdit registers Contents/Helpers/bbedit_tool at /usr/local/bin/bbedit and that maybe I should use that rather than a direct reference to the helper tool.

I need to think a bit about this.

@joshaber

Copy link
Copy Markdown
Contributor

@NiklasBr @theconsultant Thank you both for your diligence on this PR. It's great to see 💖

@theconsultant

Copy link
Copy Markdown

I think you're right @NiklasBr that using /usr/local/bin/bbedit makes more sense.

I checked the manual, and BBEdit does offer to install the CLI tools on first launch, so it is safe to assume the tools are installed.

From the v12 manual: The first time you run BBEdit after installation, it will offer to install the “bbedit”, “bbdiff”, and “bbfind” command-line tools for you. If you choose not to do so, you can choose “Install Command-Line Tools” from the BBEdit (application) menu at any time to install (or re-install) the current version of each command line tool.

@theconsultant

Copy link
Copy Markdown

@joshaber I'd rather fight with edge cases before deploy .

@stale

stale Bot commented Nov 9, 2017

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale Bot added the stale label Nov 9, 2017
@j-f1

j-f1 commented Nov 9, 2017

Copy link
Copy Markdown
Contributor

@NiklasBr Can you fix the merge conflicts in this PR?

@stale stale Bot removed the stale label Nov 9, 2017
@NiklasBr

NiklasBr commented Nov 29, 2017 •

Copy link
Copy Markdown
Contributor Author

I might have made some mistake merging and fixing the conflicts… Sorry

Would you like a cleaner PR?

I do wonder why case ExternalEditor.VisualStudioCode has line breaks but other editors do not. Line length?
@j-f1

j-f1 commented Nov 30, 2017

Copy link
Copy Markdown
Contributor

@NiklasBr You can probably fix it with a bit of git rebase -i magic :)

@NiklasBr

Copy link
Copy Markdown
Contributor Author

git rebase -i

I never feel more stupid then trying to grok Git. I failed to make a proper rebase.

@guy-rouillier

Copy link
Copy Markdown

I'd like to see CodeLite added, and I imagine users of Code::Blocks would like that. I appreciate that Visual Studio Code is present. IDEs of various flavors are preferred for large projects. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants