aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2014-12-31[Fix #593] Only initialize cache when use Projectile commandsTu Do
- projectile.el: Initialize cache when a user opens a file can take a long time if a project is large. Projectile should not interfere with normal Emacs operations. Cache should only be initialized when a user uses Projectile commands that requires the cache. A file should not be added to cache unless the cache is initialized, to avoid corrupting the cache with only a few files inside. A message is displayed when Projectile starts caching process to notify the user that Emacs is not hanged or crashed. This message is displayed on all commands that invoke caching, not just for adding file. - test/projectile-test.el: Adapt test case projectile-test-cache-current-file with the new change.
2014-11-23Merge known-project lists from multiple processesThomas Frössman
2014-11-12[Bug fix] When cache is empty, do not add fileTu Do
Because adding a file will make the cache non-empty with that only file. The next time a command like `projectile-find-file` is invoked, only that single file is displayed. When the cache is empty, do not add file but retrieves all project files first. Also add a test case for testing projectile-cache-current-file function. The test case contains two tests: - One for testing when cache is initially empty. When projectile-cache-current-file is called, cache is expected to contain every project file. The message "Empty cache. Projectile is initializing cache" will be printed out. - One for testing when cache exists. In this case, it should return full cache.
2014-11-04Update find matching test funcs.kayhide
When candidates are more than 1, look up to the dirnames and try to find best matched file. In this way, we can take advantage of dirname based namespace rules. If the best matched file is not clear, it behaves like it did.
2014-10-11Better caching of projectile-project-rootPhilippe Vaucher
2014-10-09Cache the value of `projectile-project-root`Philippe Vaucher
Fixes #448
2014-08-30Add a test case for projectile-get-other-filesTu, Do
Add a test case to demonstrate the usage of projectile-find-other-files commands and is used for regression testing.
2014-08-11[Fix #406] Add the ability to ignore buffers by nameBozhidar Batsov
2014-08-09Add a test for projectile-switch-project with no known projectsBozhidar Batsov
2014-08-08Add a test for projectile-clear-known-projectsBozhidar Batsov
2014-08-08Fix noflet bindings indentationBozhidar Batsov
2014-08-08Simplify test initBozhidar Batsov
2014-08-08Fix a broken testBozhidar Batsov
2014-08-08Fix a couple of failing testsBozhidar Batsov
2014-05-10Merge pull request #335 from dougm/grep-default-filesBozhidar Batsov
Default files for projectile-grep with prefix arg
2014-05-10Fix #149 Adding trailing / to user provided dataŁukasz Klich
2014-05-09Default files for projectile-grep with prefix argDoug MacEachern
2014-04-12Add file existence cache.Thomas Frössman
2014-04-11Rename tests that don't follow `projectile-test-*` conventionPhilippe Vaucher
2014-04-11Always return absolute path from `projectile-project-root`Philippe Vaucher
Fixes #305
2014-04-10Improve project root identification customization.Thomas Frössman
2014-03-26Merge pull request #290 from dgtized/cache-invalidation-on-dirconfigBozhidar Batsov
Invalidate project cache if .projectile is modified
2014-03-26Add projectile-cleanup-known-projectsPhilippe Vaucher
Go through the list of known projects and remove those which directory doesn't exist anymore.
2014-03-21Test projectile-maybe-invalidate-cache + changelogCharles Comstock
2014-03-02Really fix the buildBozhidar Batsov
2014-01-29Fix failing testBozhidar Batsov
2014-01-27Fix failing testBozhidar Batsov
2013-12-05Make find-file-hooks buffer localBozhidar Batsov
This could be problematic in certain edge cases (like visiting files in the project in which projectile-mode is not enabled), but is saner and cleaner.
2013-11-29Remove unwanted trailing slash for ctags exclude items.Kostafey
2013-11-28Improve calculation of ignored files/dirsBozhidar Batsov
2013-11-12Fix testsBozhidar Batsov
2013-10-13Fix broken testBozhidar Batsov
2013-09-25Remove current project from list of candidates in projectile-switch-projectBozhidar Batsov
2013-09-25Use noflet for testsBozhidar Batsov
2013-08-15Minor cleanupBozhidar Batsov
2013-07-23cl-flet is not actually a 1:1 substitute for fletBozhidar Batsov
2013-07-23Stop using cl completelyBozhidar Batsov
2013-07-08Setting up find-file-hook only within projectile-global-mode. Fixes ↵Malyshev Artem
bbatsov/projectile#129 issue.
2013-06-29Fixing test expectation. The cd function was being invoked for native indexingHabibullah Pagarkar
2013-06-11Refactor a bit projectile-project-filesBozhidar Batsov
The name of the function was confusing since it was not actually computing the project files for a while now, so it got renamed to `projectile-dir-files`. A couple of helper functions were also extracted from it.
2013-05-27Fix incorrect method of making files relative.Andrew Hyatt
This broke the multiple subdirectory functionality, since the subdir paths would always be incorrect.
2013-05-19Drop an obsolete testBozhidar Batsov
2013-05-19Remove obsolete testBozhidar Batsov
2013-04-25Fix #95 - handle properly missing project rootBozhidar Batsov
2013-04-24Drop project files hashifyingBozhidar Batsov
Hashifying had serious performance implications and added next to no value. Now Projectile relies on relative project file names and performs much better.
2013-04-22Fix testsBozhidar Batsov
2013-04-10Support projects only for subdirs of the project root.Andrew Hyatt
For large codebases, path exclusion is unworkable (too many paths to exclude). It's better to only include the directories you want to include. This change accomplishes that, by changing the .projectile file so that entries prefixed with + are subdirectory includes, - are subdirectory and file pattern excludes, and no prefix are also subdirectory and file pattern excludes, to preserve backwards compatibility.
2013-02-28Adds known-projects systemJoel McCracken
Known projects makes it easy to return to projects that you have previously done work on. Projects are saved whenever the system already does caching. The main user-facing component is the `projectile-switch-project` command, bound to 's' on the projectile mode map, which makes it easy to switch to the new project.
2013-02-13Merge pull request #65 from Wilfred/masterBozhidar Batsov
adding a (customizable) option to use relative paths with projectile-find-file
2013-02-13adding a unit test for projectile-hashify-with-uniquifyWilfred Hughes