Comments (6)
It would be awesome if reflowing were a little more code-aware. I'm a heavy user of the gq
feature in vim for automatically reformatting my code, and it's a real time-saver.
from autoflow.
from autoflow.
I'm sorely missing the behavior of gq
in Vim, where you can reflow text while respecting indentations -- would love to see this in autoflow.
from autoflow.
Really annoying behavior, makes the reflow pretty useless for long docstrings and text. :(
from autoflow.
I'm not positive if this is really still an issue for the people who originally reported it, but I was trying to find packages to fix this problem this evening and after a bit determined (by accident) that the default autoflow package actually works as we wish if you are careful how you make the selection.
The key is how you start it. If you do this:
You will get what you see in @izuzak's post. However, if you start like this:
(note that the 1st line starts the selection all the way on the left) then it will wrap properly at 80 characters with the indentation for the entire block preserved. It's not obvious if the package is designed this way on purpose but, as long as you make sure the first line also includes the indentation of the final result you want it seems to work.
from autoflow.
This issue was moved to atom/atom#18026
from autoflow.
Related Issues (20)
- Uncaught SyntaxError: Invalid regular expression HOT 6
- Not working with Russian HOT 4
- German Windows Keyboard HOT 3
- Reflowing roxygen comments HOT 1
- Autoflow reflows to one character over the editor's preferred line length HOT 11
- Autoreflow doesn't take non-breaking space into account HOT 1
- reflow mail-messages with '>' HOT 2
- Reflow Selection sometimes inserts an unnecessary space at the beginning of the first non-blank line HOT 5
- Reflow breaks code in Lisp and Lisp-derived languages when reflowing comments HOT 6
- Conflicts with adding an @ sign into the editor HOT 1
- Markdown: When paragraph starts with * it is (falsely) treated as a list HOT 3
- Markdown: Corner case with number and fullstop HOT 1
- Problem with German keyboards under Windows HOT 2
- Clarify key mapping / add warning for fat-fingered Mac users HOT 2
- Cannot autoflow JSDoc comments HOT 4
- Reflow jumbles separate lines together HOT 3
- Update documentation
- Add support for .editorconfig file HOT 1
- Autoflow does not work for C89-style comment blocks HOT 3
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 autoflow.