Add cmd+i and cmd+b for Mac users
See original GitHub issueIf possible to update the editor to allow the use of common keyboard hotkeys to make formatting text faster, that would be awesome. Examples would be ctrl/cmd + i
and ctrl/cmd + b
to italicize and bold, respectively. And/Or something like the FancyPants editor on Reddit.
Just throwing feature requests out there to see what sticks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
CMDB tables descriptions
List of all the tables in the CMDB in a base system, and for each table, its name, label, and a description of...
Read more >CMDB Complete ServiceNow Training in 2 hours - YouTube
CMDB Complete ServiceNow Training in 2 hoursCMDB(Configuration Management) OverviewWith the ServiceNow® Configuration Management Database ...
Read more >ServiceNow CMDB Data Synchronization - Docs @ Rapid7
With the user created, navigate to the Rapid7 InsightVM Integration for CMDB -> InsightVM Connections module. Click New to create a new InsightVM...
Read more >ServiceNow CMDB reviews, rating and features 2022 | PeerSpot
ServiceNow CMDB is the #1 ranked solution in top Configuration Management Databases. PeerSpot users give ServiceNow CMDB an average rating of 9.0 out...
Read more >Creating and Updating Configuration Items and Best Practices
A configuration management database (CMDB) is a database that contains all relevant ... Model ID, Manufacturer, IP Address, MAC Address, Description, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So here’s where we are at now:
So currently, ctrl-i does just that. It creates asterisks surrounding the current selected text.
Now since the original designer hadn’t thought about the case where nothing is selected, ctrl-i weirdly inserted
|**
where|
is the cursor position in that case. Ctrl-B resulted in|****
. Pull Request #1078 fixed this “no selection” case so that the asterisks appear around the cursor you you can just start typing words, due to popular request. And it is a nice feature to be able to start typing in italics or bold without having to grab the mouse and drag over the words you want to modify.I think this combination is pretty reasonable, and removing the no-select option after we so recently added it I think is going to confuse people. 😕 I also like that it follows the other “snippet” behavior of inserting new code, where trying to “remove” a feature just requires extra logic.
This sounds simple in principle, but in reality it wouldn’t work quite that easily. With the update to the markdown parser that will be part of v3, spacing for the asterisks becomes more strict. For example:
This is **bold**
works fine, butThis is ** bold **
will not because spaces are not allowed directly before or after the asterisks. So then, if you want to “unbold” a selection by putting asterisks around it, you really have to know if the region is already bolded, and if not, place the asterisks like so:other words **selection** other words
, but if the region is bolded, the spacing needs to go like thisother words** selection **other words
. If you have selected only part of a word, it gets even more convoluted. I should know, because I rewrote the italics/bold detection for Marked.js to better follow the Markdown specifications just for the Hombrewery, because people were getting all sorts of broken code to do things. Ugh…Maybe as a future thing though. I’m not putting it completely off the table. Just not a priority for now. If you want to try your hand at a PR I’m all for it!
This has been fixed with #1191