> ## Content Index
> Fetch the complete content index at: https://www.bramadams.dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# March 22, 2023
- URL: https://www.bramadams.dev/202303222321/
- Published: 2023-03-23T04:06:27.000Z
- Updated: 2023-03-25T00:15:35.000Z
- Description: Things from March 22, 2023
- Author: Bram Adams
- Tags: instabram

- codex being deprecated, meaning im switching over my entire [stenography](https://stenography.dev/?ref=bramadams.dev) stack to turbo (\~exhausting!\~)

![https://bram-adams.ghost.io/content/images/2023/03/blue-lock-day-off-1.png](https://bram-adams.ghost.io/content/images/2023/03/blue-lock-day-off-1.png)

blue lock day off 1.png

![https://bram-adams.ghost.io/content/images/2023/03/blue-lock-day-off-2.png](https://bram-adams.ghost.io/content/images/2023/03/blue-lock-day-off-2.png)

blue lock day off 2.png

\*these blue lock guys make me wanna try harder at life, yah? -- to burn with raw competitive egotism for my chosen art form\*

![https://bram-adams.ghost.io/content/images/2023/03/c(arouse)l.png](https://storage.ghost.io/c/0c/cc/0ccc9a8d-054a-4056-b11e-e1bfbbb66387/content/images/2023/03/c-arouse-l-1.png)

c(arouse)l.png

![https://bram-adams.ghost.io/content/images/2023/03/sunny-beach!.png](https://storage.ghost.io/c/0c/cc/0ccc9a8d-054a-4056-b11e-e1bfbbb66387/content/images/2023/03/sunny-beach--1.png)

sunny beach!.png

**bramadams.dev is a reader-supported [published Zettelkasten](https://www.bramadams.dev/about/). [Both free and paid subscriptions are available](#/portal). If you want to support my work, the best way is by taking out a paid subscription.**

a command to move an image under a link to attachments folder (good for published [bhovs](https://github.com/bramses/bramses-highly-opinionated-vault-2023?ref=bramadams.dev)!)

```ts
this.addCommand({
			id: "move-image-under-cursor",
			name: "Move image under cursor",
			editorCallback: async (editor, view: MarkdownView) => {
				if (!view) {
					new Notice("No active view");
					return;
				}

				const cursorPos = editor.getCursor();
				const lineText = editor.getLine(cursorPos.line);
				const match = /!\[\[(.+)\]\]/.exec(lineText);

				if (!match || !match[1]) {
					console.error(
						"No valid file link found at cursor position"
					);
					return;
				}

				const fileName = match[1];

				try {
					// Get abstract representation of source file based on its path
					const sourceFilePath = `Private/Screenshots/${fileName}`;
					const sourceFile: TFile | null =
						(await this.app.vault.getAbstractFileByPath(
							sourceFilePath
						)) as TFile;

					if (!sourceFile) {
						console.error(`Could not find file ${fileName}`);
						return;
					}

					// Move/rename the file by changing its parent folder
					const newParentFolderName = "Attachments";

					this.app.fileManager.renameFile(
						sourceFile,
						`${newParentFolderName}/${sourceFile.name}`
					);

					console.log(
						`Successfully moved/renamed ${fileName} to ${newParentFolderName}/${sourceFile.name}`
					);
				} catch (error) {
					console.error(error);
				}
			},
		});

```