dnote-tui 0.1.1

TUI for dnote
Documentation
<!-- Improved compatibility of back to top link: See: https://github.com/othneildrew/Best-README-Template/pull/73 -->
<a name="readme-top"></a>
<!--
*** Thanks for checking out the Best-README-Template. If you have a suggestion
*** that would make this better, please fork the repo and create a pull request
*** or simply open an issue with the tag "enhancement".
*** Don't forget to give the project a star!
*** Thanks again! Now go create something AMAZING! :D
-->



<!-- PROJECT SHIELDS -->
<!--
*** I'm using markdown "reference style" links for readability.
*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).
*** See the bottom of this document for the declaration of the reference variables
*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.
*** https://www.markdownguide.org/basic-syntax/#reference-style-links
-->
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]



<!-- PROJECT LOGO -->
<br />
<div align="center">
  <!-- <a href="https://github.com/deepanchal/dnote-tui"> -->
  <!--   <img src="images/logo.png" alt="Logo" width="80" height="80"> -->
  <!-- </a> -->

<h3 align="center">Dnote TUI (Work In Progress)</h3>

  <p align="center">
    TUI for dnote (https://www.getdnote.com/)
    <br />
    <a href="https://github.com/deepanchal/dnote-tui"><strong>Explore the docs ยป</strong></a>
    <br />
    <br />
    <a href="https://github.com/deepanchal/dnote-tui">View Demo</a>
    ยท
    <a href="https://github.com/deepanchal/dnote-tui/issues">Report Bug</a>
    ยท
    <a href="https://github.com/deepanchal/dnote-tui/issues">Request Feature</a>
  </p>
</div>


<!-- ABOUT THE PROJECT -->
## ๐ŸŒŸ About The Project

> Note: This is still a **WORK IN PROGRESS**

[![Screenshot1][product-screenshot]](.github/images/screenshot1.png)

A TUI (Terminal User Interface) for [`dnote`](https://www.getdnote.com/).

<p align="right">(<a href="#readme-top">back to top</a>)</p>



### ๐Ÿ—๏ธ Built With

- [`rust`]https://www.rust-lang.org/
- [`ratatui`]https://github.com/ratatui-org/ratatui

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- GETTING STARTED -->
## ๐Ÿš€ Getting Started

This is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.

### ๐Ÿ› ๏ธ Prerequisites

1. Install rust: https://www.rust-lang.org/
2. Install dnote: https://github.com/dnote/dnote#installation

### ๐Ÿƒ Running project

1. Clone the repo.

2. cd into repo.

    ```sh
    cd dnote-tui
    ```

3. Run tui

    ```sh
    cargo run
    ```

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- USAGE EXAMPLES -->
## ๐Ÿ“ Usage

### ๐Ÿƒ Run

```sh
cargo run
```

### ๐Ÿ—๏ธ Build

```sh
cargo build
```

### ๐Ÿงช Run Tests

```sh
cargo test
```

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- ROADMAP -->
## ๐ŸŽฏ Roadmap

- [x] Show basic TUI with three sections (Books, Pages, & Content)
- [x] Create a dnote client
    - [x] Parse output from dnote cli to structs used by dnote client
    - [ ] Add methods to perform write operations with dnote cli in dnote client
- [ ] Functionalities 
    - [ ] Read Operations
        - [x] Read books from dnote cli into tui
        - [x] Read pages from dnote cli into tui
        - [x] Read pages content from dnote cli into tui
        - [ ] Show truncated pages content beside page id in pages section
    - [ ] Write Operations
        - [ ] Create a new book with page
        - [ ] Edit a book's name
        - [ ] Edit a page's content
        - [ ] Delete a book's page
        - [ ] Delete a book and all it's pages
        

See the [open issues](https://github.com/deepanchal/dnote-tui/issues) for a full list of proposed features (and known issues).

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- CONTRIBUTING -->
## ๐Ÿค Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feat/amazing-feature`)
3. Commit your Changes (`git commit -m 'feat: add some amazing-feature'`)
4. Push to the Branch (`git push origin feat/amazing-feature`)
5. Open a Pull Request

<p align="right">(<a href="#readme-top">back to top</a>)</p>



<!-- LICENSE -->
## ๐Ÿ“„ License

Distributed under the MIT License. See [`LICENSE`](LICENSE) for more information.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/deepanchal/dnote-tui.svg?style=for-the-badge
[contributors-url]: https://github.com/deepanchal/dnote-tui/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/deepanchal/dnote-tui.svg?style=for-the-badge
[forks-url]: https://github.com/deepanchal/dnote-tui/network/members
[stars-shield]: https://img.shields.io/github/stars/deepanchal/dnote-tui.svg?style=for-the-badge
[stars-url]: https://github.com/deepanchal/dnote-tui/stargazers
[issues-shield]: https://img.shields.io/github/issues/deepanchal/dnote-tui.svg?style=for-the-badge
[issues-url]: https://github.com/deepanchal/dnote-tui/issues
[license-shield]: https://img.shields.io/github/license/deepanchal/dnote-tui.svg?style=for-the-badge
[license-url]: https://github.com/deepanchal/dnote-tui/blob/main/LICENSE
[product-screenshot]: ./.github/images/screenshot1.png