Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text/uri-list support for paste_img #829

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
5c990f0
refactor: move nvim-cmp sources from root
adamtajti Jan 24, 2025
5c14b9a
blink support
adamtajti Jan 27, 2025
a8d8d54
docs
adamtajti Jan 27, 2025
658f548
linter care
adamtajti Jan 27, 2025
726bf89
implementing snack picker
SjB Feb 9, 2025
d6490d5
added documentation
SjB Feb 12, 2025
1e1c912
refactor(pickers): improve snacks picker implementation and callback …
SjB Feb 13, 2025
62c546a
refactor(pickers): improve snacks picker implementation and error han…
SjB Feb 14, 2025
f7ba7ae
fix: correct Path handling in grep picker
SjB Feb 14, 2025
2fe5fad
Changed the name of the linux binary in github actions
guspix Feb 28, 2025
ea293e8
Changed the name of the github binary for the docs action
guspix Feb 28, 2025
666195d
Merge pull request #1 from obsidian-nvim/bugfix/github-actions-neovim…
guspix Feb 28, 2025
ee7943e
Trying to fix github actions when merging to main
guspix Feb 28, 2025
e5d5db3
Merge pull request #2 from obsidian-nvim/bugfix/github-actions-neovim…
guspix Feb 28, 2025
90bbcaf
Revert "Trying to fix github actions when merging to main"
guspix Feb 28, 2025
a9beb92
Merge pull request #3 from obsidian-nvim/bugfix/github-actions-neovim…
guspix Feb 28, 2025
dbd6529
chore(docs): auto generate docs
guspix Feb 28, 2025
abe7987
Fixing linting, formatting and CHANGELOG for github actions
guspix Mar 1, 2025
a78fb6d
Merge pull request #5 from obsidian-nvim/blink-support
guspix Mar 2, 2025
e0c781e
chore(docs): auto generate docs
guspix Mar 2, 2025
d66b1f0
Merge branch 'main' into snacks-picker
guspix Mar 2, 2025
6a25311
Merge pull request #4 from obsidian-nvim/snacks-picker
guspix Mar 2, 2025
2cbf2ea
chore(docs): auto generate docs
guspix Mar 2, 2025
843aefe
Changed README to point to the org's repos and releases
guspix Mar 3, 2025
0d9111f
Changed changelog script to reference the org's repo + epwalsh dir in…
guspix Mar 3, 2025
4fca65b
Merge pull request #9 from obsidian-nvim/chore/update-docs-from-epwalsh
guspix Mar 3, 2025
9a3bfd3
chore(docs): auto generate docs
guspix Mar 3, 2025
8fc0dbf
Changed changelog reference to epwalsh
guspix Mar 3, 2025
bacd8b2
Merge pull request #12 from obsidian-nvim/chore/update-docs-from-epwalsh
guspix Mar 3, 2025
a954102
doc: add instruction for rocks.nvim, warning for packer.nvim
neo451 Mar 4, 2025
b5a15a3
fix: offload markdown rendering to render-markdown/markview
neo451 Mar 4, 2025
39ff5a0
update CHANGELOG
neo451 Mar 4, 2025
4c2f1ce
Fix bug where ObsidianNewFromTemplate does not respect note_id_func
bosvik Mar 6, 2025
da01374
Merge pull request #14 from neo451/main
guspix Mar 6, 2025
87d7b4e
chore(docs): auto generate docs
guspix Mar 6, 2025
624dab4
Merge pull request #16 from bosvik/main
neo451 Mar 6, 2025
e6ca9e8
feat: explain the fork in readme
ffricken Mar 6, 2025
405e35f
Merge pull request #18 from ffricken/chore/readme-about-the-fork
guspix Mar 8, 2025
5b3cbe2
chore(docs): auto generate docs
guspix Mar 8, 2025
5eea5d2
fix: parser treats "Nan" as a number instead of a string (#22)
neo451 Mar 8, 2025
7481090
Add text/uri-list support for `paste_img`
ottersome Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Make sure that the path there to plenary is correct for you.

## Keeping the CHANGELOG up-to-date

This project tries hard to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and we maintain a [`CHANGELOG`](https://github.com/epwalsh/obsidian.nvim/blob/main/CHANGELOG.md) with a format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
This project tries hard to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and we maintain a [`CHANGELOG`](https://github.com/obsidian-nvim/obsidian.nvim/blob/main/CHANGELOG.md) with a format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
If your PR addresses a bug or makes any other substantial change, please be sure to add an entry under the "Unreleased" section at the top of `CHANGELOG.md`.
Entries should always be in the form of a list item under a level-3 header of either "Added", "Fixed", "Changed", or "Removed" for the most part.
If the corresponding level-3 header for your item does not already exist in the "Unreleased" section, you should add it.
Expand Down Expand Up @@ -49,7 +49,7 @@ However you can test how changes to the README will affect the Vim doc by runnin
To do this you'll need install `pandoc` (e.g. `brew install pandoc` on Mac) and clone [panvimdoc](https://github.com/kdheepak/panvimdoc). Then from the panvimdoc repo root, run:

```bash
./panvimdoc.sh --project-name obsidian --input-file ../../epwalsh/obsidian.nvim/README.md --description 'a plugin for writing and navigating an Obsidian vault' --toc 'false' --vim-version 'NVIM v0.8.0' --demojify 'false' --dedup-subheadings 'false' --shift-heading-level-by '-1' && mv doc/obsidian.txt /tmp/
./panvimdoc.sh --project-name obsidian --input-file ../../obsidian-nvim/obsidian.nvim/README.md --description 'a plugin for writing and navigating an Obsidian vault' --toc 'false' --vim-version 'NVIM v0.8.0' --demojify 'false' --dedup-subheadings 'false' --shift-heading-level-by '-1' && mv doc/obsidian.txt /tmp/
```

This will build the Vim documentation to `/tmp/obsidian.txt`.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body:
- type: markdown
attributes:
value: >
#### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the existing and past issues](https://github.com/epwalsh/obsidian.nvim/issues?q=is%3Aissue+sort%3Acreated-desc+).
#### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the existing and past issues](https://github.com/obsidian-nvim/obsidian.nvim/issues?q=is%3Aissue+sort%3Acreated-desc+).
- type: textarea
attributes:
label: 🐛 Describe the bug
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
runtime: ~/.local/share/nvim/site/pack/vendor/start
minidoc-git: https://github.com/echasnovski/mini.doc
minidoc-path: ~/.local/share/nvim/site/pack/vendor/start/mini.doc
nvim_url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
nvim_url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux-x86_64.tar.gz

jobs:
docs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
include:
- os: ubuntu-latest
nvim_url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
nvim_url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux-x86_64.tar.gz
packages: luarocks ripgrep
manager: sudo apt-get

Expand Down
16 changes: 12 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Added `opts.follow_img_func` option for customizing how to handle image paths.
- Added better handling for undefined template fields, which will now be prompted for.
- Added support for the [`snacks.picker`](https://github.com/folke/snacks.nvim/blob/main/docs/picker.md) picker
- Added support for the [`blink.cmp`](https://github.com/Saghen/blink.cmp) completion plugin.
- Added support `text/uri-list` to `ObsidianPasteImg`.

### Changed

- Renamed `opts.image_name_func` to `opts.attachments.img_name_func`.
- Default to not activate ui render when `render-markdown.nvim` or `markview.nvim` is present

### Fixed

- Fixed an edge case with collecting backlinks.
- Fixed typo in `ObsidianPasteImg`'s command description
- Fixed the case when `opts.attachments` is `nil`.
- Fixed bug where `ObsidianNewFromTemplate` did not respect `note_id_func`
- Fixed bug where parser treats "Nan" as a number instead of a string

## [v3.9.0](https://github.com/epwalsh/obsidian.nvim/releases/tag/v3.9.0) - 2024-07-11

Expand Down Expand Up @@ -189,6 +195,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [v3.7.0](https://github.com/epwalsh/obsidian.nvim/releases/tag/v3.7.0) - 2024-03-08

There's a lot of new features and improvements here that I'm really excited about 🥳 They've improved my workflow a ton and I hope they do for you too. To highlight the 3 biggest additions:

1. 🔗 Full support for header anchor links and block links! That means both for following links and completion of links. Various forms of anchor/block links are support. Here are a few examples:
- Typical Obsidian-style wiki links, e.g. `[[My note#Heading 1]]`, `[[My note#Heading 1#Sub heading]]`, `[[My note#^block-123]]`.
- Wiki links with a label, e.g. `[[my-note#heading-1|Heading 1 in My Note]]`.
Expand All @@ -197,7 +204,7 @@ There's a lot of new features and improvements here that I'm really excited abou
We also support links to headers within the same note, like for a table of contents, e.g. `[[#Heading 1]]`, `[[#heading-1|Heading]]`, `[[#^block-1]]`.

2. 📲 A basic callback system to let you easily customize obisidian.nvim's behavior even more. There are currently 4 events: `post_setup`, `enter_note`, `pre_write_note`, and `post_set_workspace`. You can define a function for each of these in your config.
3. 🔭 Improved picker integrations (especially for telescope), particular for the `:ObsidianTags` command. See https://github.com/epwalsh/obsidian.nvim/discussions/450 for a demo.
3. 🔭 Improved picker integrations (especially for telescope), particular for the `:ObsidianTags` command. See <https://github.com/epwalsh/obsidian.nvim/discussions/450> for a demo.

Full changelog below 👇

Expand Down Expand Up @@ -437,7 +444,7 @@ Minor internal improvements.

### Fixed

- Fixed parsing header with trailing whitespace (https://github.com/epwalsh/obsidian.nvim/issues/341#issuecomment-1925445271).
- Fixed parsing header with trailing whitespace (<https://github.com/epwalsh/obsidian.nvim/issues/341#issuecomment-1925445271>).

## [v2.9.0](https://github.com/epwalsh/obsidian.nvim/releases/tag/v2.9.0) - 2024-01-31

Expand Down Expand Up @@ -467,7 +474,7 @@ Minor internal improvements.
### Fixed

- Fixed a YAML parsing issue with unquoted URLs in an array item.
- Fixed an issue on Windows when cloning a template into a new note. The root cause was this bug in plenary: https://github.com/nvim-lua/plenary.nvim/issues/489. We've added a work-around.
- Fixed an issue on Windows when cloning a template into a new note. The root cause was this bug in plenary: <https://github.com/nvim-lua/plenary.nvim/issues/489>. We've added a work-around.

## [v2.7.1](https://github.com/epwalsh/obsidian.nvim/releases/tag/v2.7.1) - 2024-01-23

Expand Down Expand Up @@ -797,6 +804,7 @@ Major internal refactoring to bring performance improvements through async execu
- Added `mappings` configuration field.
- Added `open_notes_in` configuration field
- Added `backlinks` options to the config. The default is

```lua
backlinks = {
-- The default height of the backlinks pane.
Expand Down Expand Up @@ -898,7 +906,7 @@ Major internal refactoring to bring performance improvements through async execu
### Added

- Added support for [fzf-lua](https://github.com/ibhagwan/fzf-lua) as one of the possible fallbacks for the `:ObsidianQuickSwitch` command.
- Added `:ObsidianQuickSwitch` to fuzzy-find a note by name in telescope/fzf _a la_ <C-O> in Obsidian.
- Added `:ObsidianQuickSwitch` to fuzzy-find a note by name in telescope/fzf *a la* <C-O> in Obsidian.
- Added support for [fzf-lua](https://github.com/ibhagwan/fzf-lua) as one of the possible fallbacks for the `:ObsidianSearch` command.
- Added `:ObsidianFollowLink` and companion function `util.cursor_on_markdown_link`
- Added `:ObsidianLink` and `:ObsidianLinkNew` commands.
Expand Down
Loading