Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Added bracket mark in gutter and Show in Gutter submenu in package #180

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RobertoOropezaG
Copy link

Hi, I wanted this feature that I use in ST3 BracketHighlighter package, I couldn't find it anywhere and also saw other users asking for it (#97)

Screen Capture

Best Regards, Roberto

@@ -13,6 +13,14 @@ endPairMatches =
']': '['
'}': '{'

pairClasses =
'(': 'bracket-matcher-parentessis-open'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally the language packages call ( brace.round, so round-brace might be a better name here

@@ -24,6 +32,7 @@ class BracketMatcherView
@tagFinder = new TagFinder(@editor)
@pairHighlighted = false
@tagHighlighted = false
@gutter = if atom.config.get('bracket-matcher.show-in-gutter') then @editor.addGutter({name:'bracketMatcherGutter'}) else null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎨 space after name:

@winstliu
Copy link
Contributor

winstliu commented Oct 5, 2015

The CI build is currently failing because of some coffeelint errors. I've added comments on where the errors are occurring, so if you could fix those, that would be 🍧.

In addition, it would be great if you could add some specs to test for this new behavior.

@winstliu
Copy link
Contributor

winstliu commented Oct 5, 2015

Not too sure on the pairClasses bracket naming - languages use brace.* but this package is called bracket-matcher.

/cc @atom/feedback

@dashed
Copy link

dashed commented Oct 7, 2015

@RobertoOropezaG Just want to chime in and say this is slick! 👍

@thomasjo
Copy link

thomasjo commented Oct 7, 2015

I agree with @50Wliu, I think the brace terminology should be replaced with bracket. The fact language grammars use brace is purely through inheriting that from TextMate. We should strive for consistency when and where we can.

Other than that and adding some tests, this looks awesome!

@RobertoOropezaG
Copy link
Author

Hey, can I help with this merge? This feature has been done a month+ ago...

@winstliu
Copy link
Contributor

Hey, can I help with this merge?

This PR has conflicts right now, so the first step in getting this back on track would be to fix those.

@lbenie
Copy link

lbenie commented May 26, 2016

any news on this ?

@mnquintana mnquintana self-assigned this Aug 2, 2016
@borishere
Copy link

Hi.
It's a very useful feature. Someone, please finish this merge.

@mnquintana mnquintana removed their assignment May 14, 2017
@douglas
Copy link

douglas commented May 16, 2018

Hello! How can I help move this forward?

I'm not familiar with Atom development but I tried to fork this repo and solve the conflicts to come up with a PR but seems I can uninstall bracket-matcher that comes with Atom.

How can I disable the default package and use mine instead?

Thanks for all the help and work on Atom =)

@Ben3eeE
Copy link
Contributor

Ben3eeE commented May 16, 2018

@douglas We have a guide for contributing to official Atom packages in the flight manual https://flight-manual.atom.io/hacking-atom/sections/contributing-to-official-atom-packages/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants