Skip to content

Releases: LintaoAmons/cd-project.nvim

v1.0.0

Choose a tag to compare

@LintaoAmons LintaoAmons released this 18 May 00:59

cd-project.nvim v1.0.0 Release Notes

Major Changes

Breaking Change: Mandatory Unique Project ID Field

  • Introduced a mandatory unique id field in the project data structure to ensure accurate identification and deletion of projects, especially when names are duplicated. Existing projects will be automatically updated with an ID, but custom scripts or integrations relying on the previous data structure may need to be updated.

Telescope Picker Enhancements

  • Refactored the Telescope adapter for better modularity and added functionality to delete projects directly from the picker using <c-d>.
  • Added support for opening projects in horizontal and vertical splits using Telescope's built-in keybindings.

Hooks System Improvement

  • Enhanced the hooks system to allow filtering based on the type of directory change command (cd, tabe | tcd, lcd), providing more granular control over hook execution.

Upgrading from v0.12.1

Important: This release includes a breaking change. The project data structure now requires a unique id field. While the plugin will automatically assign IDs to existing projects, any custom scripts or external tools that parse or manipulate the project JSON file may need to be updated to handle this new field. Please review your scripts and update them to use the id field for project identification and deletion operations.

For a complete list of changes, see the CHANGELOG.md.

v0.12.0

Choose a tag to compare

@LintaoAmons LintaoAmons released this 17 May 23:39
8bea3c2

cd-project.nvim v0.12.0 Release Notes

Major Changes

Project Sorting by Last Visited Time

  • Added functionality to sort projects in the Telescope picker by the last visited time (visited_at)
  • The current project is always placed at the bottom of the project list in the picker for easy access and visibility

Upgrading from v0.11.0

No breaking changes in this release. The new sorting by last visited time and positioning of the current project are automatically applied to the Telescope picker. No additional configuration is needed to use these features.

For a complete list of changes, see the CHANGELOG.md.

v0.11.0 Release Notes

Choose a tag to compare

@LintaoAmons LintaoAmons released this 17 May 15:46

cd-project.nvim v0.11.0 Release Notes

Major Changes

Project Position Tracking

  • Added functionality to remember the last position in a project, including the last opened file and cursor position
  • New configuration option remember_project_position to enable/disable this feature (enabled by default)
  • Added user commands for manual control:
    • CdProjectSavePosition: Manually save the current position in the project
    • CdProjectRestorePosition: Manually restore the saved position for the current project
  • Position is automatically saved when leaving a buffer or closing Vim, and restored when switching to a project

Upgrading from v0.10.0

No breaking changes in this release. The new position tracking feature is enabled by default. If you prefer not to use this feature, you can disable it in your configuration:

require("cd-project").setup({
  remember_project_position = false
})

For a complete list of changes, see the CHANGELOG.md.

v0.10.0

Choose a tag to compare

@LintaoAmons LintaoAmons released this 17 May 09:28

cd-project.nvim v0.10.0 Release Notes

Major Changes

Simplified Tab Handling

  • Removed the separate CdProjectTab command and consolidated functionality into the main CdProject command
  • Changed keybinding for opening in new tab from <c-o> to <c-t> for better mnemonic association (t for tab)
  • Improved tab detection and switching logic to prevent duplicate tabs of the same project

Enhanced Project Navigation

Added multiple context options for project navigation:

  • Default: Change directory for all windows (cd)
  • New tab: Open project in a new tab with <c-t> (tabe | tcd)
  • Window-local: Change directory only for current window with <c-e> (lcd)

Configuration Improvements

  • Moved default configuration to a separate file for better organization
  • Set Telescope as the default project picker
  • Improved documentation with type annotations

Code Cleanup

  • Removed redundant cd_project_in_tab function and related code
  • Fixed inconsistent indentation in telescope adapter
  • Streamlined project directory handling logic

Upgrading from v0.9.1

If you were using CdProjectTab command or the <c-o> keybinding in Telescope, update your workflow:

  • Use CdProject and press <c-t> instead of the old CdProjectTab command
  • The functionality remains the same but is now more consistent and intuitive

For a complete list of changes, see the CHANGELOG.md.

v0.9.1

Choose a tag to compare

@LintaoAmons LintaoAmons released this 12 Mar 14:34
c7769e8

What's Changed

New Contributors

Full Changelog: v0.9.0...v0.9.1

v0.9.0

Choose a tag to compare

@LintaoAmons LintaoAmons released this 29 Oct 13:18

What's Changed

  • Properly call the hook callback in cd_project_in_tab by @hungyiloo in #32
  • telescope shortcuts

New Contributors

Full Changelog: v0.8.0...v0.9.0

v0.8.0 format JSON with jq

Choose a tag to compare

@LintaoAmons LintaoAmons released this 19 Jun 14:12
d18efcb

What's Changed

New Contributors

Full Changelog: v0.7.0...v0.8.0

v0.7.0 new command CdProjectTab

Choose a tag to compare

@LintaoAmons LintaoAmons released this 10 Jun 15:38
df25281

What's Changed

New Contributors

Full Changelog: v0.6.1...v0.7.0

v0.6.1

Choose a tag to compare

@LintaoAmons LintaoAmons released this 17 May 13:38
4353197

Fix #27: can't toggle auto register project function

v0.6.0

Choose a tag to compare

@LintaoAmons LintaoAmons released this 15 May 10:18
  • Create CdProjectDelete command: you don't need to delete the path you don't want by manually modify the json file anymore
  • Add a auto add function: When you use Nvim to open a directory, this directory will be automatically added into your project collection, you can turn it off from config.