Exemplo n.º 1
0
class Sources:

    TAKEOUT = Source(index_takeout, name='takeout')

    PLAIN = Source(
        shellcmd.index,
        extract_from_path('tests/testdata/custom'),
        name='test',
    )
Exemplo n.º 2
0
    bash,
    grouvee,
)

SOURCES = [
    takeout,
    twitter,
    Source(
        auto.index,
        "~/Repos/",
        name="Repos",
        ignored=[
            "*/dss-cruzhacks/data/*.csv",
            "*/albums/*",
            "*fixture/*",
            "*/vcr_cassettes/*",
            "*/search_index.json",
            "*/yarn.lock",
            "*/package.json",
            "*[plus1]*",
            "*/package-lock.json",
            "*/promnesia-fork/tests/*",
        ],
    ),
    Source(
        auto.index,
        "~/Documents/Education",
        name="School",
        ignored=["*Canvas*"],
    ),
    mal,
Exemplo n.º 3
0
    twitter,
    viber,
)

# NOTE: at the moment try to avoid using complex sources names
# it's best to stick to digits, latin characters, dashes and underscores
# there might be some UI problems related to that

# now we can specify the sources
# this is a required setting
SOURCES = [
    # handle my knowledge base: extract links from Org-mode and Markdown files
    Source(
        auto.index,
        # NOTE: you'd need to specify your own filesystem path here
        '/path/to/my/blog',

        # you can specify optional name, so you can see where the URL is coming from within the extension
        name='blog',
    ),

    # we can index another path under a different name (for convenience)
    Source(
        auto.index,
        # NOTE: you'd need to specify your own filesystem path here
        '/path/to/personal/notes',
        ignored=['*.html'],  # we can exclude certain files if we want
        name='notes',
    ),

    # will clone the repository and index its contents!
    Source(
Exemplo n.º 4
0
from promnesia.common import Source
from promnesia.sources import auto
'''
List of sources to use.

You can specify your own, add more sources, etc.
See https://github.com/karlicoss/promnesia#setup for more information
'''
SOURCES = [
    Source(
        auto.index,
        # just some arbitrary directory with plaintext files
        '/usr/include/c++/',
        '/usr/local/include/c++/',  # on apple they are here apparently..
    )
]