Skip to content

Commit

Permalink
add demo gif and fix JS file
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzay-G committed Mar 9, 2022
1 parent 1d3b640 commit 8378e11
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
`archivy-espial` allows you to integrate [Espial's](https://github.com/Uzay-G/espial) automatic organization and note discovery inside [Archivy](https://archivy.github.io).

How Archivy-Espial allows you to auto organize and link your thoughts:

![archivy-espial demo](archivy-espial.gif)

## Features:


Espial's features:

![espial demo](https://github.com/Uzay-G/espial/blob/main/img/espial.gif)

- Auto generated knowledge graph
- get suggestions for tags to add and documents to link to the current document.
- auto creation of "concept notes" — notes that are focused around an automatically discovered idea that regroups several of your notes
Expand Down
Binary file added archivy-espial.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions archivy_espial/espial.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let extDiv = document.createElement("div");
let hitsUl = document.createElement("ul");
let tagsUl = document.createElement("ul");
document.body.appendChild(extDiv);
extDiv.style = "position: fixed; right: 10px; bottom: 10px; box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; min-width: 100px; min-height: 100px; max-width: 300px; max-height: 300px; border: solid #141E27 1px; background: white; overflow-wrap: break-word; overflow-y: auto;"
extDiv.style = "position: fixed; right: 10px; bottom: 10px; box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; min-width: 100px; min-height: 100px; max-width: 300px; max-height: 300px; border: solid #141E27 1px; background: white; overflow-wrap: break-word; overflow-y: auto; z-index: 10"
let sim_btn = document.createElement("button");
let btn_style = "margin: 10px; border: none; background: none;"
sim_btn.style = btn_style;
Expand All @@ -24,7 +24,7 @@ function addText(text) {
let open = editorOpen();
if (open)
{
editor.codemirror.replaceSelection(text);
editor.codemirror.replaceSelection(text + " ");
}
else {
editor.codemirror.replaceRange("\n\n", text, {line: Infinity});
Expand Down Expand Up @@ -93,7 +93,8 @@ conc_btn.onclick = async function() {
btn.style.margin = "2px";
btn.textContent = "Add Link";
btn.onclick = () => {
addText(`#${hit.title}#`);
addText(`#${hit}#`);
}
li.appendChild(btn);
})
}

0 comments on commit 8378e11

Please sign in to comment.