-
-
Notifications
You must be signed in to change notification settings - Fork 5
Home
Welcome to the FuzPad wiki! FuzPad is a minimalistic note management solution powered by fzf. This wiki will guide you through the features, installation, configuration, and usage of FuzPad.
FuzPad is designed to provide a straightforward and minimalistic note management solution using a Bash script. It allows you to create, open, search, and delete notes efficiently. FuzPad also supports version control by automatically committing changes to your notes.
- New: Create a new note with the current date and time as the filename.
- Open: Open an existing note.
- Search: Search within notes for specific content.
- Delete: Delete selected notes.
- Version control: Automatically commits changes to your notes.
brew install JianZcar/packages/fuzpad
Ensure ~/.local/bin
is in your PATH:
curl -s https://gist.githubusercontent.com/JianZcar/df050e108b462e469f413f0eec229143/raw | bash
- Clone the repository:
git clone https://github.com/JianZcar/FuzPad.git
cd FuzPad
- Make the script executable:
chmod +x bin/fuzpad
- Run the script:
./bin/fuzpad
You can configure FuzPad by setting environment variables in your ~/.bashrc
file or directly modifying the script.
Change the default directory for notes:
export FUZPAD_DIR="$HOME/Documents/.notes"
Change the text editor:
export EDITOR="nano"
Change the text format:
export FUZPAD_TEXT_FORMAT="txt"
Change the date and time format used for note filenames:
export FUZPAD_DATE_TIME_FORMAT="%Y-%m-%d-%H-%M-%S"
Change the theme used by bat
for previewing notes:
export FUZPAD_BAT_THEME="OneHalfLight"
Set to true
to reverse the order of the list when opening or deleting notes:
export REVERSE_LIST="false"
Change the sorting format for listing notes (T@
for creation date, Y
for modified date):
export SORT_FORMAT="T@"
Change the size of the preview window for fzf
:
export PREVIEW_SIZE="70%"
Set the starting line number for the search preview:
export START_LINE_SEARCH_PREVIEW="5"
Set the ending line number for the search preview:
export END_LINE_SEARCH_PREVIEW="9999"
After adding the necessary variables to your ~/.bashrc
file, remember to source it to apply the changes:
source ~/.bashrc
To create a new note, select the "New" option from the menu. The note will be created with the current date and time as the filename.
To open an existing note, select the "Open" option from the menu. You will be presented with a list of notes to choose from.
To search within notes, select the "Search" option from the menu. Enter your search query, and FuzPad will display the matching results.
To delete notes, select the "Delete" option from the menu. You can select multiple notes to delete by pressing the tab
key to multi-select.
You can change the default text editor by setting the EDITOR
variable in your ~/.bashrc
file:
export EDITOR="nano"
Yes, you can use FuzPad without Git. However, version control features that automatically commit changes to your notes will not be available.
We welcome contributions from the community! Please refer to the Contributing Guidelines for more details on how to get started.
Feel free to fork the repository and submit pull requests. Contributions are welcome!
This project is licensed under the terms of the GNU General Public License v3.0. For more details, see the LICENSE file in the repository.