Commit Graph

61 Commits (c5acec2c02206af59a32a3946de0310ece83639c)

Author SHA1 Message Date
Jorge Bucaran f2443ab8ac Use fisher_search_format by default. 9 years ago
Jorge Bucaran e28a53fcf3 Update fisher_update_interval. 9 years ago
Jorge Bucaran 0ae4c97326 Power up search Close #115,#128
* Search now has a color display mode enabled by default when listing
  records for human consumption, but continues to produce easy to parse
  output when selecting specific fields.

* The following example queries:

  * fisher search --name
  * fisher search --url
  * fisher search --name --url
  * fisher search --tag=prompt --name

  and so forth continue to display easy to parse output.

* The following example queries:

  * fisher search
  * fisher search --name=fishtape
  * fisher search --tag=prompt
  * fisher search --author=joe

  display in color by default and support multiple formats using the
  --format option described below. The colors used are selected from
  $fish_color_* variables for best results.

* To disable color output, use --no-color. To customize the display
  format use any of the following keywords:

  * --format=*oneline* (default)
  * --format=*short*
  * --format=*verbose*
  * --format=*longline*
  * --format=*raw*

* Search now shows unique records when listing --authors only. #128
9 years ago
Jorge Bucaran 0960e1130a Pave way for search --format. 9 years ago
Jorge Bucaran fbddca1106 Improve instrumentation, consistent logs. 9 years ago
Jorge Bucaran d6fd6be951 Fork awk only once, simplify. 9 years ago
Jorge Bucaran f6519e9ad4 Redirect standard error to null by default. 9 years ago
Ivan Tham 2a51c37bd8 [#84] Beautify -h (4×' ', 15×opt, desc) 9 years ago
Jorge Bucaran b9a158d4fc Improve __fisher_name name resolution algorithm.
Improve __fisher_name name resolution from paths or URLs
more accurately. Now correctly process names paths such
as fisher-plugin-*, fisher-theme-* and other permutations.
9 years ago
Jorge Bucaran 98f8fc7730 Make __fisher_key_bindings_undo smarter. Close #121.
Until now key_bindings.fish only allowed simple bind <args>
staments and would fail for conditional statements, etc.
9 years ago
Jorge Bucaran d360eb0b99 Update is now true to its word :rage1:
The update mechanism updates master only. If you are working in branch
foo, the branch name is saved and restored later. First attempt a naive
git pull --rebase origin master, and if that fails, abort the rebase,
fetch origin master, reset to head and clean directory.
9 years ago
Jorge Bucaran 81e1ecab28 Do not list info about `--help` option by default. 9 years ago
Jorge Bucaran 8114492584 Do not use `env` to export GIT_ASKPASS. 9 years ago
Jorge Bucaran c8478eb086 Force Git to fail if the user is not authenticated when cloning unexisting repos. 9 years ago
Jorge Bucaran 4a28f0f9c4 Add more instrumentation. 9 years ago
Jorge Bucaran 83a8b12170 Remove debug statements inside __fisher_deps_install to avoid Spin fail. 9 years ago
Jorge Bucaran 4cfa9dffc0 Ignore git stash standard error. 9 years ago
Jorge Bucaran 7ba911c1c6 Add more instrumentation and more polite error message. 9 years ago
Jorge Bucaran 2917ecfead Stash changes and pull rebase to update. Fix #103 9 years ago
Jorge Bucaran 7e79bfce56 Remove debug statements inside __fisher_index_update to avoid Spin fail. 9 years ago
Jorge Bucaran 1085e1eb20 Add instrumentation using fishery/debug. 9 years ago
Jorge Bucaran da7104c9cc Use -h instead of --help for consistency w/ other commands. 9 years ago
Jorge Bucaran 7de51e7436 Remove scripts directory in favor functions/ or root/
Remove scripts directory in favor of using the functions/ or root
for sharing scripts. Using a scripts directory does not solve the
main problem of sharing scripts with the same name, so this addition
was deemed of little value. In the future, a more robust way to avoid
name collisions when sharing scripts would be nice to have, but at
the moment having a scripts directory is not solving this problem
but just adding clutter to the configuration.

Closes #105.
9 years ago
Jorge Bucaran 3daabaa207 Update function description. 9 years ago
Jorge Bucaran 3ca66357ce Update function description. 9 years ago
Jorge Bucaran 8693c1c1d7 Add function description. 9 years ago
Jorge Bucaran 8a27d75cf1 Teach __fisher_plugin_disable any uninstall options, e.g, --force. 9 years ago
Jorge Bucaran fbf973e9e4 Teach uninstall handler about uninstall options.
+ Now __fisher_plugin_uninstall_handler is aware of a third argument,
`option` that can be used to indicate the event handler or uninstall
file abot any options available in `fisher uninstall`, namely, --force.

+ In addition, the uninstaller mechanism no longer receives the name of
the plugin, as this information is usually already available to plugins
anyway.

+ Finally, a path to the parent directory where the uninstall.fish file
is located is given instead of the full path to the file. Again, the
plugin usually knows the name of the file, `uninstall.fish`.
9 years ago
Jorge Bucaran 81045ae342 Add new __fisher_help_* functions.
Split help command functionality into individual functions
for cosistent with the way other commands are structured,
and improve tab completion times by skipping the overhead
of calling fisher_help directly.
9 years ago
Jorge Bucaran 2f523f2a5d Remove git -C to improve support in exotic systems. 9 years ago
Jorge Bucaran 19e5f79eed Fix bug introduced in 83b84b causing make to not get called. 9 years ago
Jorge Bucaran 83b84b7494 Do not fail if Makefile is missing or empty w/ support for fish 2.1.2 9 years ago
Jorge Bucaran 68beef51e9 One more push before 0.8.0, fixed bugs, paved the way for DEBUG mode.
* Add Mizuki to THANKS for help with Japanese translation of the QuickStart Guide.
* fisher --list should return 1 (fail) if no plugins are installed. Closes #101.
* More consistent style 'Usage' instead of 'usage'.
* Silence index check in case $fisher_cache/.index does not exist.
* Add more descriptive message if plugin is not found.
* Silence search failure in case $fisher_cache/.index does not exist.
9 years ago
Jorge Bucaran 692bb22db6 Ahoy! We are getting close to 0.8.0
* Move AUTHORS -> THANKS and remove automatic generation.

THANKS is more sensible than AUTHORS. CREDITS was second best.
Also, after perusing similar files in other projects I noticed
some entries lacking a valid email address and decided fow now
this file should be curated manually to make sure each entry
contains a useful link. This allows users who have contributed
to the project ways other than committing code to be added to
the list as well.

* Rename wait -> spin.

* Remove extra padding in links. (Cosmetic)

* Update to reflect API refactorings.

* Fix bug causing brackets to show up in description.

* Implement using spin function.

* __fisher_gist_to_name uses curl to query the GitHub API which will
return a JSON stream even if the Gist could not be found. So, it's
not possible to determine whether we failed or not using our spin
function and actually need to check the returned string to see if
it contains a valid name or not.

* Let git pull write errors to stderr.

* Use new internal __fisher_spin.

* Extract spin to independent / external module and tweak Makefile
to better integrate with new install process.
9 years ago
Jorge Bucaran 4cfd037cc0 Ahoy! an early v0.7.0 is here!
+ Add  the ability  to install plugins  from Gists.  You can
distribute a very simple,  one-single function plugin in the
form  of a  Gist. Your  users  can install  it using  fisher
install  url and  Fisherman will  query the  Gist using  the
GitHub API to get a list of  the Gist files and use the name
of the  first identified *.fish  file to name the  plugin in
your system.  Since there is no  formal way to name  a Gist,
and you may  prefer to keep the "description"  field for the
actual description  and not a name,  Fisherman supports only
one fish file per Gist. Closes #75.

+ Use command(1) when calling non-builtins. Thanks @daenney.
Closes #79.

+  Add  __fisher_plugin_can_enable  to detect  installing  a
prompt that is not the current one. Closes #78.

+  Remove  the ability  to  install  a  plugin in  a  parent
directory using ..  or ../ or even worse, ../../  as well as
other combinations  that navigate  to a parent  directory. I
find  the use  case odd  at  best, and  more dangerous  that
useful.  If you  want  to  install a  local  plugin use  the
full  path  or a  relative  path,  always top  down.  fisher
install  . or  fisher  install my/plugin  or fisher  install
/Users/$USER/path/to/plugin. Closes #81.
9 years ago
Daniele Sluijters 342bacf5be Use command when calling non-builtins
By using `command` we ensure that we always end up calling the external
binary and don't get caught by user aliasses, functions or other
magic.

Closes #79
9 years ago
Jorge Bucaran 16ee7f8788 Reset completions after a successful index update. 9 years ago
Jorge Bucaran 01af6b540d Add timeout argument and isolate $fisher_index. 9 years ago
Jorge Bucaran dd76a20379 Remove debugging logs. 9 years ago
Jorge Bucaran ccee195162 Fix: __fisher_plugin_walk was incorrectly traversing completions.
Due to how the completions/*.fish path was traversed
inside __fisher_plugin_walk, the plugin enable/disable
mechanism would fail to copy all completions other than
completions/<plugin>.fish into the config.
9 years ago
Jorge Bucaran 778b5279c5 Improve Install/Update/Uninstall message channels.
Before this commit, both error and success information
was sent to stderr. Now, the total number of plugins
installed / updated / uninstalled is sent to stdout
allowing us to parse this output and implement a
more robust (and simpler) __fisher_deps_install
9 years ago
Jorge Bucaran 5faf3a7812 Favor > for themes over | for symbolic links. 9 years ago
Jorge Bucaran 399e0ba56b Strip plugin list decorators when parsing fishfile 9 years ago
Jorge Bucaran 6247057d09 Add new plugin listing decorator for symbolic links `|'. 9 years ago
Jorge Bucaran 0758a42cb6 Display deps as they install along with parent plugin. 9 years ago
Jorge Bucaran b575a06ee0 Remove 'probably' useless post render. 9 years ago
Jorge Bucaran 26549c2720 Add name argument to __fisher_plugin_source function. 9 years ago
Jorge Bucaran 486b2d6a81 Use __fisher_plugin_source to evaluate file if class is --source. 9 years ago
Jorge Bucaran eb11e378b8 Add new __fisher_plugin_source function.
Third party plugins can override this function to modify the
install mechanism and support alternative install methods.
9 years ago
Jorge Bucaran 37101fb85c Tweak validate regex to correctly handle plugins named bb, gh, gl or omf. 9 years ago