File tree Expand file tree Collapse file tree 5 files changed +13
-4
lines changed Expand file tree Collapse file tree 5 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Peplum ChangeLog
2
2
3
+ ## Unreleased
4
+
5
+ ** Released: WiP**
6
+
7
+ - When saving a PEP's source a default filename is provided.
8
+ ([ #24 ] ( https://github.com/davep/peplum/pull/24 ) )
9
+
3
10
## v0.3.0
4
11
5
12
** Released: 2025-01-29**
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ dependencies = [
12
12
" typing-extensions>=4.12.2" ,
13
13
" packaging>=24.2" ,
14
14
" humanize>=4.11.0" ,
15
- " textual-fspicker>=0.1.1 " ,
15
+ " textual-fspicker>=0.2.0 " ,
16
16
]
17
17
readme = " README.md"
18
18
requires-python = " >= 3.9"
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ textual==1.0.0
107
107
# via textual-fspicker
108
108
# via textual-serve
109
109
textual-dev==1.7.0
110
- textual-fspicker==0.1.1
110
+ textual-fspicker==0.2.0
111
111
# via peplum
112
112
textual-serve==1.1.1
113
113
# via textual-dev
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ sniffio==1.3.1
49
49
textual==1.0.0
50
50
# via peplum
51
51
# via textual-fspicker
52
- textual-fspicker==0.1.1
52
+ textual-fspicker==0.2.0
53
53
# via peplum
54
54
typing-extensions==4.12.2
55
55
# via peplum
Original file line number Diff line number Diff line change @@ -162,7 +162,9 @@ async def action_copy(self) -> None:
162
162
@work
163
163
async def action_save (self ) -> None :
164
164
"""Save the source of the PEP to a file."""
165
- if target := await self .app .push_screen_wait (FileSave ()):
165
+ if target := await self .app .push_screen_wait (
166
+ FileSave (default_file = API .pep_file (self ._pep .number ))
167
+ ):
166
168
if target .exists () and not await self .app .push_screen_wait (
167
169
Confirm (
168
170
"Overwrite?" , f"{ target } \n \n Are you sure you want to overwrite?"
You can’t perform that action at this time.
0 commit comments