Skip to content

Commit

Permalink
change A_REVERSE to A_STANDOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Sep 24, 2023
1 parent 23a885b commit 80cd36f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/get_todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def wgetnstr(
return wgetnstr_success(todo, chars)
win.addstr(1, len(chars) + 1, "█")
for i, char in enumerate("".join(chars).ljust(win.getmaxyx()[1] - 2)):
win.addstr(1, i + 1, char, curses.A_REVERSE if i == position else 0)
win.addstr(1, i + 1, char, curses.A_STANDOUT if i == position else 0)
win.refresh()
try:
input_char = win.getch()
Expand Down
2 changes: 1 addition & 1 deletion src/print_todos.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def print_todos(
counter,
display_string[counter],
curses.color_pair(todo.color or 7)
| (curses.A_REVERSE if i in highlight else 0),
| (curses.A_STANDOUT if i in highlight else 0),
)
except OverflowError:
# This function call will throw an OverflowError if
Expand Down
4 changes: 2 additions & 2 deletions todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def color_menu(parent_win: Any, original: int) -> int:
1,
line,
curses.color_pair(get_color(line.strip()))
| (curses.A_REVERSE if i == selected else 0),
| (curses.A_STANDOUT if i == selected else 0),
)
try:
key = win.getch()
Expand Down Expand Up @@ -316,7 +316,7 @@ def sort_menu(
i + 1,
1,
line,
curses.A_REVERSE if i == cursor else 0,
curses.A_STANDOUT if i == cursor else 0,
)
try:
key = win.getch()
Expand Down
1 change: 0 additions & 1 deletion todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
-4 allow multiline print
-4 allow wgetnstr to use multiline editing
- make startup faster
- make new_todo_current use empty todo?
- add keybind to get_todo that allows for toggling between note and todo

0 comments on commit 80cd36f

Please sign in to comment.