Comments (4)
@JelleInfinity I was just typing my reply and your last comment popped up 😂 . You have said almost everything I was going to comment on.
I agree with the way to implement it, a counter in the status bar and make it a feature that can be disabled through settings (there will be users who don't want to have more labels in the status bar).
I think it could be useful. If someone wants to implement it, go ahead. But first I would like to merge the PR #76 .
from vscode-language-renpy.
Ah I see, so what you're saying is you would like to know specifically, the dialog word count?
I can see a use for that, if we make a tiny status bar field like the Ln x, Col x and Spaces: x.
I think that could be a nice feature.
You could even make it a button to change view into other types of counts I suppose.
@LuqueDaniel What do you think?
FYI: If you do start working on this, let me know if you come across any issues using the tokenizer. Currently the tokens are placed in a one D array (sorted by start index), but I was thinking it might be better to group the tokens in a node graph. That would be a lot easier when trying to figure out what token goes where.
from vscode-language-renpy.
In the new-syntax branch I build a tokenizer that can be used to count tokens, so should be very easy to implement a word counter there.
I do wonder what would be the purpose of this and if this would be something others could benefit from.
If me or @LuqueDaniel see a good purpose, we would be more then happy to accept your suggestion. Thanks for the interest in helping us improve the plugin.
from vscode-language-renpy.
I tend to write out a lotta my scenes right into Ren'Py, and since I use quite a few one-off ATL animations combined with large amounts of 2-4 arg layeredimage names it's hard to get an accurate word count on a per-script basis with existing tools. I figured maybe others had this problem but maybe I just do things weird.
Edit: Example of what I mean, for one of my scenes the word count for just dialog is 695, whereas when you check the word count on the script with all the additional coding you get 2240.
from vscode-language-renpy.
Related Issues (20)
- Still some formating issues in 2.3.1 HOT 17
- To all Ren'Py users! We need your help! - Full Ren'Py grammar definition for 'intellisense' HOT 15
- [BUG] - Extension enters a lockup state and blocks all other extensions from loading HOT 9
- [Bug] - Extension alters workspace.settings.json with incorrect settings HOT 7
- [Feature] Support for new _ren.py format used in Renpy 8 HOT 6
- [Bug] - Extension alters workspace.settings.json with incorrect settings (with example) HOT 1
- [Feature] - Use standard denotation for deprecated functions + offer alternatives HOT 2
- Error: Illegal argument: character must be non-negative HOT 2
- Diagnostics mistakes on not-defaulted variables
- Slow Performance (Intellisense primarily) HOT 14
- Wrong float highlight when having digits both before and after the dot HOT 1
- Color picker breaks when rpy file becomes invalid syntax and doesn't recover HOT 3
- Ar
- (Diagnostics) consider label parameters as global variables
- H
- "Go to Definition" doesn't work on Python functions in ren'py
- Run: Renpy: Run project command doesn't support space in project path HOT 2
- Bug, The extension doesn't work at all, stuck on Loading Ren'py static data HOT 4
- Windows: Renpy executable location doesn't work when Running unless the backslashes are escaped HOT 1
- About project state HOT 12
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 vscode-language-renpy.