Skip to main content

No project description provided

Project description

A cli TagSpaces client, especially geared towards The Secret Weapon approach to Getting Things Done.

History

A few months into 2017 I read Jon Westenberg's post about how he uses Evernote to keep track of all the things that he needs to do. In the article he has some pretty golden advice:

Before I get into it though, I want to be clear. What I do might not work for you. There is no golden key to productivity, and this is pretty specifically designed to match my workflow and my personality.

Which is, of course, fantastic advice.

While I'm sure Evernote is a fantastic tool with all the bells and whistles that one could desire, it's not exactly my bells and whistles. I have a slightly different approach that I prefer. I'm much more into the command line, mainly because it's the easiest way to eliminate distractions. Yeah, you can turn off distractions in your browser and on your phone - but you actually have to turn on distractions on the command line. So I try to spend most of my time here.

About a year ago I also came across TagSpaces, which has a philosophy I love: just stick the information into the filename itself. Then it doesn't matter what system you're using, the information is going to travel with the file.

After I read Jon's article, I started trying to use the TagSpaces client. It worked well enough, though it wasn't quite as keyboard-centric as I wanted. Using Dropbox to sync my files worked great (though they still don't have a client for the Raspberry Pi, grumble grumble).

I toyed around with using the command line, ls *1-now* or find . -name *3-soon* worked pretty well, but it was still a bit clunky. Out of that need came Shibboleth

Guide

Shibboleth is pretty simple. At the moment it only supports Linux-y systems (there's some weirdness on Mac OSX, with readline), but I'm always open to pull requests!

All you have to do is install shibboleth:

python3.6 -m pip install shibboleth

(Come join me in the glorious future that is Python3.6! Or, if you think it's awesome and you live in some horrible reality that requires something ancient, did I mention that I'm totally accepting pull requests?)

Once it's installed, just start it up in whatever directory you want to stick your stuff. Maybe you do something like this:

$ cd ~/Dropbox/
$ mkdir secret-weapon
$ cd secret-weapon
$ mkdir completed
$ shibboleth
Welcome to Shibboleth, the tool designed to be *your* secret weapon.

Your editor is currently vim. If you don't like that, you
should change or set your EDITOR environment variable.

⇀shibboleth:/home/wayne/Dropbox/secret-weapon
> new
Title: Try out shibboleth

That will launch your editor - whatever your EDITOR environment variable is set to. Or vim, if nothing is set. :q is how you get out of Vim, if that's not your thing.

Save and quit and you should come back to shibboleth:

⇀shibboleth:/tmp/fnord/Try-out-shibboleth[20170406~011315].md
>show
********************************************************************************
Trying out shibboleth, how does it work for me?

********************************************************************************
⇀shibboleth:/tmp/fnord/Try-out-shibboleth[20170406~011315].md
>

It will automatically select the new file. You may notice that it changed the spaces for -. That's because readline is confusing and hard and doesn't like autocompleteing spaces. But if you can make it do the right thing, did I mention I'm accepting pull requests?

So you can change the priority of your selected file/task with priority, or the shortcut p.

>p 1
⇀shibboleth:/tmp/fnord/Try-out-shibboleth[20170406~011315 1-now].md
>

You can deselect to drop that, or select a different file. Or create another new one:

>new something completely different
⇀shibboleth:/tmp/fnord/something-completely-different[20170406~013345].md
>show
********************************************************************************
A man with three legs!

> 'e ran off!

********************************************************************************
⇀shibboleth:/tmp/fnord/something-completely-different[20170406~013345].md
p 4
⇀shibboleth:/tmp/fnord/something-completely-different[20170406~013345 4-later].md
>

You can use ls to list all the files in the directory, cd to change directory. Or if you just want to see what you're supposed to be doing now:

> now
trying-out-shibboleth[20170406~013326 1-now].md
⇀shibboleth:/tmp/fnord/trying-out-shibboleth[20170406~013326 1-now].md
>later
something-completely-different[20170406~013345 4-later].md
⇀shibboleth:/tmp/fnord/trying-out-shibboleth[20170406~013326 1-now].md
>

Once you're done with a thing, you can compelete it, or be done with it:

>done
⇀shibboleth:/tmp/fnord
>cd completed
⇀shibboleth:/tmp/fnord/completed
>later
something-completely-different[20170406~013345 4-later].md

That's really about all there is to it. The way I use this is

  • start up shibboleth
  • check my waiting list to see if there's anything I need to move out of waiting.
  • Go through someday, later, soon, and next to see if anything needs to be bumped up.
  • Decide which of now I need to work on the most, then s elect it. I may edit it to add some notes or just show to review what I'm supposed to be doing. Then when I finish that I mark it done and move on to the next.

As new tasks come in via email, etc. I go ahead and add new ones. I've been using shibboleth as the interface for my tasks for about a day now and it works great for shifting the priority, creating new tasks, and editing ones that I've got.

If you've got any suggestions about what would make shibboleth (more) awesome, I'm happy to work with you to get your pull request in. Or if I've got some time or I think it's a killer feature, I'm sure I'll add it to my own list. Using shibboleth, of course :)

Philosophy

I would prefer to keep this as 3rd-party-dependency-free as possible. I'm not opposed to adding some kind of plugin architecture, but I really want shibboleth to stay one single file. That way you can just stick it in a directory and you're good to go.

Plugins

I've added a plugin architecture! Currently it requires plugins to be found in ~/.shibboleth/plugins. Plugins will be attached to Shibboleth's main loop as if they were methods, using the filename as the name of the command. For instance, if you wanted to add a really bad pomodoro timer, you could do that by creating a pom.py in the plugin directory that contained the following:

import time


def handle(self, line):
    print('Pomodoro', line)
    time.sleep(60*20)  # sleep for 20 minutes
    print('Pomodoro done!')

If you wanted to make it drop straight into the editor you could add:

    self.edit('')

At the end of the function.

TODOs

  • Add BSD license - Done 2018-10-01
  • Add other tag support - Done 2018-10-01
  • config. We want to be able to config shibboleth, right? Different colors and what-not.

CHANGELOG

[Unreleased]


[0.6.0] - [2021-06-17]

Fixed

  • Unhandled exceptions are now caught and written to shibboleth.log instead of crashing.
  • Added launch command, which will launch URLs found in headers in the task file.

[0.5.0] - [2019-10-15]

Added

  • work subcommand, to allow you to quickly process a particular priority. By default, it will work 1-now, but work 2 will work the "next" tasks.
  • version command, to display the current version of shibboleth.

Changed

  • Updated how prompt is generated. Shouldn't cause an issue, but something to be aware of, especially in plugins.

[0.4.1] - [2019-10-14]

Changed

  • cmdloop passes on *args and **kwargs - useful for running loops from plugins.

[0.4.0] - [2019-07-31]

Added

  • Review command that lets you cycle through your tasks, updating priorities.

Changed

  • Duplicate tags are no longer allowed, though if added outside Shibboleth they will not be interfered with.

[0.3.0]

Added

  • Plugin system. Add .py files to ~/.shibboleth/plugins to extend the functionality of Shibboleth.
  • Keep a changelog functionality for the changelog.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

shibboleth-0.6.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file shibboleth-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: shibboleth-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

File hashes

Hashes for shibboleth-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86387e3238c7a0298608705e6cf395e7e4fc6f2fa675dee5001809162edd00a8
MD5 6e764393631339ef00ab898f16f3b583
BLAKE2b-256 013195fc98c3182fd8d92658bcb8f93cda6b57f180d2071e7fc1ae8c549d180b

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page