Comments (12)
I see the problem: the directories
crate only follows XDG on linux...
from presenterm.
No worries, I got it from the path in your comment. I just didn't expect this to be platform dependent. Alright great! I'll release 0.6.1 soon to include this fix.
from presenterm.
I think this should be respected already. I'm using the directories crate which claims to respect the XDG spec. Could you double check? I'll update the docs to make that more clear tho.
Also just want to take the opportunity to express my thanks for this project - it is my go-to tool for presentations and it is excellent
Thanks a lot! I'm glad people find it useful ❤️
from presenterm.
I just created #193 which seems to fix the issue. Could you double check please? Thanks!
from presenterm.
Hmm weird... This works for me:
root@acdcf0c7d06b:/tmp/presenterm# ls -R /tmp/xdg
/tmp/xdg:
presenterm
/tmp/xdg/presenterm:
config.yaml
root@acdcf0c7d06b:/tmp/presenterm# XDG_CONFIG_HOME=/tmp/xdg ./target/debug/presenterm examples/demo.md
If I do that, it will load the config file under the path pointed at by the env var and respect it. Do note that -c
is unrelated to this; custom themes will still be looked up under your config directory.
from presenterm.
I just pushed a fix on the same branch. Can you test it? Now it should be respected in all OSes. Not sure what's the rationale behind only supporting it in linux.
from presenterm.
You're a legend sir, thank you again 🙏🏻
from presenterm.
Ah so maybe this is more of a bug! I just double-checked and on 0.6.0
it doesn't seem to be respecting the env var I have set - if I pass the config via the -c
flag it works, but it still errors out with error: invalid theme name
- I'm just assuming since my custom theme is in ~/.config/presenterm/themes/
and it's still looking in ~/Library/Application Support/presenterm/
from presenterm.
I tried doing a cargo run
from the xdg-config-home
branch but it looks like I still get the same result - and similarly a invalid theme
error when trying cargo run -- -c ~/.config/presenterm/config.yaml
from presenterm.
Hmm, let me try the same and share here (and thanks for your patience, I'm
not a rustacean). Also should mention I'm using fish shell 3.7.0 in my testing
❯ ls -R /tmp/xdg-test/
presenterm
/tmp/xdg-test/presenterm:
config.yaml
❯ cat /tmp/xdg-test/presenterm/config.yaml
defaults:
theme: light
bindings:
exit: ["<c-c>", "q"]
Then after doing cargo build
, from the root on xdg-config-home
branch
❯ env XDG_CONFIG_HOME=/tmp/xdg-test ./target/debug/presenterm examples/demo.md
With these steps I still find it is not respecting the XDG_CONFIG_HOME
env
var i.e. not picking the config up (no light theme, can't quit with q), but I don't
doubt the fact I could be doing something dumb 🙂 Let me know if there's
anything else I can share or something else I can try.
from presenterm.
Another update: wanted to share I also just tried this on the official docker image for rust (realizing that's what you did initially) and I'm not able to reproduce the problem, so maybe there is something platform/shell specific going on (or again, maybe I'm doing something wrong here^) - I'll keep trying to debug
from presenterm.
Huzzah, that worked! Thanks - and sorry I failed to mention way sooner that I'm on MacOS, that would've been helpful info.
from presenterm.
Related Issues (20)
- Markdown syntax: can we have a different flavour? HOT 2
- Hot reload breaks when presentation file is temporarily deleted
- Modals show up behind images in kitty terminal
- Front matter block causing error on Windows HOT 2
- A basic HOWTO HOT 2
- Which platforms? HOT 1
- [Feature Request] A way to spread sub-titles or bullet points in the vertical direction HOT 6
- `config.yaml` file is ignored on Windows HOT 4
- Leniency flag for cross compatibility HOT 2
- ! rendered as \! when in a quote HOT 2
- Would you accept other catppuccin themes as a PR? HOT 1
- Remote images no longer loading HOT 2
- Presenterm does not install using cargo or AUR helper HOT 9
- Crashes when trying to user presentation mode `-p` HOT 1
- Failed to export presentation to PDF HOT 2
- [Request] Allow spawning processes inside presenterm HOT 2
- Unfindable config file HOT 1
- [Request] New line for multiple authors HOT 4
- Question: Can you set typst output width to 100%? instead of just centered? HOT 3
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 presenterm.