Skip to content

justnat3/the-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

What is Vault?

Vault is a tiny(under 2.5MB) note management tool made in rust, the idea came from how I personally store my notes, which happens to be in a directory called "the_vault". This is compatible with all editors, and I am starting to implement more features. Like creating links to projects READMEs and other forms of documentation.

please note that there will be name change coming "notebones" will be the new name of this project soon. I feel that vault is a very forget-able name. also "linking" can be called "ligaments" and that is just so cool. Cheers-

Feedback Wanted. If this is something you are interested in or if this is something you have used & have feedback. Please shoot me a message either by email nreed@linux.com or you can create a issue that will be marked feedback or a respective tag.

Table of Contents

Installation

generic-linux:

# valid path has a forward slash at the end of the path
# set a valid path to your vault
export VAULT_PATH=/path/to/vault/

# set a valid path to your editor
export VAULT_EDITOR=/path/to/your/editor
# the path to your editor should not have a leading forward slash

# after cloning the repo and cd'ing into it.Just run cargo build --release
cargo build --release

WARNING: Windows is not full supported, however a wsl env with a in-terminal editor definetely is.

windows:

cmd:

# set a valid path to your vault
set VAULT_PATH "C:/path/to/vault"

# set a valid path to your editor
set VAULT_EDITOR "C:/path/to/your/editor"

# after cloning the repo and cd'ing into it.Just run cargo build --release
cargo build --release

# you can access the binary in /target/release/vault

powershell:

# set a valid path to your vault
$env:VAULT_PATH = "C:/path/to/vault"

# set a valid path to your editor
$env:VAULT_EDITOR = "C:/path/to/your/editor"

# clone the repo cd the_vault/vault then run the cargo build like below
cargo build --release

# you can access the binary in /target/release/vault
  1. Open the start menu
  2. Open the option Edit the system environment variables
  3. Click Environment variables... button
  4. in System variables find path
  5. Click Edit
  6. click new
  7. Put the path to your vault.exe - recommended to put it in C:/Program Files
  8. Please do not include the file name in the path on the env var you just added
  9. close your command_prompt or powershell and reopen it.

Usage

You can call vault in your terminal with

# this should run fine as long as your defined VAULT_PATH/VAULT_EDITOR
$ vault

Starting a new Note

# note name with spaces. this is normal
$ vault great new note name

You may notice something cool here. You can type in the note name with no quotes and with spaces. This will also create the file and attach your note title in the file

Listing all of your notes

# listing all the vault files
vault list

Removing a note

# be careful here because you can not recover removed notes
vault rm great-new-note-name

Renaming a note

# This will rename foo -> bar
vault rename foo bar

# this will also rename foo -> bar
vault mv foo bar

Searching for notes

# search is by keyword, given a keyword vault will return every file that contains that keyword
vault search note-keyword

Vault file linking

Linking a project file to vault

# this would create a link called "foo" in vault -> this would then edit your project file
vault link /path/to/project-file foo

# to edit your project file you would then just execute this
vault foo

=======


#### Removing a note
```bash
# be careful here because you can not recover removed notes
vault rm great-new-note-name

Renaming a note

# This will rename foo -> bar
vault rename foo bar

# this will also rename foo -> bar
vault mv foo bar

Searching for notes

# search is by keyword, given a keyword vault will return every file that contains that keyword
vault search note-keyword

Vault file linking

Linking a project file to vault

# this would create a link called "foo" in vault -> this would then edit your project file
vault link /path/to/project-file foo 

# to edit your project file you would then just execute this
vault foo

Viewing a vault-links path

# pulling off of our example above. Lets say you forget where this link goes to
vault view foo

# this ^^ will return  "" Linked to: /path/to/project-file ""

Packages

No packages published

Languages