Coder Social home page Coder Social logo

Comments (3)

sungwoncho avatar sungwoncho commented on June 13, 2024

Hi @Serenade600, I suspect that this issue is not specific to Chinese characters but to Windows and Powershell (fatih/color#169) because I couldn't reproduce it on Linux. Therefore I upgraded a dependency to apply a patch (https://github.com/fatih/color/releases/tag/v1.15.0) and created a new release for the CLI (v0.15.1).

Could you try to upgrade to the latest version of the CLI (v0.15.1) and try again?

from dnote.

Serenade600 avatar Serenade600 commented on June 13, 2024

Hi @sungwoncho. I tried the latest CLI v0.15.1. The output of dnote view working_summary was like
image
. Compared to v0.15.0, the output improves. The squares and 33m around [---More---] disappeared. But the first three characters of first line is still lost. The output of dnote view 11 seems correct like

  • book name: working_summary
  • created at: Jan 29, 2024 11:54pm (CST)
  • updated at: Jan 30, 2024 12:11am (CST)
  • note id: 11
  • note uuid: 283219e8-26da-4694-b0ae-350fcc574465

------------------------content------------------------
这是第一条工作总结了。
这个工具看起来还是不错的。
-------------------------------------------------------

from dnote.

sungwoncho avatar sungwoncho commented on June 13, 2024

Thanks for trying the new release. I suspect that this issue is related to how Dnote interacts with Powershell. Below is what it should look like in Linux:

dnote v testbook
  • on book testbook
  (1882) 这是第一条工作总结了。 [---More---]
                                                                             
dnote v 1882
  • book name: testbook
  • created at: Feb 10, 2024 10:48am (AEDT)
  • note id: 1882
  • note uuid: 5262d719-e15a-4225-a8a8-502aeee6a7ed

------------------------content------------------------
这是第一条工作总结了。
这个工具看起来还是不错的。

-------------------------------------------------------

I went through the source code (https://github.com/dnote/dnote/blob/master/pkg/cli/cmd/ls/ls.go) but found no smoking gun at this point. I will keep this issue open and await any feedback from Powershell users.

from dnote.

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.