Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Add support for autoclosing tags to new preferences feature #6844

Closed

Description

@cfjedimaster

Allow me to disable the autoclosing of a tag. I find myself adding HTML around text quite a bit, so I'll want to bold something. I'll go in front of foo, type in the strong tag, and since Brackets auto closes it, I have to select it, cut it, and paste it. I'm actually faster if I can just type it myself where I want it.

Activity

  1. marcelgerber commented on Feb 12, 2014

    @marcelgerber
    Contributor

    This would be really cool 👍

  2. le717 commented on Feb 12, 2014

    @le717
    Contributor

    There's an app extension for that.

    https://github.com/talmand/Brackets-Disable-AutoClose-Tags

    I agree, this is a great feature, and I'd love to see this extension's functionality in Brackets itself. Although the norm is always auto-closing, I find that behavior annoying, even on new projects. To me, delaying auto-closing even on new projects is more natural and makes coding easier. Were it not for this extension, I'd still be hunting a good web editor. :)

  3. le717 commented on Feb 12, 2014

    @le717
    Contributor

    Oops. This issue is about disabling the auto-closing, not delaying it. My bad.

  4. talmand commented on Feb 18, 2014

    @talmand

    Thanks for the mention of my extension. I think the extension may help @cfjedimaster with the problem he describes. It just depends on his personal preference.

    It appears that there is a plan to implement something like my extension in the core as a preference. But I don't know if the plan is to outright disable it or to disable the part that the extension does which is "whenOpening".

  5. TomMalbran commented on Feb 18, 2014

    @TomMalbran
    Contributor

    I submitted a PR yesterday that would allow us to change any of the settings in Auto Close Tags: #6888 using the new Preferences System only.

  6. marcelgerber commented on Feb 18, 2014

    @marcelgerber
    Contributor

    @talmand In the PR you can see that you can set your own preferences - you can enable/disable whenOpening as well as whenClosing (and also indentTags, but I don't know what that is).

    @TomMalbran I tested it out yesterday, this is exactly what I need ;) Praise the new preferences system!

  7. TomMalbran commented on Feb 18, 2014

    @TomMalbran
    Contributor

    @SAplayer In indent tags you can pass a list of html tags so that after pressing > it boths autocloses the tag, place them in 3 separate lines, indents the middle one and places the cursor there. So if "div" was in the list <div would become:

    <div>
        |
    </div>
    

    I also really wanted to be able to configure this.

  8. cfjedimaster commented on Feb 18, 2014

    @cfjedimaster
    ContributorAuthor

    My dream really is to kill all helping. I don't want closed tags or
    indenting. :)

    On Tue, Feb 18, 2014 at 1:32 PM, Tomás Malbrán notifications@github.comwrote:

    @SAplayer https://github.com/SAPlayer In indent tags you can pass a
    list of html tags so that after pressing > it boths autocloses the tag,
    place them in 3 separate lines, indents the middle one and places the
    cursor there. So if "div" was in the list <div would become:

    |

    I also really wanted to be able to configure this.

    Reply to this email directly or view it on GitHubhttps://github.com//issues/6844#issuecomment-35423371
    .

    Raymond Camden, Web Developer for Adobe

    Email : raymondcamden@gmail.com
    Blog : www.raymondcamden.com
    Twitter: cfjedimaster

  9. marcelgerber commented on Feb 18, 2014

    @marcelgerber
    Contributor

    You can. Just use

    {
        "closeTags": { "whenOpening": false, "whenClosing": false, "indentTags": [] },
        "smartIndent": false
    }

    (I think)

  10. cfjedimaster commented on Feb 18, 2014

    @cfjedimaster
    ContributorAuthor

    But not now - right? Not in the current Sprint I mean.

    On Tue, Feb 18, 2014 at 1:45 PM, Marcel Gerber notifications@github.comwrote:

    You can. Just use

    "closeTags": { whenOpening: false, whenClosing: false, indentTags: [] },"smartIndent": false

    (I think)

    Reply to this email directly or view it on GitHubhttps://github.com//issues/6844#issuecomment-35424881
    .

    Raymond Camden, Web Developer for Adobe

    Email : raymondcamden@gmail.com
    Blog : www.raymondcamden.com
    Twitter: cfjedimaster

  11. marcelgerber commented on Feb 18, 2014

    @marcelgerber
    Contributor

    As soon as #6888 is merged.

  12. cfjedimaster commented on Feb 18, 2014

    @cfjedimaster
    ContributorAuthor

    K. I typically use sprint releases only as I've got Brackets as my primary
    IDE - so updating daily isn't something I want to do. ;)

    On Tue, Feb 18, 2014 at 1:51 PM, Marcel Gerber notifications@github.comwrote:

    As soon as #6888 #6888 is merged.

    Reply to this email directly or view it on GitHubhttps://github.com//issues/6844#issuecomment-35425564
    .

    Raymond Camden, Web Developer for Adobe

    Email : raymondcamden@gmail.com
    Blog : www.raymondcamden.com
    Twitter: cfjedimaster

  13. le717 commented on Feb 18, 2014

    @le717
    Contributor

    @talmand I just tested the new options, I can recreate your extension's actions using

    {
        "closeTags": { "whenOpening": false, "whenClosing": true, "indentTags": [] },
    }

    Good work on the options, @TomMalbran!

  14. dangoor commented on Feb 19, 2014

    @dangoor
    Contributor

    Low priority to @TomMalbran who has a fix in progress

  15. dangoor commented on Feb 20, 2014

    @dangoor
    Contributor

    This has now landed in master, so it will be in Brackets 37.

  16. cfjedimaster commented on Feb 20, 2014

    @cfjedimaster
    ContributorAuthor

    Thank you!

    On Thu, Feb 20, 2014 at 10:49 AM, Kevin Dangoor notifications@github.comwrote:

    Closed #6844 #6844.

    Reply to this email directly or view it on GitHubhttps://github.com//issues/6844
    .

    Raymond Camden, Web Developer for Adobe

    Email : raymondcamden@gmail.com
    Blog : www.raymondcamden.com
    Twitter: cfjedimaster

  17. laramjo commented on Apr 4, 2015

    @laramjo

    Help me please

    #10828

  18. peterflynn commented on Apr 7, 2015

    @peterflynn
    Member

    @laramjo Please don't post comments to unrelated discussion threads

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions