Skip to content

Commit

Permalink
release: 0.38.0-beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
RyotaUshio committed Mar 14, 2024
1 parent 4ee2972 commit 19ae3d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "pdf-plus",
"name": "PDF++",
"version": "0.38.0-beta",
"version": "0.38.0-beta2",
"minAppVersion": "1.4.16",
"description": "The most Obsidian-native PDF annotation tool ever.",
"author": "Ryota Ushio",
Expand Down
5 changes: 3 additions & 2 deletions src/modals/external-pdf-modals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ export class ExternalPDFModal extends PDFPlusModal {
new FuzzyFolderSuggest(this.app, text.inputEl, { blurOnSelect: false })
.onSelect(({ item: folder }) => {
setTimeout(() => {
text.setValue(folder.path.endsWith('/') ? folder.path : folder.path + '/Untitled.pdf');
text.inputEl.setSelectionRange(text.getValue().lastIndexOf('/') + 1, text.inputEl.value.lastIndexOf('.'))
const path = normalizePath(folder.path + '/Untitled.pdf');
text.setValue(path);
text.inputEl.setSelectionRange(path.lastIndexOf('/') + 1, path.lastIndexOf('.'));
});
})
text.onChange((value) => {
Expand Down

0 comments on commit 19ae3d6

Please sign in to comment.