Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: fixes and changes to temp files #906

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

jgmdev
Copy link
Member

@jgmdev jgmdev commented Mar 29, 2022

Changes

  • fix delete_temp_files() deleting in EXEDIR but temp_filename() was
    creating temp files in USERDIR
  • make delete_temp_files() public so it can be used by plugins
  • add optional dir parameter to both delete_temp_files() and
    temp_filename() to allow specifying a different directory, this is
    for example useful when generting markdown previews, the temp file
    should be generated in the project dir in case the readme references
    images that are relative to it, so the web browser can find them.

* fix delete_temp_files() deleting in EXEDIR but temp_filename() was
  creating temp files in USERDIR
* make delete_temp_files() public so it can be used by plugins
* add optional `dir` parameter to both delete_temp_files() and
  temp_filename() to allow specifying a different directory, this is
  for example useful when generting markdown previews, the temp file
  should be generated in the project dir in case the readme references
  images that are relative to it, so the web browser can find them.
@jgmdev jgmdev merged commit 7372d2f into lite-xl:master Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant