3 ms·
One feature I have yet to find in any Markdown editor is a simple "block" mover, which I describe here: https://twitter.com/jgthms/status/1225513837379641350 ht
by bbx 6y ago
One feature I have yet to find in any Markdown editor is a simple "block" mover, which I describe here: https://twitter.com/jgthms/status/1225513837379641350 https://twitter.com/jgthms/status/1225513837379641350
Underneath, the data structure would remain straightforward Markdown. So the data wouldn't be stored as separate blocks; the moving would act similarly to Sublime Text's "Swap Line Up/Down".
- enobrev 6y agoI wouldn't call notion.so a markdown editor, but it's very similar to one (understands the syntax) and the "block mover" concept is inherent in their UI.
- dr_zoidberg 6y agoIn VSCode anytime you have text selected you can alt+up/down to move the whole selection (or current line if no selection) up/down one line. I assume STs "swap line up/down" works the same. Is that different from your "block mover" idea? I mean, if I select the paragrap I want to move and use it it sounds similar, thought it'd happen one line at a time, and I understand you'd mean to move it "whole blocks" at a time. But probably a plugin can be made to achieve that behavior.
- bbx 6y agoYes, ST works like VSCode in that regard. It works well with paragraphs and headings because they fit on one line (so 1 line = 1 block), but I'd like to be able to move whole multiline blocks, like lists, code blocks, and paragraphs that have line breaks. Also, for the empty lines that separate blocks, I need to move them as well (or select them as part of the block). But yes, the current feature is very close to what I'd like. The other part of my tweet though (about being able to move between 2 columns or files) is trickier.
- cellularmitosis 6y agoI added your tweet to Panicz's excellent twitter thread of structured editors, cheers! https://twitter.com/cellularmitosis/status/1279113260407685120 https://twitter.com/cellularmitosis/status/12791132604076851...
- codethief 6y agoThis (and showing/hiding blocks) is the one feature I miss from org-mode.
- koheripbal 6y agoMaybe I'm missing something, but what's wrong with cutting and pasting blocks of markdown up/down?
- NateEag 6y agoI kinda hate to be that guy, but one of the many reasons I love Vim keybindings is that they have support for working in blocks like built in. "dap" deletes the entire paragraph my cursor is in, then I type "/" to search for where I want to move it to, and paste. And this also works for sentences, and lines, and words. And more. In every file type I edit. (Emacs with Evil is a better vim than vim, in a lot of ways. )