# Tag Info

15

Inheriting indention when pressing enter What I'd like to suggest is that if you press enter, the indentation is copied from the line you're coming from, and then automatically put before the next line. This would make it a bit easier to type out code on SO. Of course this would create the problem that people who would want to end their code would be ...

11

status-completed Why not use this to add the button? It preserves the integrity of other buttons, and ensures that a button does not get added twice (for example, when in the review section, it will only add the buttons to the editors which don't have it. //params: text: text of button //params: callback: a function which takes id of textarea as argument(...

6

Excellent script, much needed. I adjusted the following to make it work: changed live by (document).on( 'keydown', 'textarea[name=comment]', function(e) {}) added metakey so it works on Macs (e.ctrlKey||e.metaKey) And other improvements: only runs when viewing a question or in the Review/Task pages. changed @include by @match using a format that catches ... 5 feature-request status-completed Wrt the <kbd></kbd> insertion, how about this simple scenario: user has Shift+Alt+P and wants to convert it to Shift+Alt+P Current scenario: user highlights all three keys individually and highlights them one by one. Boring! :( Proposed scenario: user highlights the entire string (Shift+Alt+P) at once, presses ... 4 It would be nice to have a script option to adjust the indentation size. I, for one, would probably find an indent size of two spaces helpful. (Many questions I'm editing to correct indentation are not aligned nicely on four-space indents.) 4 This uses the jQuery .on(...) feature which is only available in 1.7 and up. Careers is still using an older version and you get an exception on every page right now with this installed. We will be updating soon, but it would be nice if you could add a config page to turn it on/off for each site. 4 feature-request I love keyboard navigation, +1 to infinity for this feature! I have but one request: I usually open up questions in a new tab, from the newest or active questions pages, for example. Normally, on Mac, I'd hold down the ⌘ (command) key while clicking on the link, or use the TAB key to shift focus to the link and use ⌘-ENTER to open the link ... 3 Full list of supported buttons: Buttons used in many sites Dollarify () Encloses selection in $...$ Enabled on all supported sites Keyboard shortcut: Alt-M Works differently on electronics.SE (gives \$...$\ because these people talk about money as well and mathjax needs escaping) Double Dollarify ($$) Encloses selection in$$...$$Enabled on all ... 3 I'd like to report a bug. I think I pointed that out already earlier, but since we are at version 3 now I thought I give it another try. (I have no idea about scripting this in the first place.) Buttons and preview disappear when running the script. Here is a screenshot to illustrate the problem: I am running it on Windows 7, Chrome 41.something with ... 3 Place to dump list of all mathjax sites. I will take a look at these and determine which configuration to give to each one, and if they need extra buttons. http://stats.stackexchange.com Dollars (Implemented 1.0.3) http://meta.stats.stackexchange.com Ditto http://math.stackexchange.com Dollars only(implemented) http://... 3 With the recent network-wide HTTPS switch, the include's should change to: // @include https://stackoverflow.com/* // @include https://*.stackoverflow.com/* Also, in case of editing a question in the review queues, I noticed that the script wasn't working. The problem was in this line: ("#mainbar").on("keydown", ".wmd-input", function (evt) ... 3 bugstatus-completed When you are viewing a question list that updates via the live question bar ("N question(s) with new activity") and you use the mouse to click and load the new question(s), then the JS model as seen by the keyboard shortcut code is not updated. As a result, the newly loaded questions cannot be navigated over. Thus, U goes to the ... 3 I have peculiar issue with script somehow inserting itself into editors on completely unrelated sites. It seems to especially love to wreck WordPress and Basecamp posts. Here is screenshot from my local WP development site, right after adding new post and switching to code view: Opera 12.16, Win7x64 3 bugstatus-completed After loading newly-posted answers with F they are not navigable with the J and K keys. Only items already loaded with the page are keyboard-navigable. 3 feature-request Using Shift-ENTER opens questions in a new tab. However, the same does not apply to the other options. Could this be extended to any of the options that load a new page? So, hit i for inbox, then Shift-1 to open the first inbox message in a new tab. Preferably, I'd still like to see this using the native 'open in new tab' modifier key (CMD ... 2 bug With the new comment format rolled out, comment loading is now broken. C no longer triggers comment loading. This looks like a conflict with AutoReviewComments - Pro-forma comments for SE, disabling the extension brings back the functionality. 2 feature-request Can I get a way to configure which keys do what? I like to have all the most commonly used keys clustered in one place: it's hard to use SO with a drink in my hand if I have to use both hands to do anything. 2 feature-request Please add a consistent shortcut to reach the (new) review queues. With consistent I mean one that is there on all sites. Currently, I can go to the review page on Programmers.SE and here on StackApps, where I can type GSR for go to... -> special pages... - review. But the same option isn't available on MSO or on SO. On SO, the special ... 2 feature-request status-planned Can you please add in [tag:something] (to work like the other features) The icon can just be tag 2 feature-request status-completed Can you please add in strike-through <del>text</del> and Line break <br /> 1 Great script! However, I've got a bug report: On Electrical Engineering, where the  button creates \ braces (thanks for that exception, by the way), the SansSerif button still creates  braces, which do not work. I'm not sure what makes the Sans Serif font look so bad, it may be an issue with the configuration on my machine. Don't worry about that, it'... 1 Meta-notices for this: (just for me to keep track) https://physics.meta.stackexchange.com/questions/1233/math-and-si-formatting-buttons https://chemistry.meta.stackexchange.com/questions/70/mathjax-formatting-buttons-for-you http://meta.math.stackexchange.com/questions/4111/mathjax-formatting-buttons-for-you-guys https://electronics.meta.stackexchange.com/... 1 Version history: 1.0 1.0.1: Fix the \ce{} highlighting bug. It now highlights properly even when you haven't selected anything. (Makes it useful to just hit Alt-C/whatever and start typing the formula) 1.0.2: Add electronics.SE (with config ,$$,SI--special treatment of $due to EE.SE requiring backslashes). Also crypto.SE (config$,, O--big O notation) ...

1

There is an issue with the new Dark theme on StackOverflow site, all the custom buttons now have B button background:

1

bug status-completed The entire extension doesn't function properly in the profile editor (/users/edit/{UserID}). I can click on all of the buttons but nothing happens. (GIF) This is probably related to this.

1

bug tampermonkey status-completed I have a slow internet, so the webpage loading circle may still keep spinning while the #wmd-input textbox has already loaded. In this case, I've noticed that if I place my cursor into the textbox before the page loads, there are two instances of the five set of buttons that get inserted into my toolbar. Here's a screenshot:...

1

status-completed I've added a fix to point 3 over here (it's forked) It deals with <kbd>[selected text]</kbd> and [<kbd>text</kbd>], where the [] denotes selection. It will not deal with wierd stuff like <kb[d>text</kbd>]. (Could be done using regexes)

Only top voted, non community-wiki answers of a minimum length are eligible