Code Monkey home page Code Monkey logo

Comments (13)

henrikruscon avatar henrikruscon commented on June 26, 2024 4

@andrewbanchich I've been on a long vacation in the Caribbean so I've lacked time. But I'm gonna catch up with every issue including this. I was close to pushing a fix before I went ✌️

from hyper-statusline.

henrikruscon avatar henrikruscon commented on June 26, 2024 1

@stereokai Mind trying the os-windows branch for me? Changed the CWD code but I can't debug myself ✌️

from hyper-statusline.

stereokai avatar stereokai commented on June 26, 2024 1

Well, I am definitely getting icons now, but nothing more. Also if I click any of the two icons on the bottom right corner, nothing happens. When I click the folder icon, Hyper freezes and quickly quits (I'm noting this because so far, every other plugin that made Hyper freeze would just make it hang with high cpu and Hyper would just remain stuck).

from hyper-statusline.

henrikruscon avatar henrikruscon commented on June 26, 2024

Sadly I can't properly debug this on my own as I don't have Windows.

Do the SVG icons actually reside on that path? Does the status line show up at all?

It appears to be related to __dirname

from hyper-statusline.

stereokai avatar stereokai commented on June 26, 2024

The correct path is C:\Users\Tom\.hyper_plugins\node_modules\hyper-statusline\icons (the slashes are missing), because it seems this: url('${__dirname}/icons/folder.svg'); isn't working. Maybe it needs to be resolved using nodejs path library?

Also the footer is definitely being created, but it isn't being populated.
footer

from hyper-statusline.

stereokai avatar stereokai commented on June 26, 2024

It's weird because logging __dirname spews out the correct path string: C:\Users\Tom\.hyper_plugins\node_modules\hyper-statusline
However in Chrome (Electron) itself it's always url('C:\Users\Tom\.hyper_plugins\node_modules\hyper-statusline/icons/folder.svg')

from hyper-statusline.

stereokai avatar stereokai commented on June 26, 2024

@henrikdahl and regarding the information not being populated, the command for cwd definitely won't work on Windows :)

from hyper-statusline.

henrikruscon avatar henrikruscon commented on June 26, 2024

@stereokai You're definitely right, I wrote that particular code back when Hyper seemed to remain Mac OS only. I'm gonna look into alternatives ✌️

from hyper-statusline.

stereokai avatar stereokai commented on June 26, 2024

Sweet, thank you!

from hyper-statusline.

andrewbanchich avatar andrewbanchich commented on June 26, 2024

@stereokai Any update on this? Will this be fixed soon? I'd love to use it on Windows but it's not working for me either.

from hyper-statusline.

andrewbanchich avatar andrewbanchich commented on June 26, 2024

@henrikdahl Thank you!

from hyper-statusline.

henrikruscon avatar henrikruscon commented on June 26, 2024

So I've tried multiple methods and the only one that ended up partially working was relying on titles but it was unreliable and afaik Windows doesn't even show the cwd in the title on most setups anyways.

I heard Hyper might expose a session value for CWD so I'll wait for that.

If you got any other ideas, please let me know. I tried all I can think of ✌️

from hyper-statusline.

dougd avatar dougd commented on June 26, 2024

See my PR #53 for another attempt at getting the cwd on win32. This again is a work around until it is properly supported by Hyper.

from hyper-statusline.

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.