Giter VIP home page Giter VIP logo

Comments (5)

geezmolycos avatar geezmolycos commented on August 30, 2024 1

如果是让底部状态栏显示非空白字符,可以按配置教程里面写的修改一下。简而言之,就是在设置中搜索hanzi counter,把Counter: Template中的status-bar-zh全部复制出来,把最后的

return `$(pencil) ${this.numberWithCommas(character)} 字符`;}

修改成

return `$(pencil) ${this.numberWithCommas(nonwhite)} 字符`;}

再粘贴回去即可。

配置确实有些麻烦,但是是为了保持灵活性。

from vscode-hanzi-counter.

geezmolycos avatar geezmolycos commented on August 30, 2024 1

希望能把底部状态栏上面显示的默认值改为非空白字符数

我更推荐字词数,像Word里一样

默认显示的项目我不打算改,但是可以自己按上面的方法修改显示的项目,由模板代码可以看出,要显示字词数只需要按上面的方法改成

return `$(pencil) ${this.numberWithCommas(cjk + cjk_punct + segmenter_word)} 字符`;}

from vscode-hanzi-counter.

geezmolycos avatar geezmolycos commented on August 30, 2024

你所说的第一点,「非空字符串」是指「非空白字符数」吗,这项已经有了;如果不是的话,那你详细描述一下。第二点我会考察一下怎么实现,如果我能比较好地实现,会加上这个功能。

from vscode-hanzi-counter.

johnlui avatar johnlui commented on August 30, 2024

是指非空白字符数,我觉得作为一个字数统计插件,绝大部分人的场景都是拿来统计 markdown 文件,所以空格是不应该算字数的,希望能把底部状态栏上面显示的默认值改为非空白字符数。

from vscode-hanzi-counter.

wohenbushuang avatar wohenbushuang commented on August 30, 2024

希望能把底部状态栏上面显示的默认值改为非空白字符数

我更推荐字词数,像Word里一样

from vscode-hanzi-counter.

Related Issues (8)

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.