Git Product home page Git Product logo

Comments (6)

ThaiDat avatar ThaiDat commented on August 17, 2024

Base on current behavior, I guess Cuda indentation guide is per lexer.

from cudatext.

Alexey-T avatar Alexey-T commented on August 17, 2024

Cud's indent-guides are from lexer rules. for your examples:

  • pascal/python: lexer may add blocks (...), then screenshot will be solved. but do we really need to add blocks for every (...)? it will be much slower, coz files have lot of brackets ().
  • sql: this is not indent-based folding, so why to paint indent guides at all?

no, Cud cannot force indent-guides for all indents, no need to do it.

from cudatext.

ThaiDat avatar ThaiDat commented on August 17, 2024

I would prefer to have indentation guide for every indent. But, I know to change it from per-lexer block to indent-based block will require a lot of rework.

May need to hear from other CudaText users.

from cudatext.

Alexey-T avatar Alexey-T commented on August 17, 2024

Even indent based blocks are from lexer rules. we cannot add staples w/o lexer rules.

from cudatext.

pintassilgo avatar pintassilgo commented on August 17, 2024

Plugin Detect_Indent could be updated with a new option to force staples based on indentation. So any line starting with the indentation set for that document (like 4 spaces) would have staples for every indentation.

from cudatext.

Alexey-T avatar Alexey-T commented on August 17, 2024

Detect_Indent only detects. it cannot add staples yet. to add staple, plugin must react to lexer-parsing-done, and then insert fold-ranges based on indents. (each fold range can have staple).
and: plugin must avoid adding duplicate fold-ranges (if lexer already added some).
I don't plan it. neither in Detect_Indent nor in others.

from cudatext.

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.