Skip to content

Commit

Permalink
Remove write on save (#32)
Browse files Browse the repository at this point in the history
* Remove write on save

* Update CHANGELOG
  • Loading branch information
vihu authored Oct 12, 2022
1 parent 5254426 commit d4069f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed bug with creating a new note with `nvim-cmp` completion where full settings
weren't taken into account.
- Fixed a bug with `:ObsidianBacklinks` where the paths were incorrect.
- Removed save on write for `:ObsidianNew` and `:ObsidianToday` ([#32](https://github.com/epwalsh/obsidian.nvim/pull/32)).

## [v1.3.0](https://github.com/epwalsh/obsidian.nvim/releases/tag/v1.3.0) - 2022-09-23

Expand Down
3 changes: 0 additions & 3 deletions lua/obsidian/command.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ end
---@param _ table
command.today = function(client, _)
local note = client:today()
pcall(vim.api.nvim_command, "w")
vim.api.nvim_command("e " .. tostring(note.path))
end

Expand All @@ -66,8 +65,6 @@ command.new = function(client, data)
else
note = client:new_note()
end

pcall(vim.api.nvim_command, "w")
vim.api.nvim_command("e " .. tostring(note.path))
end

Expand Down

0 comments on commit d4069f5

Please sign in to comment.