Commit graph

66 commits

Author SHA1 Message Date
Jorge Bucaran 986a9cad56
Do no update total while installing/updating, etc. Closes #139. 2016-03-01 23:59:43 +09:00
Jorge Bucaran cf9d9469fe
Install functions if index check fails. 2016-03-01 18:27:27 +09:00
Jorge Bucaran dbd04352fa
Remove debug from __fisher_deps_install. 2016-03-01 18:19:00 +09:00
Jorge Bucaran 8384bf3aa7
Ahoy!! Fisherman 1.0.0
* Deprecate fisher --list in favor of a new command
  fisher list. The behavior is roughly the same. See
  fisher help list for usage. tl;dr: Use list to query
  the local system / cache and search to query the index.

* Teach fisher_plugin_walk about fish_postexec,
  fish_command_not_found and fish_preexec event emitters
  and erase them during uninstall if they were defined in
  a snippet.

* Fisherman now recognizes the following aliases by default:
  i for install, u for update, l for list, s for search and
  h for help.

* Rewrite documentation to be simpler and more consistent.

* Fisherman can install "functions" now. If you have created
  a function interactively, you can run fisher install name
  of the function and a directory will be created in
  $PWD/name of the function and installed as usual.

* Fisherman now detects if users have modified their fish
  prompt using fish_config and if so, uninstalls $fisher_prompt.

* Search results now truncate plugin descriptions based in
 the width of the terminal screen.

* Install/Update/Uninstall CLI was retouched.

Looking behind and Ahead
========================

On Jan, 1st, Fisherman 0.1.0 departed from the bay of
"my hard drive" and today 1.0.0 has finally shipped.

Things are still a little rough and knotty, what did
you think? But 1.0.0 means all the basic things are
here.

Internally, we may still push some large changes, more
robust tests; at ~300 there are still areas a bit dry.

On the outside, Fisherman will change little, I hope.
That's a feature. If you want a more colorful CLI,
concurrent updates, or another bit here and there,
we may work something out.

This release means more time to focus on the plugin
ecosystem, but the adventures are far from over.
2016-03-01 18:02:38 +09:00
Jorge Bucaran ebec1eaa01
Fisherman 1.0 RC
* Deprecate fisher --list in favor of a new command fisher list.
  The behavior is roughly the same. See fisher help list for
  usage. tl;dr: Use list to query the local system / cache and
  search to query the index.

* Teach fisher_plugin_walk about fish_postexec,
  fish_command_not_found and fish_preexec event emitters and
  erase them during uninstall if they were defined in a snippet.

* Fisherman now recognizes the following aliases by default:
  i for install, u for update, l for list, s for search and h
  for help.

* Large documentation rewrite. Better, simpler, more concise
  and more consistent.

* Fisherman now detects if users have modified their fish
  prompt using fish_config and if so, uninstalls $fisher_prompt.
2016-02-29 23:13:29 +09:00
Jorge Bucaran 6d85de2020
Use fisher_search_format by default. 2016-02-26 17:07:42 +09:00
Jorge Bucaran df07715045
Update fisher_update_interval. 2016-02-26 17:07:16 +09:00
Jorge Bucaran 916ea28c1e
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
2016-02-26 16:59:47 +09:00
Jorge Bucaran 80a1340ca7
Pave way for search --format. 2016-02-26 00:03:19 +09:00
Jorge Bucaran 89e9d45e44
Improve instrumentation, consistent logs. 2016-02-26 00:03:19 +09:00
Jorge Bucaran 7325acd166
Fork awk only once, simplify. 2016-02-26 00:03:19 +09:00
Jorge Bucaran bb3b2bfa79
Redirect standard error to null by default. 2016-02-26 00:03:19 +09:00
Ivan Tham 533dc85374 [#84] Beautify -h (4×' ', 15×opt, desc) 2016-02-25 21:40:12 +08:00
Jorge Bucaran 7e4b800b65
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.
2016-02-25 14:16:39 +09:00
Jorge Bucaran 3308240929
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.
2016-02-25 10:08:48 +09:00
Jorge Bucaran e1e49ceaff
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.
2016-02-24 23:59:55 +09:00
Jorge Bucaran 4878de9eb1
Do not list info about --help option by default. 2016-02-24 15:30:56 +09:00
Jorge Bucaran a99d89bde4
Do not use env to export GIT_ASKPASS. 2016-02-24 10:20:48 +09:00
Jorge Bucaran 849c070d74
Force Git to fail if the user is not authenticated when cloning unexisting repos. 2016-02-24 09:18:45 +09:00
Jorge Bucaran a055b4c879
Add more instrumentation. 2016-02-24 09:18:00 +09:00
Jorge Bucaran c11774c525
Remove debug statements inside __fisher_deps_install to avoid Spin fail. 2016-02-24 08:46:14 +09:00
Jorge Bucaran aae66ae0d8
Ignore git stash standard error. 2016-02-24 08:45:53 +09:00
Jorge Bucaran 9c00afd73a
Add more instrumentation and more polite error message. 2016-02-23 14:50:20 +09:00
Jorge Bucaran 5271b14975
Stash changes and pull rebase to update. Fix #103 2016-02-23 14:47:28 +09:00
Jorge Bucaran 0bc883f80c
Remove debug statements inside __fisher_index_update to avoid Spin fail. 2016-02-23 14:45:59 +09:00
Jorge Bucaran 89c01dc235
Add instrumentation using fishery/debug. 2016-02-20 09:57:51 +09:00
Jorge Bucaran 95412aeab7
Use -h instead of --help for consistency w/ other commands. 2016-02-18 16:59:26 +09:00
Jorge Bucaran a25fc7353e
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.
2016-02-18 06:42:12 +09:00
Jorge Bucaran d5601ab4c7
Update function description. 2016-02-18 06:41:59 +09:00
Jorge Bucaran bca78c3903
Update function description. 2016-02-18 06:41:51 +09:00
Jorge Bucaran 10ffcf41cc
Add function description. 2016-02-18 06:41:29 +09:00
Jorge Bucaran cbf73e82b0
Teach __fisher_plugin_disable any uninstall options, e.g, --force. 2016-02-17 13:58:13 +09:00
Jorge Bucaran 415487dfc9
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`.
2016-02-17 13:53:24 +09:00
Jorge Bucaran 285fa3ac76
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.
2016-02-16 17:43:13 +09:00
Jorge Bucaran a92a749e82
Remove git -C to improve support in exotic systems. 2016-02-16 14:36:29 +09:00
Jorge Bucaran 97b30dc97f
Fix bug introduced in 83b84b causing make to not get called. 2016-02-16 12:06:25 +09:00
Jorge Bucaran 1856524e74
Do not fail if Makefile is missing or empty w/ support for fish 2.1.2 2016-02-16 10:43:11 +09:00
Jorge Bucaran e0ed629777
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.
2016-02-15 21:24:22 +09:00
Jorge Bucaran 4b15cf374f
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.
2016-02-14 13:17:47 +09:00
Jorge Bucaran 5dc1eea953
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.
2016-02-11 09:40:03 +09:00
Daniele Sluijters a11bbee41d 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
2016-02-07 18:48:42 +01:00
Jorge Bucaran 6f28e224d4
Reset completions after a successful index update. 2016-02-07 20:11:09 +09:00
Jorge Bucaran 892a8771fa
Add timeout argument and isolate $fisher_index. 2016-02-07 20:08:08 +09:00
Jorge Bucaran 9f23f4318d
Remove debugging logs. 2016-02-05 20:41:28 +09:00
Jorge Bucaran 332f34564a
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.
2016-02-05 14:51:52 +09:00
Jorge Bucaran adda0f84fd
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
2016-02-04 14:02:01 +09:00
Jorge Bucaran 8072c65164
Favor > for themes over | for symbolic links. 2016-02-04 14:01:41 +09:00
Jorge Bucaran 9c22f43f51
Strip plugin list decorators when parsing fishfile 2016-02-04 13:56:06 +09:00
Jorge Bucaran 952ac794b1
Add new plugin listing decorator for symbolic links `|'. 2016-02-04 13:53:58 +09:00
Jorge Bucaran 85bbcccd27
Display deps as they install along with parent plugin. 2016-02-04 13:52:43 +09:00