dynobo / snippetstore Goto Github PK
View Code? Open in Web Editor NEWExtension for Albert Launcher, used to store and retrieve coding snippets and other texts
License: MIT License
Extension for Albert Launcher, used to store and retrieve coding snippets and other texts
License: MIT License
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
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?
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.