Comments (6)
Base on current behavior, I guess Cuda indentation guide is per lexer.
from cudatext.
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.
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.
Even indent based blocks are from lexer rules. we cannot add staples w/o lexer rules.
from cudatext.
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.
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)
- Project Man: "Selected folder --> Find in folder", search location defaults to previously opened project HOT 3
- plugin Complete_from_text is slow on 90K-lines text file
- Someone or something resets find/replace options HOT 18
- Tab bar unexpectedly scrolls to end after closing a tab HOT 5
- Pascal lexer is not detected on file AA.BB.pas HOT 8
- Hotspots plugin: file not found error HOT 9
- White space are not being printed in line without normal visible char HOT 7
- It could be nice to have native Windows 10/11's dark mode context menues. HOT 3
- HiOccur: Cuda fails to print find message in status for some matches HOT 41
- Bad parsing of JavaScript comment HOT 18
- `Indent selection` shouldn't add spaces/tab to empty lines HOT 3
- After dbclicking a word, holding and expanding to the left, Shift+arrow runs at wrong direction HOT 6
- Autocomplete shouldn't eat next word when there's no space HOT 15
- lexer 'Todo.txt' cannot be uninstalled from AddonsManager (shown as 'Todo' in uninstall menu)
- Cuda restores old tab scroll position on drop HOT 3
- cuda_complete_from_text and option_min_len HOT 1
- "New file" button is missing with 1.215.5.0 HOT 4
- Autocomplete inserts suggestion before caret left content instead of replacing it HOT 11
- activating of ui-tab in single instance bug (on Windows)
- Clarify download location in docs HOT 1
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 cudatext.