Git Product home page Git Product logo

snippetstore's Introduction

Typing SVG

snippetstore's People

Contributors

dynobo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

msgpo

snippetstore's Issues

Module not found error: No module named 'send2trash'

Hi
I get an error when executing. Says module is not found but double checked. Module is installed.

Requirement already satisfied: send2trash in /home/jose/.local/lib/python3.8/site-packages (1.5.0)

any hint?

Thanks in advance

recursive indexing not working

Hi,
The md files are not indexed recursively in my Albert installation, only md files in top directory are indexed.

Here's the folder structure for snippets:

.
├── R_count_na_map.md
├── R_count_na_rowwise.md
├── R_count_na_summarise.md
└── shell
    ├── directory-size.md
    └── update-grub.md

and here's the beginning of ~/.local/share/albert/org.albert.extension.python/modules/SnippetStore.py file (I commented out send2trash related lines)

#!/usr/bin/env python

"""SnippetStore

Add text snippets as md file in folder, search them, and copy to clipboard."""

from albertv0 import *
import glob
import re
import os
import subprocess
# from send2trash import send2trash

__iid__ = 'PythonInterface/v0.1'
__prettyname__ = 'SnippetStore'
__version__ = '0.1'
__trigger__ = 'sn '
__author__ = 'dynobo'
__bin__ = 'sh'
#__dependencies__ = ['send2trash']

SNIPPET_PATH = '/home/user/Dropbox/Draft/Snippets'
RECURSIVE = True
SNIPPET_EXT = 'md'
iconPath = iconLookup('gedit')

I was suspicious about the line 62, I checked that recursive is not recognized. If I try the following code

[i for i in glob.iglob("/home/user/Dropbox/Draft/Snippets" + '**/*.{}'.format("md"))]

it prints the names of the md files in root folder. If I try the recursive=True opiton, I get error: TypeError: iglob() got an unexpected keyword argument 'recursive'

When I checked online, it mentions that recursive option is introduced with Python3, so I changed the first line of the script into #!/usr/bin/env python3 still didn't help.. how can I overcome this problem?

a recent update in albert launcher broke this plugin

Hi,
After update in albert launcher recently, this plugin stopped working.

The error message was complaining about albertv0 module not found error. I changed that line to albert but still it does not work. I'm guessing there's change in internals of how plugins work.

When I type sn, I see this message in debug log:

[debg:calculator] Muparser SetExpr exception:  Unexpected token "sn" found at position 0.

Awesome extension!

Hello, I really appreciate your work on this extension and would like to donate some monies to you. What is the best way to do that?

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.