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

check item type before creating input text #1904

Conversation

FloppyDisco
Copy link
Contributor

closes #1901

added a check to see if the selected item is a file or a directory.
if it is a file. we only prepend the parent directory path, and not the filename.

this was necessary for both
treeview:new-file and treeview:new-folder

data/plugins/treeview.lua Outdated Show resolved Hide resolved
data/plugins/treeview.lua Outdated Show resolved Hide resolved
FloppyDisco and others added 2 commits October 30, 2024 11:41
Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
@takase1121 takase1121 merged commit 67752e1 into lite-xl:master Dec 2, 2024
1 check passed
takase1121 added a commit that referenced this pull request Dec 2, 2024
* check item type before creating input text

* Update data/plugins/treeview.lua

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

* Update data/plugins/treeview.lua

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

---------

Co-authored-by: FloppyDisco <joshuapaulpiasecki@gmail.com>
Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
takase1121 added a commit that referenced this pull request Dec 3, 2024
* check item type before creating input text

* Update data/plugins/treeview.lua

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

* Update data/plugins/treeview.lua

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

---------

Co-authored-by: FloppyDisco <joshuapaulpiasecki@gmail.com>
Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
takase1121 added a commit that referenced this pull request Dec 4, 2024
* check item type before creating input text

* Update data/plugins/treeview.lua

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

* Update data/plugins/treeview.lua

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

---------

Co-authored-by: FloppyDisco <joshuapaulpiasecki@gmail.com>
Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

treeview:new-file prepends selection name to commandView:enter even it it is not a dir.
2 participants