Skip to content

Commit

Permalink
Merge pull request #3533 from Hannah-Sten/create-file-windows
Browse files Browse the repository at this point in the history
Format as file path instead of file name in file not found intention
  • Loading branch information
PHPirates authored May 1, 2024
2 parents c2e74d8 + 806dae4 commit 7173871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

### Fixed
* Don't remove forward slashes from file path when creating a file from the unresolved file intention

## [0.9.5-alpha.10] - 2024-04-27

Expand All @@ -29,7 +30,6 @@

### Fixed

* Fix urls in quotes in bibtex
* Fix exceptions #3510, #3462, #3512
* Fix parse error when using \BeforeBeginEnvironment or \AfterEndEnvironment
* Fix quoted links in bibtex
Expand Down
4 changes: 2 additions & 2 deletions src/nl/hannahsten/texifyidea/ui/CreateFileDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package nl.hannahsten.texifyidea.ui

import com.intellij.openapi.fileChooser.FileChooserDescriptor
import com.intellij.openapi.ui.*
import nl.hannahsten.texifyidea.util.formatAsFileName
import nl.hannahsten.texifyidea.util.formatAsFilePath
import java.io.File
import javax.swing.JPanel
import javax.swing.JTextField
Expand All @@ -26,7 +26,7 @@ class CreateFileDialog(private val currentFilePath: String?, private val newFile
panel.layout = VerticalFlowLayout(VerticalFlowLayout.TOP)

// Field to enter the name of the new file.
val nameField = JTextField(newFileName.formatAsFileName())
val nameField = JTextField(newFileName.formatAsFilePath())
// Field to select the folder/location of the new file.
val pathField = TextFieldWithBrowseButton()
pathField.text = currentFilePath ?: return@apply
Expand Down

0 comments on commit 7173871

Please sign in to comment.