WaylonWalker / markata-todoui

A todo plugin for markata. It is a tui (text user interface) that runs in the terminal using textual. It gives me a trello-board feel from the terminal. I can create, update, delete, move, and fully manage my todo items from the terminal with it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Traceback while crating the first task

pax80 opened this issue · comments

commented

Step to reproduce

  1. create a virtual env with python 3.9 python3.9 -m venv venv
  2. update the pip pip insstall --update pip
  3. pip install pip install git+https://github.com/waylonwalker/markata-todoui
  4. markata todoui
  5. g

enviromnet

  • Macos Monterey
  • Alacritty terminal
 22:21:53    ~/development/tasks  ♦️   🐍 venv  ⬡ v18.9.0 
$ ls -altr
total 16
drwxr-xr-x@ 212 mircopaccusse  staff  6784 Dec 10 22:04 ..
drwxr-xr-x    7 mircopaccusse  staff   224 Dec 10 22:06 venv
drwxr-xr-x   11 mircopaccusse  staff   352 Dec 10 22:06 .markata.cache
drwxr-xr-x   12 mircopaccusse  staff   384 Dec 10 22:06 markout
drwxr-xr-x    8 mircopaccusse  staff   256 Dec 10 22:07 .
-rw-r--r--    1 mircopaccusse  staff  2598 Dec 10 22:07 markata.toml
drwxr-xr-x    5 mircopaccusse  staff   160 Dec 10 22:08 tasks
-rw-r--r--    1 mircopaccusse  staff  3120 Dec 10 22:10 textual.log

traceback info

$ markata todoui

╭───────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────────╮
│ /Users/mircopaccusse/development/tasks/venv/lib/python3.9/site-packages/markata_todoui/__init__.py:157 in action_last_post                                                                                   │
│                                                                                                                                                                                                              │
│   154 │   │   self.current_stack.select_post_by_index(0)                                       ╭──────────────────── locals ────────────────────╮                                                            │
│   155 │                                                                                        │ self = MarkataApp(title='Textual Application') │                                                            │
│   156 │   async def action_last_post(self) -> None:                                            ╰────────────────────────────────────────────────╯                                                            │
│ ❱ 157 │   │   self.current_stack.select_post_by_index(-1)                                                                                                                                                    │
│   158 │                                                                                                                                                                                                      │
│   159 │   async def action_new_post(self) -> None:                                                                                                                                                           │
│   160 │   │   cmd = self.config.get("new_post")                                                                                                                                                              │
│                                                                                                                                                                                                              │
│ /Users/mircopaccusse/development/tasks/venv/lib/python3.9/site-packages/markata_todoui/posts.py:143 in select_post_by_index                                                                                  │
│                                                                                                                                                                                                              │
│   140 │   │   │   self.current_post = next(self.post_cycle)                                    ╭────────── locals ───────────╮                                                                               │
│   141 │                                                                                        │ index = -1                  │                                                                               │
│   142 │   def select_post_by_index(self, index) -> frontmatter.Post:                           │  self = Posts(name='doing') │                                                                               │
│ ❱ 143 │   │   uuid = self.post_list[index].get("uuid")                                         ╰─────────────────────────────╯                                                                               │
│   144 │   │   while uuid != self.current_post["uuid"]:                                                                                                                                                       │
│   145 │   │   │   self.current_post = next(self.post_cycle)                                                                                                                                                  │
│   146 │   │   self.refresh()                                                                                                                                                                                 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
IndexError: list index out of range