Coder Social home page Coder Social logo

whateverforever / zettelwarmer Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 1.0 1.99 MB

CLI Tool for Zettlr/Obsidian to help you browse random notes. The older the note, the more likely it will be shown.

License: MIT License

Python 100.00%
zettlr zettelkasten zettelkasten-methodology note-taking obsidian obsidian-md spaced-repetition

zettelwarmer's Introduction

zettelwarmer's People

Contributors

whateverforever avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lodestone

zettelwarmer's Issues

OS specificity workaround

Hey! Love the idea and the script works great.
I was looking for a method / process / habit of reviewing old notes and this fits perfectly.

On Linux, I had to change line 152 with:
subprocess.run(["xdg-open", zettel])
This code does not necessarily work on any Linux.

As a broader solution, I replaced the same line with:

try:
    subprocess.run(["open", zettel]) #original command for Mac
except:
    subprocess.run(["xdg-open", zettel])

It should work on Mac and several Linux distros.
It should be expanded to include Windows systems, and I'm sure there are way more elegant solutions for this.

Error

When I run it, I get the following error:

Traceback (most recent call last):
  File "/Users/philipp/.scripts/zettelwarmer.py", line 204, in <module>
    main(**params)
  File "/Users/philipp/.scripts/zettelwarmer.py", line 144, in main
    plot_age_heatmap(ages)
  File "/Users/philipp/.scripts/zettelwarmer.py", line 26, in plot_age_heatmap
    padded_ages_mins = np.pad(
  File "<__array_function__ internals>", line 5, in pad
  File "/usr/local/lib/python3.8/site-packages/numpy/lib/arraypad.py", line 803, in pad
    _set_pad_area(roi, axis, width_pair, value_pair)
  File "/usr/local/lib/python3.8/site-packages/numpy/lib/arraypad.py", line 147, in _set_pad_area
    padded[left_slice] = value_pair[0]
ValueError: cannot convert float NaN to integer

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.