GithubHelp home page GithubHelp logo

Comments (8)

Siriusmart avatar Siriusmart commented on September 7, 2024 1

I went for the same approach, added a new option saying how config files should be loaded here, as well as a few stacked changes not pushed to crates.io.

I tested it on some read only config files, see if it works on ur machine

(also having a stroke staring at code ive not touched for a few months)

from youtube-tui.

idlip avatar idlip commented on September 7, 2024 1

Hahaaa, You need to share this again to r/unixporn and r/commandline and even r/linux.
This deserves more appreciation!

You did it very quickly, Cheers ;)

(I have informed bugswriter about this tool, Should see if he can do a shout out on YT)

from youtube-tui.

Siriusmart avatar Siriusmart commented on September 7, 2024

Thanks, I originally made this for a more usable ytfzf alternative to post of r/unixporn.

To show this point, it does things the way ytfzf do thing - it uses invidious, and plays videos using mpv

I didn't post much about this on reddit as it is missing a feature or two, say subscriptions and running blocking commands (the second is done on github but idk why i didnt push it to crates.io)

from youtube-tui.

idlip avatar idlip commented on September 7, 2024

I encountered a weird issue, If i have read-only (#o444) config (yml) file, youtube-tui gives me an weird error.
I do it because that is how i manage my dotfiles via org-mode tangle.

Also with this, it breaks the shell prompt and there is misalignment.

https://0x0.st/HPrL.png

Also, running youtube-tui -h or youtube-tui -help it gives black screen.

Stats:
Distro - Nixos (unstable)
pkg-Version - 0.7.0
Using wayland (hyprland)
Terminal - Foot
Shell - Zsh
Prompt - Starship

from youtube-tui.

Siriusmart avatar Siriusmart commented on September 7, 2024

Ok here's what's happening.

  1. App launches, attempting to load the config files.
  2. So how it loads the config is that it reads the file, then it writes to the file using default formatting, adding new options and stuff.
  3. Here it fails to write to the config files, so it just decide to not load the config file at all.
  4. Because of bad coding, it didn't see any problems with not loading config files.
  5. Now the TUI starts, and tries to get the config file contents, its not there and so it panics.
  6. And then your terminal gets screwed up because the restore terminal function is not ran, it just exits.

You cannot fix this problem by editing config files, as they are not read in the first place, so just wait for an update.

Also, the command for help is youtube-tui help, running youtube-tui [anything else] will just replace the default launch command

from youtube-tui.

Siriusmart avatar Siriusmart commented on September 7, 2024

also another thing, i dont really understand orgmode tangle and stuff, but how do you get the config files in the first place if the program dont have write permission?

from youtube-tui.

idlip avatar idlip commented on September 7, 2024

Ah nice, thanks for quick reply on this!

Org-mode is a different story, Its something like "literate config" where i have source code blocks and documenting texts.
When i execute "tangle" it puts every source code block to the file i mention.

So my flow, is I have single org file to manage all my dotfiles.

Maybe you can direct writing some config to some location/file, say "saved.yml"
No need to force on this, let it work as it seems best.

I see that i can expand this program like scripting with env in main.yml and run commands.yml

Surely this can go very extensible.

Thank you, as I said earlier, Man oh Man, this needs more attention. Its super fast and works as expected!

from youtube-tui.

Siriusmart avatar Siriusmart commented on September 7, 2024

oh ok, ty again

from youtube-tui.

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.