Giter Club home page Giter Club logo

Comments (6)

plexus avatar plexus commented on August 16, 2024 1

Oh boy I can already tell this is going to be hard to get used to... I really don't think I want my editor to wrap lines

2020-11-26-092321_1787x261_scrot

It's impossible to tell now that [parts/title] is nested inside [title-area].

from corgi.

plexus avatar plexus commented on August 16, 2024

Interesting, I tend to not have long lines like that. I hit M-q habitually as soon as lines start getting longer. Works well on comments, strings, and text content like markdown/org-mode.

Judging by your screenshots this is showing whitespace that isn't actually there (the indentation), which seems more magic than I'd like for corgi. I personally have no issue with your first screenshot. It shows me what's in the code, which is a couple of excessively long strings.

from corgi.

plexus avatar plexus commented on August 16, 2024

Before:

2020-11-25-084424_1926x282_scrot

After hitting M-q

2020-11-25-084447_1527x159_scrot

from corgi.

oxalorg avatar oxalorg commented on August 16, 2024

I agree breaking down lines at 80/120 char is the optimal solution, but unfortunately that's not always the case for every code you encounter (this usually is a problem html files).

Also, what happens when M-q line width set is larger than your window split size? We run into the same word wrapping issue. This is why I like the magic indentation to keep things aligned regardless of my window size / line width. This is also the default behavior in VSCode and a lot of other modern editors.

We can keep this open for now, if anyone else needs it :)

from corgi.

plexus avatar plexus commented on August 16, 2024

The snippet you posted I think is small enough to qualify as "just loading a package + some glue", so it doesn't necessarily need to be its own package. I'm suprised this is what "modern editors" do, it doesn't seem right to me :) but I'm going to drop your snippet into my user config to test drive it for a bit.

from corgi.

plexus avatar plexus commented on August 16, 2024

I think the conclusion here is that this is a snippet that people can easily add to their config if they so please. Something we could/should think about if if there's a good place where such snippets could live. I think it would be neat to have a "next steps" somewhere, where after you have the base config going you can browse some of the additional stuff that people install and configure. Will open a separate issue for that.

from corgi.

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.