File tree 2 files changed +6
-2
lines changed
nikola/plugins/command/auto
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 8
8
--------
9
9
10
10
* Don't auto-rebuild on changes to ".foo" or "foo~" or changes in folders.
11
+ * auto should also rebuild in response to move events
11
12
* Don’t get metadata from file if compiler-specific metadata exist (Issue #1904)
12
13
* Fix PRETTY_URLS prompt for Windows (Issue #1901)
13
14
* Fix reST and Markdown title extraction from documents (Issue #1895, #1898)
Original file line number Diff line number Diff line change @@ -264,8 +264,11 @@ def do_rebuild(self, event):
264
264
print (errord )
265
265
266
266
def do_refresh (self , event ):
267
- self .logger .info ('REFRESHING: {0}' .format (event .src_path ))
268
- p = os .path .relpath (event .src_path , os .path .abspath (self .site .config ['OUTPUT_FOLDER' ]))
267
+ # Move events have a dest_path, some editors like gedit use a
268
+ # move on larger save operations for write protection
269
+ event_path = event .dest_path if event .dest_path else event .src_path
270
+ self .logger .info ('REFRESHING: {0}' .format (event_path ))
271
+ p = os .path .relpath (event_path , os .path .abspath (self .site .config ['OUTPUT_FOLDER' ]))
269
272
refresh_signal .send (path = p )
270
273
271
274
def serve_static (self , environ , start_response ):
You can’t perform that action at this time.
0 commit comments