diff --git a/CHANGELOG.md b/CHANGELOG.md index b9ff2b00c..7365a3ae0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,22 +2,24 @@ ## master (unreleased) +## 2.0.0 (2019-01-01) + ### New features * [#972](https://github.com/bbatsov/projectile/issues/972): Add toggle for project read only mode: `projectile-toggle-project-read-only`. * New interactive command `projectile-run-ielm`. * Add [crystal](https://crystal-lang.org) project type. * [#850](https://github.com/bbatsov/projectile/issues/850): Make it possible to prompt for a project, when you're not in a project, instead of raising an error. (see `projectile-require-project-root`). -* **(Breaking)** [#1147](https://github.com/bbatsov/projectile/issues/1147): Remove any post-processing from the `alien` indexing method. -* **(Breaking)** [#1147](https://github.com/bbatsov/projectile/issues/1147): Introduce a new indexing method called `hybrid` which behaves like the old `alien`. +* [#1147](https://github.com/bbatsov/projectile/issues/1147): Introduce a new indexing method called `hybrid` which behaves like the old `alien`. * [#896](https://github.com/bbatsov/projectile/issues/896) Add commands `projectile-previous-project-buffer ` and -`projectile-next-project-buffer ` to switch to other buffer in the project. +`projectile-next-project-buffer` to switch to other buffer in the project. * [#1016](https://github.com/bbatsov/projectile/issues/1016): Add a new defcustom (`projectile-current-project-on-switch`) controlling what to do with the current project on switch. * [#1233](https://github.com/bbatsov/projectile/issues/1233): Add a new defcustom (`projectile-kill-buffers-filter`) controlling which buffers are killed by `projectile-kill-buffers`. -* [#1279](https://github.com/bbatsov/projectile/issues/1279) Add command `projectile-repeat-last-command` to re-execute the last external command in a project. +* [#1279](https://github.com/bbatsov/projectile/issues/1279): Add command `projectile-repeat-last-command` to re-execute the last external command in a project. ### Changes +* **(Breaking)** [#1147](https://github.com/bbatsov/projectile/issues/1147): Remove any post-processing from the `alien` indexing method. * Specify project path for `projectile-regenerate-tags`. * Handle files with special characters in `projectile-get-other-files`. * [#1260](https://github.com/bbatsov/projectile/pull/1260): ignored-*-p: Now they match against regular expressions. @@ -31,6 +33,7 @@ * Make the mode line configurable via `projectile-dynamic-mode-line` and `projectile-mode-line-function`. * [#1205](https://github.com/bbatsov/projectile/issues/1205): Check that project directory exists when switching projects. * Move Projectile's menu out of the "Tools" menu. +* [API] **(Breaking)** Stop raising errors from `projectile-projectile-root` if not invoked within a project. Now it will simply return nil. Use it together with `projectile-ensure-project` to emulate the old behavior. ### Bugs fixed diff --git a/doc/configuration.md b/doc/configuration.md index 15136403a..2b67f9547 100644 --- a/doc/configuration.md +++ b/doc/configuration.md @@ -24,7 +24,7 @@ provide. !!! Info By default the `alien` method is used on all operating systems except Windows. - Prior to Projectile 1.1 `hybrid` used to be the default (but to make things + Prior to Projectile 2.0 `hybrid` used to be the default (but to make things confusing `hybrid` used to be known as `alien` back then). To force the diff --git a/doc/faq.md b/doc/faq.md index b1f6ab517..0a20eb045 100644 --- a/doc/faq.md +++ b/doc/faq.md @@ -17,7 +17,7 @@ mostly because it felt practical and because pressing `C-c C-p` is not super convenient for many people. I've come to regret this decision, though, and it will likely be reverted down the road. -**Update** This was changed in Projectile 1.1. +**Update** This was changed in Projectile 2.0. ## Do you need some help cleanup up all those tickets that have piled up? diff --git a/doc/installation.md b/doc/installation.md index 7b1d08d23..9fd38e0ab 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -71,8 +71,8 @@ Finally add this to your Emacs config: Those keymap prefixes are just a suggestion. Feel free to put there whatever works best for you. - `C-c p` used to be the default prefix up to version 1.1, but - starting with version 1.1 you have to select prefix key(s) + `C-c p` used to be the default prefix up to version 2.0, but + starting with version 2.0 you have to select prefix key(s) yourself. ### Installation via use-package diff --git a/projectile.el b/projectile.el index 642aa65a1..7cf6f9ad9 100644 --- a/projectile.el +++ b/projectile.el @@ -5,7 +5,7 @@ ;; Author: Bozhidar Batsov ;; URL: https://github.com/bbatsov/projectile ;; Keywords: project, convenience -;; Version: 1.1.0-snapshot +;; Version: 2.0.0 ;; Package-Requires: ((emacs "25.1") (pkg-info "0.4")) ;; This file is NOT part of GNU Emacs. @@ -199,7 +199,7 @@ When nil Projectile will consider the current directory the project root." :group 'projectile :type 'string) -(make-obsolete-variable 'projectile-keymap-prefix "Use (define-key projectile-mode-map (kbd ...) 'projectile-command-map) instead." "1.1.0") +(make-obsolete-variable 'projectile-keymap-prefix "Use (define-key projectile-mode-map (kbd ...) 'projectile-command-map) instead." "2.0.0") (defcustom projectile-cache-file (expand-file-name "projectile.cache" user-emacs-directory) @@ -468,7 +468,7 @@ Only file buffers are affected by this, as the update happens via See also `projectile-mode-line-function' and `projectile-update-mode-line'." :group 'projectile :type 'boolean - :package-version '(projectile . "1.1.0")) + :package-version '(projectile . "2.0.0")) (defcustom projectile-mode-line-function 'projectile-default-mode-line "The function to use to generate project-specific mode-line. @@ -476,7 +476,7 @@ The default function adds the project name and type to the mode-line. See also `projectile-update-mode-line'." :group 'projectile :type 'function - :package-version '(projectile . "1.1.0")) + :package-version '(projectile . "2.0.0")) ;;; Idle Timer @@ -1184,8 +1184,8 @@ function is executing." (projectile-get-sub-projects-files directory vcs))) (t (projectile-files-via-ext-command directory (projectile-get-ext-command vcs)))))) -(define-obsolete-function-alias 'projectile-dir-files-external 'projectile-dir-files-alien "1.1") -(define-obsolete-function-alias 'projectile-get-repo-files 'projectile-dir-files-alien "1.1") +(define-obsolete-function-alias 'projectile-dir-files-external 'projectile-dir-files-alien "2.0.0") +(define-obsolete-function-alias 'projectile-get-repo-files 'projectile-dir-files-alien "2.0.0") (defun projectile-get-ext-command (vcs) "Determine which external command to invoke based on the project's VCS.