Compare commits

...
Author SHA1 Message Date
Gustavo Henrique Miranda d13750f725 Merge pull request #23 from gmbrax/fix/wrong-database-access
Fix/wrong database access
2025-07-06 03:28:27 -03:00
Gustavo Henrique Miranda 0b9b3c8cf0 Merge pull request #22 from gmbrax/fix/binding-not-working
Merging fix/binding-not-working into development
2025-07-06 03:11:17 -03:00
Gustavo Henrique Miranda 42c5471ba7 Merge branch 'development' into fix/binding-not-working 2025-07-06 03:10:24 -03:00
Gustavo Henrique Santos Souza de Miranda 8a10fddb14 Refactored bindings to use Binding class for consistency across modal and screen components. 2025-07-06 03:04:18 -03:00
Gustavo Henrique Miranda 20c56e2c1b Merge pull request #19 from gmbrax/feat/photo-copying-system-dir
Feat/photo copying system dir
2025-07-06 01:18:12 -03:00
Gustavo Henrique Miranda 6438ef68a3 Merge pull request #16 from gmbrax/feat/XDG-Compliance
Feat/xdg compliance
2025-07-05 08:09:42 -03:00
Gustavo Henrique Santos Souza de Miranda ef8bc6cc0f Merge branch 'feat/photo-reference-system' into development 2025-07-05 07:47:02 -03:00
Gustavo Henrique Santos Souza de Miranda bf29745265 Merge branch 'feat/photo-reference-system' into development 2025-07-05 06:51:13 -03:00
Gustavo Henrique Miranda af7e25be53 Merge pull request #15 from gmbrax/feat/photo-reference-system
Feat/photo reference system
2025-07-05 06:28:53 -03:00
Gustavo Henrique Miranda 5b7b147e43 Merge pull request #14
feat/photo-reference-system
2025-07-03 21:10:26 -03:00
Gustavo Henrique Miranda 43919cabb9 Merge pull request #12 from gmbrax/feat/photo-sidebar-tui
Feat/photo sidebar tui
2025-06-29 22:27:14 -03:00
4 changed files with 17 additions and 12 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
from textual.app import ComposeResult
from textual.binding import Binding
from textual.containers import Vertical, Horizontal
from textual.screen import ModalScreen
from textual.widgets import Label, Input, Button
@@ -6,7 +7,7 @@ from textual.widgets import Label, Input, Button
class EditDiaryModal(ModalScreen[tuple[int,str]]):
BINDINGS = [
("escape", "cancel", "Cancel"),
Binding("escape", "cancel", "Cancel"),
]
def __init__(self, diary_id: int):
+10 -9
View File
@@ -12,6 +12,7 @@ from pilgrim.ui.screens.modals.edit_photo_modal import EditPhotoModal
from pilgrim.ui.screens.modals.file_picker_modal import FilePickerModal
from pilgrim.ui.screens.rename_entry_modal import RenameEntryModal
from textual.app import ComposeResult
from textual.binding import Binding
from textual.containers import Container, Horizontal, Vertical
from textual.screen import Screen
from textual.widgets import Header, Footer, Static, TextArea, OptionList
@@ -21,15 +22,15 @@ class EditEntryScreen(Screen):
TITLE = "Pilgrim - Edit"
BINDINGS = [
("ctrl+q", "quit", "Quit"),
("ctrl+s", "save", "Save"),
("ctrl+n", "new_entry", "New Entry"),
("ctrl+shift+n", "next_entry", "Next Entry"),
("ctrl+shift+p", "prev_entry", "Previous Entry"),
("ctrl+r", "rename_entry", "Rename Entry"),
("f8", "toggle_sidebar", "Toggle Photos"),
("f9", "toggle_focus", "Toggle Focus"),
("escape", "back_to_list", "Back to List"),
Binding("ctrl+q", "quit", "Quit"),
Binding("ctrl+s", "save", "Save"),
Binding("ctrl+n", "new_entry", "New Entry"),
Binding("ctrl+shift+n", "next_entry", "Next Entry"),
Binding("ctrl+shift+p", "prev_entry", "Previous Entry"),
Binding("ctrl+r", "rename_entry", "Rename Entry"),
Binding("f8", "toggle_sidebar", "Toggle Photos"),
Binding("f9", "toggle_focus", "Toggle Focus"),
Binding("escape", "back_to_list", "Back to List"),
]
def __init__(self, diary_id: int = 1):
+3 -1
View File
@@ -1,11 +1,13 @@
from textual.app import ComposeResult
from textual.binding import Binding
from textual.containers import Vertical, Horizontal
from textual.screen import ModalScreen
from textual.widgets import Label, Input, Button
class NewDiaryModal(ModalScreen[str]):
BINDINGS = [
("escape", "cancel", "Cancel"),
Binding("escape", "cancel", "Cancel"),
]
def __init__(self):
super().__init__()
+2 -1
View File
@@ -1,4 +1,5 @@
from textual.app import ComposeResult
from textual.binding import Binding
from textual.containers import Vertical, Horizontal
from textual.screen import ModalScreen
from textual.widgets import Label, Input, Button
@@ -8,7 +9,7 @@ class RenameEntryModal(ModalScreen[str]):
"""A modal screen to rename a diary entry."""
BINDINGS = [
("escape", "cancel", "Cancel"),
Binding("escape", "cancel", "Cancel"),
]
def __init__(self, current_name: str):