brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

*Feature Request(s)* Quick text and markup manipulation commands #12583

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by guest2 Sunday Mar 23, 2014 at 23:33 GMT Originally opened as https://github.com/adobe/brackets/issues/7305


Notepad2, a Windows Notepad alternative, has a couple functions I've found invaluable when editing code or code-esque languages that don't currently appear in Brackets' functionality:

These actions are obviously easy enough to do by hand, but I've found that the quick keyboard commands save me a lot of time and frustration from repetitive work. Currently, I use Notepad2 when I need to markup copy and end up pasting it back into Brackets when I'm done. I would like to work exclusively in Brackets, however, and would like to suggest these features.

Lastly, an auto-code formatting function (to properly indent nested code across an entire file) would be very useful to me because I care a great deal about the code layout and presentation (even if the end users never see it).

I see there are extensions that might suit me for these functions, but a Brackets-approved set of commands available on clean install would be awesome.

Thanks to everyone in the community for a great product!

tag modify

core-ai-bot commented 3 years ago

Comment by redmunds Friday Mar 28, 2014 at 22:10 GMT


There is an HTML Skeleton extension that provides some of this functionality with an interface similar to what you describe.

core-ai-bot commented 3 years ago

Comment by peterflynn Friday Mar 28, 2014 at 23:31 GMT


core-ai-bot commented 3 years ago

Comment by TomMalbran Friday Mar 28, 2014 at 23:39 GMT


@peterflynn The idea is to wrap the text tags not just add one tag.

The Emmet extension would be good for this too.

Or my feature would be nice for this, and it doesn't even uses a popup dialog or require you to write both tags, and works just like Sublime Text 2 html wrap command: https://github.com/adobe/brackets/pull/3240.

core-ai-bot commented 3 years ago

Comment by peterflynn Friday Mar 28, 2014 at 23:51 GMT


@TomMalbran Ok -- yeah, a "Wrap In" command is valuable indeed. I think I was thrown off by the dialog above saying "insert" which is sort of misleading. I'll check out #3240 if I have a sec this weekend to see about getting it some momentum back :-)

core-ai-bot commented 3 years ago

Comment by TomMalbran Friday Mar 28, 2014 at 23:57 GMT


It probably wont work with the current Sprint. I haven't updated the code in a while. Should I update and resubmit it?

core-ai-bot commented 3 years ago

Comment by guest2 Saturday Mar 29, 2014 at 07:24 GMT


Yeah, I ended up finding one in the extension gallery called Brackets
Surround that does an okay, if spartan, job. Same basic function: surround
selected text with a tag you provide (element with attributes, in my
case), automatically add closing tag at the end of the selection.

Extensions are nice and all, and I'm sure most of them are very high
quality, but from my experience with Brackets (about two weeks I think
now), the way features are implemented in the "real deal" are nothing
short of amazing. Quick Edit is the best example of this. It absolutely
exemplifies Brackets' aim of "you and your code." It's extremely helpful,
and completely hidden until you need it.

I'm kind of hoping to see these features implemented in such a clever way.
I would try it myself, but I'm not comfortable enough with Javascript to
take on something like that, and the Brackets wiki appeared to welcome the
posting of feature requests.

core-ai-bot commented 3 years ago

Comment by dangoor Monday Mar 31, 2014 at 21:19 GMT


Reviewed. Changing this to "move to backlog" because there is a reasonable argument in this case that extensions have this feature somewhat covered but we might want to do something in core.