Skip to content

Commit

Permalink
Merge pull request #82 from janrito/tab-decay
Browse files Browse the repository at this point in the history
Tab decay
  • Loading branch information
janrito authored Dec 1, 2022
2 parents 0e08a5c + 907c147 commit 998bd13
Show file tree
Hide file tree
Showing 26 changed files with 1,005 additions and 124 deletions.
5 changes: 4 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"svelteSortOrder": "options-styles-scripts-markup",
"svelteStrictMode": true,
"svelteAllowShorthand": true,
"svelteIndentScriptAndStyle": false
"svelteIndentScriptAndStyle": false,
"importOrder": ["^stores/(.*)$", "^lib/(.*)$", "^components/(.*)$", "^[./]"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
30 changes: 23 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Quipu is a simple [Pinboard](http://pinboard.in) powered session manager.

I have too many tabs open. I struggle to keep them organised. If I have to switch context, I often keep a group of tabs related to a topic open, or I save them in an email, or a slack message or a variety of different bookmarking services, and lose them. I fear my browser crashing and losing work.

Quipu is a tool that allows me to save some tabs for later, arranged in a simple, two level hierarchy. It doesn't require me to spend too much time curating them, but it does make saving and having them available quickly.
Quipu allows me to save some tabs for later, arranged in a simple, two level hierarchy. It doesn't require me to spend too much time curating them, but it does make saving and having them available quickly.

Quipu also closes old tabs. It keeps track of the last time that a tab was active and defines a probabilistic lifetime – based on a half-life setting. The tab is 50% likely to be closed by the time the half-life has passed since the tab was last active.

Quipu uses pinboard tags to organise bookmarks in pages and cards. A bookmark can appear in multiple pages and cards if it is so tagged. Pages and cards provide no formal structure, they are for the user's visual convenience only. Bookmarks are ordered according to when they were saved.

Expand All @@ -21,6 +23,14 @@ The name [quipu](https://en.wikipedia.org/wiki/Quipu) comes from an andean recor
Built with [Svelte](https://svelte.dev/) & [Tailwind](https://tailwindcss.com/), the fantastic [Iosevka](https://typeof.net/Iosevka/) typeface, drag and drop via [svelte-dnd-action](https://github.com/isaacHagoel/svelte-dnd-action)
scaffolding using [browser-extension-template](https://github.com/fregante/browser-extension-template)

## Prior Art

This extension was inspired by different tools that I have used in the past, but haven't quite done it. Here is a list of some of them:

- [tab decay](https://github.com/benkehoe/tab-decay) - where the idea of using half-lives to decay old tabs came from.
- [toby](https://www.gettoby.com/) – keep track of old bookmarks
-

## Contributing

This is a simple tool that I built because I need it. I would like to keep it simple, but if you find it and you like it, and have ideas on how to improve it, I'd love to hear them.
Expand All @@ -29,26 +39,32 @@ Some notes on how to get things running:

Install dependencies

```
$. npm install
```sh
npm install
```

Interactively build the extension for development

```sh
npm run watch
```
$. npm run watch

Run a version of Firefox that hot-reloads the extension

```sh
web-ext run
```

or just build it:

```
$. npm run build
```sh
npm run build
```

You can load a temporary extension on both Firefox and Chrome by pointing them to the `manifest.json` file on the `/distribution` directory after you have built it.

Make sure that your code conforms to the lint settings

```
$. npm run lint
npm run lint
```
Loading

0 comments on commit 998bd13

Please sign in to comment.