Commit Graph

163 Commits (7c624c13699f1dfda176d556c34e00ab841a32a1)

Author SHA1 Message Date
Jorge Bucaran 9ad788a6c0
Load completions after functions in __fisher_plugin_enable. #fin/issues/28 8 years ago
Jorge Bucaran 8f9898dc25
More compact message report. 8 years ago
Jorge Bucaran 4b27eaa82f
Use fish_color_* colors instead of harcoding red, green, etc. 8 years ago
Jorge Bucaran b9001532a7
2.6.14 8 years ago
Jorge Bucaran ecf0aebe13
Load conf.d first and source bindings after install. #272 8 years ago
Jorge Bucaran 299c1b985b
2.6.13 8 years ago
Jorge Bucaran fdccc77b71
Bugfix: Use fisher_file instead of fisher_bundle. 8 years ago
Jorge Bucaran 3ae1b1897e
2.6.12 8 years ago
Jorge Bucaran 0e46afd6fc
Add fish version check, exit if too low. Thanks @msikma. 8 years ago
Jorge Bucaran a53f417edf
Do not obliterate, rather create backups of existing functions/*.fish files during install. Close #268. 8 years ago
Jorge Bucaran 2ef4bbd22f
Improve argv handling. Close #266, #265. 8 years ago
Jorge Bucaran fff7e78c01
2.6.10 8 years ago
Jorge Bucaran 0a371507fe
Do not add local plugins to fishfile. 8 years ago
Jorge Bucaran 04b4f8c134
Add remove alias to uninstall, but do not generate completions for it. 8 years ago
Jorge Bucaran 5ec372d6fb
2.6.9 8 years ago
Jorge Bucaran 47f90db643
Do not show usage help inconsistently. 8 years ago
Jorge Bucaran bb848e7920
Handle key bindings corretly. Fix #263. 8 years ago
Jorge Bucaran 52c5a7148c
Progress report improvements.
* Display fetch message for plugins retrieve from the cache.
* Display what plugins are being removed.
8 years ago
Jorge Bucaran a11213bd38
Increase index update interval a bit. 8 years ago
Jorge Bucaran 00dd017af8
2.6.7* 8 years ago
Jorge Bucaran 516a03afd5
2.6.7 8 years ago
Jorge Bucaran e41f725fb8
Add special --complete flag to generate fisher completions. 8 years ago
Jorge Bucaran b0b70ab4a0
2.6.6 8 years ago
Jorge Bucaran fa906cbada
Persist completions across sessions. Close #262. 8 years ago
Jorge Bucaran e4bf7a69a6
2.6.5 8 years ago
Jorge Bucaran 69de02afb9
Add `fisher_user_key_bindings` to list of recognized binding functions. 8 years ago
Jorge Bucaran 369e6403f2
Use error log type for skipped plugins. 8 years ago
Jorge Bucaran 06d13b8a8c
2.6.4 8 years ago
Jorge Bucaran 41a0b0e032
Fix broken index update with plugins missing an info field. 8 years ago
Jorge Bucaran 980498603d
2.6.3 8 years ago
Jorge Bucaran 1f6218bccc
Add 10 second timeout to index updates. 8 years ago
Jorge Bucaran a39ff774e8
Improve tab completions, show 3rd parties, real paths, etc.
* Create completions for installed, third-party plugins. Close #260.
* Show real path in completion descriptions of local plugins. Close #261.
8 years ago
Jorge Bucaran 81dec12507
Bump to 2.6.2 📦 8 years ago
Jorge Bucaran 65e50706ae
Auto-complete local directories installed. 8 years ago
Jorge Bucaran cbf2d57f86
2.6.1 🚢 8 years ago
Jorge Bucaran d041f9ac99
Fix broken isatty stdout in fisher ls. 8 years ago
Jorge Bucaran 4ee6995c65
Bump to 2.6.0 📦 8 years ago
Jorge Bucaran acf32dfe22
Auto-complete only fisher install with ls-remote output if available. Close #256. 8 years ago
Jorge Bucaran 1a5f2608db
Check if git, curl, etc., are installed before using them and inform the user. Close #253. 8 years ago
Jorge Bucaran 4ac3e19193
Drop blacklists for an org free of non-plugins. Closes #255. 8 years ago
Jorge Bucaran a125d8158c
Auto-complete fisher [install] with ls-remote output if available. Close #256. 8 years ago
Jorge Bucaran ed7e0c08e8
Do not hide installed plugins in fisher ls-remote. Close #250. 8 years ago
Jorge Bucaran bc76864e17
No-column print in ls and ls-remote if piping isatty stdout. Close #249. 8 years ago
Jorge Bucaran 89e5616b02
Grammar. 8 years ago
detailyang 08ea67ddc3 Use command date +%s%3N in non OS X systems to get the epoch in ms. #252
* Define __fisher_get_epoch_in_ms on fisher.fish load and select
  command date if the user for systems other than OS X.
8 years ago
Jorge Bucaran 11d4b278c5
Bump to 2.5.0 📦 8 years ago
Jorge Bucaran eb33459e4c
Use -R instead of -r with cp. 8 years ago
Jorge Bucaran 4a0582cb40
Increment dependency ref count if passed in the cli as argv.
To install `parent` with `child`, the user only needs to
enter `fisher parent`, but given the following scenario:

    fisher parent child

and before this commit, fisherman would fail to increase the
ref count of children because the function that calculates
missing dependencies would see that `child` is already in
the argv list.

The above, even if rare, is a valid use case, and `child`
should end up with a ref count of 2 instead of 1.
8 years ago
Jorge Bucaran 845aca5ee9
Remove distracting arrows from fetch message. 8 years ago
Jorge Bucaran 7295877895
Add plugin dependency reference counting. Close #226. 8 years ago
Jorge Bucaran 966d168dbc
Simplify plugin_is_prompt check. 8 years ago
Jorge Bucaran b1f59fa699
Use perl or python (whichever is available and in that order) to check index age. 8 years ago
Jorge Bucaran a33dda7f9e
Simplify ls-remote usage instructions. 8 years ago
Jorge Bucaran 2db6a2106f
Update manpage instructions. 8 years ago
Jorge Bucaran acc8126b65
Query __fisher functions and erase matches in self-uninstall. 8 years ago
Jorge Bucaran 6108ad452b
Do not overwrite fish_colors when updating current prompt. Fix #248. 8 years ago
Jorge Bucaran ad6110ac66
Remove fetched plugins from the config when there is a fetch error. Fix #247. 8 years ago
Jorge Bucaran 487ffaca70
Parse config path glob in advance during completion step. 8 years ago
Jorge Bucaran 13a2643edd
Add undocumented self-uninstall alias to self-destroy. 8 years ago
Jorge Bucaran 76ee23d4c3
Unset color uvar if color is blank. 8 years ago
Jorge Bucaran 22b8cd1d55
Make spinner more noticeable. 8 years ago
Jorge Bucaran 4d0cf5dfb4
Run file age check, only if we can get a value from __fisher_get_file_age.
This probably means the user does not have python installed on their
system and we will be download the index every time the user runs
ls-remote.

A more sensitive, python-less solution to check file age since the last
time the file was modified should be more desirable.
8 years ago
Jorge Bucaran f6a25a32ef
Say 'pulled X commits' when updating. 8 years ago
Jorge Bucaran 40b6d295d9
Do not generate false color uvars if value is not previously set. 8 years ago
Jorge Bucaran 81966bb8fc
Bump to 2.4.1 📦 8 years ago
Jorge Bucaran 348f43fe54
Fix bug where undefined fish colors where set to incorrect values. Fix #246. 8 years ago
Jorge Bucaran dae04ba336
Bump to 2.3.4 📦 8 years ago
Jorge Bucaran 27a46672d2
Do not rewrite fishfile in ls or ls-remote. 8 years ago
Jorge Bucaran d387963fdb
Make `fisher install` behave like `fisher` when not on the right
side of a pipe. Correct fix for #218.
8 years ago
Jorge Bucaran f0b8514e4c
Bump to 2.3.3 📦 8 years ago
Jorge Bucaran 566cfa5d8b
Teach ls to handle multiple arguments. Close #243. 8 years ago
Jorge Bucaran 4b27433300
Match multiple keys with ls-remote [--format=fmt_str] k1 k2 k3
Also fix regression in ls-remote that was displaying both
installed and remote plugins.
8 years ago
Jorge Bucaran 7d27777aca
Fix bug where main completions were getting overwritten. 8 years ago
Jorge Bucaran f3573b35fe
Allow fisher without args to read from stdin if not a tty. Close #224. 8 years ago
Jorge Bucaran c328543234
Add black list check when performing ls-remote completions. 8 years ago
Jorge Bucaran 0d075731fc
Bump to 2.3.1 📦 8 years ago
Jorge Bucaran 69bbcb0449
Do not update the index when performing ls-remote completions. 8 years ago
Jorge Bucaran dc80ea96ba
Download the JSON data from GitHub and transform it into a tab
delimited, awk-friendy format and put it in .cache/.index.

During the process, sort the data also. This way, don't need
to repeat the same process every time we run ls-remote.

Add completions for ls-remote with plugin name and info.
8 years ago
Jorge Bucaran 5296558711
Bump to 2.3.0 📦 8 years ago
Jorge Bucaran 097ed41f00
Add line breaks and run other post processing on the JSON response
when updating the index for ls-remote.

Allow ls-remote to accept a key and always print record if it
matches the plugin's name. Works with the format string too.

Close #234, #236, #238
8 years ago
Jorge Bucaran 224882926d
Bump to 2.2.0 📦 8 years ago
Jorge Bucaran d6986af3a6
Add new sub command ls-remote to list what plugins you can install.
Running fisher ls-remote will query the GitHub API for all the
repos in the fisherman org and retrieve the JSON file which is
saved to .cache/fisherman/.index.json.

This file is updated every half and hour whenever you run the
command again. This number is subject to change in the future
as we learn how people are actually using this option.

The ls-remote option can take --format=<fmt string> option used
to customize the list output.

By default, it shows only names and breaks it into columns as
wide as your terminal window.

<fmt string> can contain \t tabs or \n line breaks and one or
more of the following variables with information about plugins.

  *  %name
  *  %info
  *  %url
  *  %stars
8 years ago
Jorge Bucaran 9d70776bd2
Do not return 1 if `fisher` succeeds.
Other
 * Better logic when leaving early in case of a fail install.
 * Colorize task completion duration.
8 years ago
Jorge Bucaran d43e4799a2
Bump to 2.1.13 📦
* Use more appropriate wording when updating symlinks,
  instead of "skipped", use "synced", since symlinks
  are processed justs like regular plugins.
8 years ago
Jorge Bucaran 227c2738b8
Ditch -F option in ln and simplify code introduced in #231.
ln -F is relevant only when the target is a directory, in which
case `ln` will delete the directory so that the link can occur.

In fisherman, we use links in only two places:

1. Linking files into .config/fish/{functions,completions}, and
2. Linking local plugins into the .config/fisherman

If my calculations are correct, we don't need -F in either case.

Both {functions/completions} never contain directories, so (1)
is probably safe. The fisherman config only contains directories
to installed plugins, so not using -F actually prevents the user
from overwriting a plugin currently installed with a local plugin.
8 years ago
Scott Bonds 92242e7aa8 Check OS and use appropriate ``ln`` options (#231)
Note: OpenBSD's ln does not support the -F flag.
8 years ago
Jorge Bucaran df94db62dd
Bump to 2.1.11 📦 8 years ago
Jorge Bucaran 39f39d018a
Overwrite cached plugin after updating copy in the config.
The previous implementation was creating a nested copy of
the target directory (updated plugin) inside the cached
copy.

After some research, I believe there are two things we
can do here:

1. Remove the target and create a new copy or

2. Use the following syntax

      cp -rf src_dir/. target_dir

   which seems to do what we want, overwrite target with
   source entirely.
8 years ago
Jorge Bucaran b60ea9ee8e
Move completions/fisher.fish creation to the top of the function. 8 years ago
Jorge Bucaran 6a5099df96
Bump to 2.1.10 📦 8 years ago
Jorge Bucaran cddf8b1f87
Remove useless check for files that start with `.` in __fisher_list_plugin_directory. 8 years ago
Decors e2de415090 Fix ``fisher ls <plugin>`` incorrect directory display (#221) 8 years ago
Jorge Bucaran d6514f77f4
Bump to 2.1.9 📦 8 years ago
Jorge Bucaran a338656cb8
Do not flush fishfile if user types ``fisher install``. Close #218. 8 years ago
Jorge Bucaran 133055b926
Simplify FAQ more, no one is asking those questions. 8 years ago
Jorge Bucaran e52cf77287
Fix inaccurate post uninstall message again. 8 years ago
Jorge Bucaran 2ffe8ee7f1
Fix inaccurate post uninstall message. 8 years ago
Jorge Bucaran bdc635b17f
Drop risky exec fish < /dev/tty for ``npm i fisherman``
in favor of displaying a message and ask the user to
reload their shell.
8 years ago
Jorge Bucaran eef50fcd09
Add uninstall instructions, update docs. 8 years ago
Jorge Bucaran 006673ee73
Better user experience for ``npm i fisherman`` users. 8 years ago