summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Fix name of a function. HEAD mainfranck cuny2019-02-181-1/+1
| | | | | Was calling a non-existing function when trying to read from the cache.
* Cache list of targets.franck cuny2019-02-181-15/+36
| | | | | | | | | | Getting the list of targets can be extremely slow. Since the targets don't change often, we can cache them. The first call will be slow, however all further call will be extremely fast, since we read from a file. We rely on the modified time of the BUILD file to decide that our cache is out of date.
* Update READMEfranck cuny2019-02-171-9/+14
| | | | | | | | Update the example with better usage of `use-package`. Add new variable for the path to `buildifier`. Add the command for running `buildifier` on the current BUILD file.
* Add command to format BUILD file.franck cuny2019-02-171-0/+45
| | | | | | | | The BUILD file can be formatted using `buildifier'. Add configurations and a command to support this functionality. The rewrite of the BUILD file is silent if the command runs successfully. If there's an error, we display it in a compilation buffer.
* Pants' argument `--config-override` was renamed.franck cuny2019-02-171-1/+1
| | | | The new name for that argument to `pants` is `--pants-config-files`.
* Add a mode for setting the indentation.franck cuny2019-02-161-0/+7
| | | | For BUILD file, the indentation is set to 4.
* Create a group for pants settings.franck cuny2019-02-161-0/+5
|
* Fix the URL to the repository.franck cuny2019-02-162-2/+2
|
* Do not delete the window after successful command.Franck Cuny2017-02-061-1/+1
| | | | | Instead of deleting the window, we want to restore the previous one, so we don't mess with the layout.
* Try to do the right thing for the default-directory.Franck Cuny2016-12-151-12/+19
| | | | | | | | | | | When getting the list of targets, or running an action, the value for the default directory should not be changed. Until now, if you were to open a file, then get the list of targets, then open a new file, you'll be prompted for a new file with a starting directory set by the value of `pants--get-source-tree`. We now set a value for `default-directory` as a local variable when running an action.
* I think this bury the compilation buffer correctly.Franck Cuny2016-12-151-4/+4
| | | | | | | I want to be able to bury the compilation buffer if the compilation was successfully. Previously, it stayed open, but now it seems to close. I'll have to check if the `delete-windows` is doing the right thing, though.
* Use 'ido' as the default completion system.Franck Cuny2016-11-111-1/+1
| | | | | | 'ido' is available in Emacs since version 22.x. By having it as the default, the library can be used right away without having to install an extra dependency.
* Fix the configuration for the Python REPL.Franck Cuny2016-11-111-0/+2
|
* Pass the targets instead of the BUILD file to `pants--complete-read'Franck Cuny2016-11-111-56/+49
| | | | | | | | | | | | The purpose of this function is to present a list of choices to the end user. It should not worry about getting the list of targets, but instead let the caller pass it, as we do for the prompt. We now have a new function to fetch the targets from the BUILD file. The various interactive functions have now a smaller footprint, and most just need to call the `pants--complete-read' function with a prompt, a list of choices, and an action.
* Let each user facing function specify a prompt.Franck Cuny2016-11-111-8/+8
| | | | | | | | | Each command has a different meaning, and the user needs to have a different prompt to know what she is running. The function `pants--build-target-list` is renamed to `pants--complete-read`, which is a better name to represent what the function is actually doing.
* Make the build to work with `ido'.Franck Cuny2016-11-111-17/+24
| | | | | When the completion system was set to `ido', the user was prompted which target to use, but nothing would be executed.
* Remove broken debug message.Franck Cuny2016-11-111-2/+1
|
* Use `user-error` to report error.Franck Cuny2016-11-111-5/+5
| | | | This is the function to use to report errors to the user.
* squash! Update README with a couple of missing settings.Franck Cuny2016-11-111-0/+2
|
* Add a few more sections to the headers (comments).Franck Cuny2016-11-111-0/+10
| | | | | Add the missing entries for Author, URL and a small commentary about what the library is about.
* Update README with a couple of missing settings.Franck Cuny2016-11-111-1/+5
|
* Remove doc header for ivy.Franck Cuny2016-11-111-2/+0
|
* Use the configured completion system.Franck Cuny2016-11-111-2/+17
| | | | | | A user can specify which completion system he wants to use. If the system is installed, we use it, otherwise we return an error to the user, asking her to install it.
* Add a new `defcustom` to support various completion systems.Franck Cuny2016-11-111-1/+10
| | | | We want to be able to support other systems, like `ivy` `helm` or `ido`.
* Don't require 'ivy'. We will support multiple completion systems.Franck Cuny2016-11-111-1/+0
|
* Rename `pants--ifmt-action` to `pants--fmt-action`.Franck Cuny2016-11-111-1/+1
|
* Add `:group' and `:type' to all the `defcustom`.Franck Cuny2016-11-111-7/+21
|
* Add a function `pants-run-fmt` to autoformat Python code.Franck Cuny2016-10-311-0/+14
| | | | | This function runs the 'fmt' command to autoformat the source files. This only works for Python.
* Use 'ivy' instead of 'helm'.Franck Cuny2016-10-311-9/+4
| | | | | | ivy[1] is lighter than helm and has a nicer API. [1] http://oremacs.com/swiper/
* Converted README from markdown to org-mode.Franck Cuny2016-08-042-61/+61
|
* Rename 'helm' buffer and change the prompt.Franck Cuny2016-08-031-2/+4
|
* Add a new option: `pants-extra-args'.Franck Cuny2016-08-032-5/+11
| | | | | | | This option is set to "" by default. It can be used to specify any extra option that will be used with every call to pants (for example: -q). Closes #4.
* Silent warnings in pants.Franck Cuny2016-06-301-1/+1
| | | | | When listing the options, pass the `-q' flag to pants to silent any warnings.
* Simple front-end to the `pants' command.Franck Cuny2016-03-102-1/+212
| | | | | This is the first working version of the front-end to the `pants` command.
* Add README.md, LICENSE.txtFranck Cuny2016-03-102-0/+8
|
* initial commitFranck Cuny2016-03-100-0/+0