Skip to content

Releases: SidOfc/carbon.nvim

0.20.2

10 May 13:13
44885f9
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.20.1...0.20.2

0.20.1

18 Mar 19:18
b4f20d4
Compare
Choose a tag to compare

What's Changed

  • Fix: deleted and recreated folder staying empty in all views by @SidOfc in #138

Credit to @kaihowl for finding this bug and reporting it via PR #137 👍

Full Changelog: 0.20.0...0.20.1

0.20.0

10 Dec 15:17
9670efb
Compare
Choose a tag to compare

What's Changed

The custom confirm prompt was a bit glitchy in certain scenarios so I decided
to remove it in favor of the builtin prompt.

Carbon now handles hidden files and directories a bit differently. A new action has
been added, called actions.toggle_hidden (:h carbon-setting-actions-toggle-hidden)
which will toggle the visibility of files and directories excluded by exclude
(:h carbon-setting-exclude).

Finally, Carbon gained the ability to open files and directories in a new tab
with a new actions.tabe (:h carbon-setting-actions.tabe) action.

Enjoy! 👋

Full Changelog: 0.19.2...0.20.0

0.19.2

16 Aug 15:07
f0c5994
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.19.1...0.19.2

0.19.1

15 Jun 09:19
aa2b5f4
Compare
Choose a tag to compare

What's Changed

  • Fix: Close Fcarbon when opening files in splits (resolves #128) by @SidOfc in #129

Full Changelog: 0.19.0...0.19.1

0.19.0

22 Apr 14:07
779fed6
Compare
Choose a tag to compare

What's Changed

  • Add: carbon.util.explore_path (:h carbon-util-explore-path)
  • Add: carbon.util.window_neighbors (:h carbon-util-window-neighbors)
  • Add: carbon.util.find_buf_by_name (:h carbon-util-find-buf-by-name)
  • Add: carbon.util.tbl_some (:h carbon-util-tbl-some)
  • Add: carbon.util.clear_extmarks (:h carbon-util-clear-extmarks)
  • Add: carbon.util.add_highlight (:h carbon-util-add-highlight)
  • Add: carbon.entry:highlight_group (:h carbon-entry-highlight-group)
  • Add: constant carbon.constants.directions (:h carbon.constant-directions)
  • Add: setting carbon.settings.open_on_dir (:h carbon-setting-open-on-dir)
  • Add: carbon.health module
  • Rename: setting carbon.settings.always_reveal to carbon.settings.auto_reveal
  • Rename: helptags carbon-constants-* to carbon-constant-*
  • Remove: vim.g.carbon_lazy_init
  • Remove: carbon.initialize
  • Remove: carbon.entry:set_compressible
  • Remove: carbon.entry:is_compressible
  • Remove: carbon.entry:set_open
  • Remove: carbon.entry:is_open
  • Replace: carbon.buffer module with carbon.view module
    • Add: carbon.view.find (:h carbon-view-find)
    • Add: carbon.view.get (:h carbon-view-get)
    • Add: carbon.view.activate (:h carbon-view-activate)
    • Add: carbon.view.current (:h carbon-view-current)
    • Add: carbon.view.execute (:h carbon-view-execute)
    • Add: carbon.view.close_sidebar (:h carbon-view-close-sidebar)
    • Add: carbon.view.close_float (:h carbon-view-close-float)
    • Add: carbon.view.handle_sidebar_or_float (:h carbon-view-handle-sidebar-or-float)
    • Add: carbon.view:get_path_attr (:h carbon-view-get-path-attr)
    • Add: carbon.view:set_path_attr (:h carbon-view-set-path-attr)
    • Add: carbon.view:buffers (:h carbon-view-buffers)
    • Add: carbon.view:buffer (:h carbon-view-buffer)
    • Add: carbon.view:current_lines (:h carbon-view-current-lines)
    • Add: carbon.view:parents (:h carbon-view-parents)
    • Add: carbon.view:switch_to_existing_view (:h carbon-view-switch-to-existing-view)
    • Remove: carbon.buffer.handle
    • Remove: carbon.buffer.launch
    • Remove: carbon.buffer.is_loaded
    • Remove: carbon.buffer.is_hidden
    • Remove: carbon.buffer.clear_namespace
    • Remove: carbon.buffer.clear_extmarks
    • Remove: carbon.buffer.entry_line
    • Replace: existing helptags carbon-buffer-* with carbon-view-*

This release is a BREAKING release. A fair amount of documented APIs has changed
but due to not being at a stable 1.0.0 version yet only the minor version number will be bumped.

Exploring multiple directories

This release aims to fix one major limitation Carbon had which was that Carbon was
only ever able to show a single file tree (the current working directory). This is
no longer the case. Explore commands now support an optional path argument i.e.

:Carbon relative/nested/dir
:Carbon /absolute/dir
:Carbon ../other/folder

The above works for any Carbon explore command such as Carbon, Lcarbon, Rcarbon
and their NetRW aliases (if carbon.settings.keep_netrw is false).

On top of that Carbon gained a new setting :h carbon-setting-explore-on-dir
which is enabled by default and will cause :e [directory] to open a Carbon
buffer for given [directory].

To properly support this feature the existing buffer module no longer sufficed.
Thus it has been replaced entirely by a new view module of which multiple
instances manage their respective root directories. A lot of the functionality
which existed in the buffer module has been moved to view. Some buffer
functions became redundant or have been moved to util.

Set up using different package managers

Carbon used to initialize itself automatically however this led to some
issues depending on which package manager was used since some implementations
deviate from native Vim package behavior. This caused settings set via
the setup function to sometimes be ignored because initialize had
already been called which blocks additional invocations of setup.

As of this release, it is required to call carbon.setup. Carbon
will not attach itself until this function has been called.

Requiring this behavior is not ideal, but should provide a consistent
experience across any environment since everything is managed via a
single setup hook.

Finally, because of this change vim.g.carbon_lazy_init is no longer
supported to skip automatic initialization since users will now be
able to call setup when they want to initialize Carbon.

Full Changelog: v0.18.3...0.19.0

v0.18.3

11 Feb 16:41
56a3a83
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.18.2...v0.18.3

v0.18.2

14 Jan 12:34
ed16e98
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.18.1...v0.18.2

v0.18.1

11 Jan 11:43
17e7ee1
Compare
Choose a tag to compare
v0.18.1 Pre-release
Pre-release

What's Changed

Full Changelog: v0.18.0...v0.18.1

v0.18.0

09 Jan 12:39
7aa6940
Compare
Choose a tag to compare

What's Changed

  • Add: Rcarbon / Rexplore commands to spawn sidebars on the right by @SidOfc in #116

This release introduces :Rcarbon and :Rexplore commands for opening
sidebars on the right. Additionally, there is a :ToggleSidebarCarbon
command which closes any open sidebars or otherwise opens a sidebar
to the side determined by settings.sidebar_position.

Full Changelog: v0.17.3...v0.18.0