Code Monkey home page Code Monkey logo

Comments (6)

angela-d avatar angela-d commented on June 16, 2024 1

Works as expected!
Thanks for your efforts. :)

from nautilus-right-click-new-file.

angela-d avatar angela-d commented on June 16, 2024

If you would like to extend this, I welcome a pull request!

Manual (english-focused) instructions are here

Move the extracted files (templates) into /home/youruser/Templates/

Do you have /home/youruser/Sjabloon?

Or try:

cd ~/Sjabloon && pwd

^ That should give your Dutch version of ~/Templates

from nautilus-right-click-new-file.

GithubUser699 avatar GithubUser699 commented on June 16, 2024

I'm sorry, I should have been a bit more clear here.

I know that your manuals and your script are english-focused and I moved the files accordingly.
My system runs mainly in german so my path would be /home/user/Vorlagen/

However, what I meant is that some people might want to create ~/Templates/ and copy the files into it and are confused that it isn't working as expected, because they had to copy it to their translated path, e.g. ~/Vorlagen instead of the english Templates path.

So basically I just wanted to point out that a note on your manuals for non-english users would be great and that it would be even greater if the script would automatically move it to the correct folder (which means it should be able to determine the users language but I don't know how to accomplish this).

Pull request should be coming soon if I do it right.

from nautilus-right-click-new-file.

GithubUser699 avatar GithubUser699 commented on June 16, 2024

I solved it. You should test it yourself, but for me it worked and it sounds logical to me, that it works for every other supported language as well.
See pull request.

from nautilus-right-click-new-file.

angela-d avatar angela-d commented on June 16, 2024

Please add the conditional check and I'll run a test on my system, after!

from nautilus-right-click-new-file.

GithubUser699 avatar GithubUser699 commented on June 16, 2024

A little extra to my comments in the pull request section. To get the value - which I assigned to customPath - for your system run

source ~/.config/user-dirs.dirs && echo $XDG_TEMPLATES_DIR

It should give you something like /home/MyUser/Templates

(I'd give you a screenshot but github says "Something went really wrong, and we can't process that file. Try again." even though it's just a png screenshot file. Strange...)

EDIT: It works now. Github needs amazonaws.com to upload pictures...
Here it is:
Screenshot_1
Ignore the ^C.

from nautilus-right-click-new-file.

Related Issues (2)

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.