chrisgrieser / shimmering-obsidian

Alfred Workflow with dozens of features for controlling your Obsidian vault.
https://alfred.app/workflows/chrisgrieser/shimmering-obsidian/
MIT License
817 stars 40 forks source link

[Bug]: New note from Selection (hotkey) replaces the same note from before #130

Closed christopherAI2022 closed 1 year ago

christopherAI2022 commented 1 year ago

Bug Description

  1. I make a selection and it makes a new note with that text selection in Obsidian (good). When I do it again, it just replaces that note with the new selection (Not so good).

  2. I also note that unlike the on feature there is no way to add a title (or is that incorrect thinking?)

Relevant Screenshot

https://github.com/chrisgrieser/shimmering-obsidian/assets/120127735/bf1c2728-c10c-4e00-b219-6514eed59e8b

To Reproduce

  1. Select Text
  2. Enter Hotkey set for Selection in macOS
  3. Select More Text
  4. Enter Hotkey again

Debugging Log

[14:11:13.791] Logging Started...
[14:11:26.726] Shimmering Obsidian[Hotkey] Processing complete
[14:11:26.774] Shimmering Obsidian[Hotkey] Passing output 'Bug Description
A clear and concise description of the bug.

' to Arg and Vars
[14:11:26.780] Shimmering Obsidian[Arg and Vars] Processing complete
[14:11:26.783] Shimmering Obsidian[Arg and Vars] Passing output 'Untitled' to Run Script
[14:11:27.364] Shimmering Obsidian[Run Script] Processing complete
[14:11:27.372] Shimmering Obsidian[Run Script] Passing output '/Untitled.md
' to Call External Trigger
[14:11:27.374] Shimmering Obsidian[External] Processing complete
[14:11:27.376] Shimmering Obsidian[External] Passing output '/Untitled.md
' to Run Script
[14:11:28.037] Shimmering Obsidian[Run Script] Processing complete
[14:11:28.062] Shimmering Obsidian[Run Script] Passing output '' to Hide Alfred
[14:11:36.566] Shimmering Obsidian[Hotkey] Processing complete
[14:11:36.597] Shimmering Obsidian[Hotkey] Passing output 'Relevant Screenshot
If applicable, add screenshots or a screen recording to help explain your problem.' to Arg and Vars
[14:11:36.602] Shimmering Obsidian[Arg and Vars] Processing complete
[14:11:36.604] Shimmering Obsidian[Arg and Vars] Passing output 'Untitled' to Run Script
[14:11:37.195] Shimmering Obsidian[Run Script] Processing complete
[14:11:37.204] Shimmering Obsidian[Run Script] Passing output '/Untitled.md
' to Call External Trigger
[14:11:37.206] Shimmering Obsidian[External] Processing complete
[14:11:37.208] Shimmering Obsidian[External] Passing output '/Untitled.md
' to Run Script
[14:11:38.104] Shimmering Obsidian[Run Script] Processing complete
[14:11:38.132] Shimmering Obsidian[Run Script] Passing output '' to Hide Alfred

Workflow Configuration

CleanShot 2023-05-12 at 14 06 37@2x

Version & System Information

-------------------------------
INTERNAL WORKFLOW CONFIGURATION
Vault Path: .../vault
.obsidian: exists
Metadata JSONs: 4/4
metadata.json String Length: 74
-------------------------------
WORKSPACE DATA
'workspace.json' exists
-------------------------------
SYSTEM
macOS: 13.3.1
Alfred: 5.1
-------------------------------
INSTALLED VERSION
Obsidian: 1.2.8
This Workflow: 3.9.4
Advanced URI Plugin: 1.35.0
Metadata Extractor: 1.1.0
-------------------------------
LATEST VERSION
Obsidian: 1.2.8 (Insider: 1.3.0)
This Workflow: 3.9.4
Advanced URI Plugin: 1.35.0
Metadata Extractor: 1.1.0
-------------------------------

Last working version

No response

Make sure you have done the following

chrisgrieser commented 1 year ago
  1. The overwriting of notes when creating new notes was a bug, which is fixed in the latest release.
  2. Yeah, the hotkey for creating new notes was actually a quite old leftover feature. I have removed the hotkey-for-note-creation feature to avoid this sort of confusion. When using a hotkey, you should use the hotkey for appending to your scratchpad note. (New notes can still be created via on)