GithubHelp home page GithubHelp logo

Comments (6)

ssfrr avatar ssfrr commented on June 27, 2024

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.

wmayner avatar wmayner commented on June 27, 2024

👍 👍 👍

from autoflow.

mglukhovsky avatar mglukhovsky commented on June 27, 2024

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.

voidexp avatar voidexp commented on June 27, 2024

Really annoying behavior, makes the reflow pretty useless for long docstrings and text. :(

from autoflow.

cwwalter avatar cwwalter commented on June 27, 2024

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:

screen shot 2016-10-07 at 8 11 58 pm

You will get what you see in @izuzak's post. However, if you start like this:

screen shot 2016-10-07 at 8 13 00 pm

(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.

daviwil avatar daviwil commented on June 27, 2024

This issue was moved to atom/atom#18026

from autoflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.