Skip to content

Commit

Permalink
bump version 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
reorx committed Jan 27, 2023
1 parent ebe4ae1 commit 0c33584
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-paste-image-rename",
"name": "Paste image rename",
"version": "1.5.0",
"version": "1.5.1",
"minAppVersion": "0.12.0",
"description": "Rename pasted images and all the other attchments added to the vault",
"author": "Reorx",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "obsidian-paste-image-rename",
"version": "1.5.0",
"version": "1.5.1",
"main": "main.js",
"scripts": {
"start": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && BUILD_ENV=production node esbuild.config.mjs && cp manifest.json build",
"version": "node version-bump.mjs && git add manifest.json versions.json",
"release": "yarn build && gh release create ${npm_package_version} build/*"
"release": "npm run build && gh release create ${npm_package_version} build/*"
},
"keywords": [],
"author": "Reorx",
Expand Down
26 changes: 20 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,29 @@
* - [ ] add rules for moving matched images to destination folder
*/
import {
App, Plugin, PluginSettingTab, Setting, TFile, TAbstractFile,
Modal, MarkdownView, Notice,
App,
MarkdownView,
Modal,
Notice,
Plugin,
PluginSettingTab,
Setting,
TAbstractFile,
TFile,
} from 'obsidian';

import { ImageBatchRenameModal } from './batch';
import { renderTemplate } from './template';
import {
createElementTree, debugLog, path, sanitizer, lockInputMethodComposition,
getVaultConfig, escapeRegExp, DEBUG, NameObj,
createElementTree,
DEBUG,
debugLog,
escapeRegExp,
getVaultConfig,
lockInputMethodComposition,
NameObj,
path,
sanitizer,
} from './utils';

interface PluginSettings {
Expand Down Expand Up @@ -51,7 +65,7 @@ export default class PasteImageRenamePlugin extends Plugin {

async onload() {
const pkg = require('../package.json')
console.log(`Plugin loading: ${pkg.name} ${pkg.version}`)
console.log(`Plugin loading: ${pkg.name} ${pkg.version} BUILD_ENV=${process.env.BUILD_ENV}`)
await this.loadSettings();

this.registerEvent(
Expand Down Expand Up @@ -110,7 +124,7 @@ export default class PasteImageRenamePlugin extends Plugin {

}

async startRenameProcess(file: TFile, autoRename: boolean = false) {
async startRenameProcess(file: TFile, autoRename = false) {
// get active file first
const activeFile = this.getActiveFile()
if (!activeFile) {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"1.3.0": "0.12.0",
"1.3.1": "0.12.0",
"1.4.0": "0.12.0",
"1.5.0": "0.12.0"
"1.5.0": "0.12.0",
"1.5.1": "0.12.0"
}

0 comments on commit 0c33584

Please sign in to comment.