Comments (6)
May I confirm the behavior when cursor is is inside a middle of the formatted text, and trigger the format command again? It will toggle format or insert format?
from md-writer.
That's an interesting point: the TextMate 2 behaviour is to trigger it again: **bolded**
becomes ****bolded****
if one moves the cursor back into the word and types ⌘ + b a second time. Removing it the second time would probably be more ideal, but I'm not sure whether that's feasible.
In my experience, the main undesirable aspect of the TextMate implementation is that, if the cursor is placed after a piece of punctuation at the end of a word and ⌘ + i (etc.) is invoked, one gets something like example*,*
. (I would expect either *example,*
or *example*,
.)
from md-writer.
@adunning i added this behaviour in the latest release. please try it out 👯
from md-writer.
That's absolutely wonderful; thank you! The only oddity I'm seeing is that it's being invoked twice every time, appending additional characters to the word: placing the cursor in word
and typing ⌘ + b results in **word******
.
from md-writer.
Em. I see the problem with **word**_,
becomes **word****_**,
. Might due to how Atom handles the boundary between word and non-word chars. I will check again :D
from md-writer.
That's fairly minor; your implementation is even better than TextMate's otherwise. The problem I was having with the commands being run twice disappeared after I uninstalled the package and re-added it. Thanks again!
from md-writer.
Related Issues (20)
- TOC automatic transcoding of Chinese into random code HOT 3
- spaces were deleted after saving a document HOT 1
- Blockquote is not applied from the beginning of the lines
- The WebView must be attached to the DOM and the dom-ready event emitted before this method can be called. HOT 2
- TAB indent of list item stopped working HOT 20
- Subfolder Title as FrontMatter Category HOT 2
- Uncaught TypeError: Cannot read property 'map' of undefined HOT 1
- [Feature Request] Show heading-folding toggles always HOT 1
- Object.extname is deprecated
- [Feature request] Autocomplete unordered lists within ordered lists HOT 1
- Can you support vscode? HOT 1
- Add support for Hugo "Academic Theme" directory structure: /title-of-post/index.md HOT 1
- Insert image no longer picks a file name HOT 1
- Uncaught TypeError: clipboard.readImage is not a function HOT 1
- -
- Uncaught TypeError: dialog.showOpenDialogSync is not a function
- [Feature Request]: Port to VS Code
- {slug} does not replace space with slugSeparator used with siteImagesDir HOT 1
- HTMLDocument.registerElement is deprecated.
- Hitting enter in front of a dash makes unwanted indent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md-writer.