mirror of
https://github.com/daledesilva/obsidian_google-keep-import.git
synced 2026-07-22 07:50:23 +00:00
Removed extension from notes mwhere json has no title
This commit is contained in:
parent
8a23825b11
commit
f8e9396689
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { DataWriteOptions, Notice, TFile, TFolder, Vault } from "obsidian";
|
||||
import GoogleKeepImportPlugin, { invalidChars_allOrWindowsPreset, invalidChars_appleOrAndroidPreset, invalidChars_linuxPreset} from "src/main";
|
||||
import { ImportProgressModal } from "src/modals/import-progress-modal/import-progress-modal";
|
||||
import { filenameSanitize, getFileExtension, removeExtension } from "./string-processes";
|
||||
import { filenameSanitize, getFileExtension, getNameAndExt, removeExtension } from "./string-processes";
|
||||
import { CharMap, CreatedDateTypes, MappingPresets, PluginSettings } from "src/types/plugin-settings";
|
||||
import { KeepJson, objectIsKeepJson } from "src/types/keep-data";
|
||||
import { IgnoreImportReason, ImportResult, LogStatus as LogStatus } from "src/types/results";
|
||||
|
|
@ -396,8 +396,8 @@ async function importJson(vault: Vault, folderPath: string, file: File, settings
|
|||
}
|
||||
|
||||
|
||||
let path = `${folder.path}/${filenameSanitize(content.title || file.name, settings)}`;
|
||||
|
||||
let path = `${folder.path}/${filenameSanitize(content.title || getNameAndExt(file.name).name, settings)}`;
|
||||
|
||||
|
||||
// TODO: Refactor this as createNewMarkdownFile function
|
||||
// Create new file
|
||||
|
|
|
|||
Loading…
Reference in a new issue