Skip to content

Feature Request: Append selection to daily note #867

@Carl-Porter

Description

@Carl-Porter

🚀 The feature, motivation and pitch

I largely use my daily notes as a scratch pad, and often like to throw code snippets from whatever repository I'm working in to remind myself to revisit those sections. It would be great to be able to hit a keybind to append my visual selection to my daily notes, maybe already in a markdown codeblock with the language of the file I'm sending from specified. Maybe we could even add the filename and location of the snippet being added.

This feature would be especially useful when going through a repository and deleting old code. It's not always clear what can/can't be deleted, and often you aren't sure if a section can be deleted, but you might want to delete the code that you used to navigate to the maybe delete code, which could make finding the original snippet you aren't sure about again difficult. Being able to quickly add the snippet, along with a reference to it's location, to your daily notes can make keeping everything organized much easier.

Currently I will yank the selection, hit my keybind to go to my daily note, put the selection in there and ctrl-o back to my previous file. Not terrible, but would be a huge QoL improvement to do this all with one keystroke.

I'm willing to take a crack at implementing this if there's support for it.

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions