Commit Graph

1586 Commits

Author SHA1 Message Date
Derek Willian Stavis
2c4471a78c autoload: refactor for conformance and performance (#262)
Refactor autoload: Split the big function into two smaller ones,
doing only option parsing at main function.

The algorithm is also rewritten, now in two steps for both path
inclusion an exclusion functions: 1) use auxiliary lists to store
valid function and completion paths, 2) bulk insert or remove just
once in the variable.

Now also respects path insertion policy, keeping user function
path always in front of other paths, thus allowing precedence of
user functions.
2016-06-01 01:14:30 -03:00
Derek Willian Stavis
a164ebdd5d init: rewrite init process (#260)
* init: rewrite init process

Now use pure globbing to generate 100% valid function and
completion paths, effectively splitting the init process in two
steps, one which paths are added, and other when initialization
is done (sourcing init).

This initialization code introduces a new interface for
`init.fish` hook, which deprecates the previously used event
model. The new interface injects three variables into `init.fish`:
path, package and bundle. This variables can be used by the
package to autoload paths, use bundled files, etc.

Also supports key bindings by sourcing
$OMF_CONFIG/key_bindings.fish and also key_bindings.fish in
packages (plugins and themes) root directories. This is done
when fish_user_key_bindings is called.

* omf: migrate to new init hook

* omf/templates: migrate to new init and uninstall hooks

* docs: document new init and uninstall hooks interface

* README: update new hook interface spec
2016-06-01 01:09:38 -03:00
Derek Willian Stavis
17de8c4b6b list: refactor code, fix fish 2.3.0 globs (#325) 2016-05-31 18:16:02 -03:00
Denis Koltsov
ce97843850 update version (#323)
* update version constant to 2
2016-05-30 16:05:48 -05:00
Pablo Aguiar
3ed532358b Merge pull request #319 from pedrosnk/patch-1
Add wttr plugin to omf
2016-05-17 11:26:25 -03:00
Pedro Medeiros
c8d925f150 Update plugin url 2016-05-17 11:13:29 -03:00
Pedro Medeiros
afbfc830bb Add wttr plugin to omf
Add a wttr plugin to omf that interfaces with wttr.in service and shows weather information
2016-05-17 10:16:31 -03:00
Stephen M. Coakley
c809051edd Bump minimum Fish version in installer (fix #243) 2016-05-13 02:17:34 -05:00
Luís Fiolhais
15e9af84b1 Search Function (#314)
Add new search command
2016-05-11 13:29:50 -05:00
Stephen M. Coakley
4b541ec0a1 Merge pull request #310 from sheldon/describe-fixes
Describe all packages fixed
2016-05-10 01:06:53 -05:00
Sheldon Els
355b519c1e describe all packages works again 2016-05-10 07:57:04 +02:00
Sheldon Els
f7e1561067 indent correct on help for describe command 2016-05-10 07:57:04 +02:00
jona
a79b6c1d2b add mokou to the theme registry (#315)
* Create mokou
2016-05-07 14:08:55 -03:00
Derek Willian Stavis
e681f4c161 Merge pull request #309 from mathiasvr/patch-1
Remove vscode plugin
2016-04-28 20:01:46 -03:00
Mathias Rasmussen
ce521018cc Merge branch 'master' into patch-1 2016-04-28 22:37:15 +02:00
Derek Willian Stavis
1f547f8fcb Merge pull request #311 from lfiolhais/small-readme-fixes
Small Readme Fixes
2016-04-27 16:19:28 -03:00
Luís Fiolhais
0335a806f1
Small Readme Fixes 2016-04-27 19:36:00 +01:00
Mathias Rasmussen
cbe4cd64fc Remove vscode plugin
VSCode can add itself to PATH now.
2016-04-19 18:32:36 +02:00
Derek Willian Stavis
ca2cf27b6c Merge pull request #308 from andrewrynhard/master
Update plugin-rustup URL
2016-04-19 13:11:56 -03:00
Andrew Rynhard
9db6c6b250 Update plugin-rustup URL 2016-04-19 09:05:24 -07:00
Derek Willian Stavis
159a87d330 Merge pull request #306 from andrewrynhard/plugin-rustup
Add plugin-rustup
2016-04-19 11:51:09 -03:00
Derek Willian Stavis
a300d1ba65 Merge pull request #305 from andrewrynhard/fix_#303
Fix #303
2016-04-19 11:49:07 -03:00
Andrew Rynhard
1853f30dd6 Use local variables 2016-04-19 01:16:58 -07:00
Andrew Rynhard
a5654cfec3 Use -L instead of -h 2016-04-19 00:34:33 -07:00
Andrew Rynhard
9b3a2586f2 Fix #303 2016-04-19 00:14:10 -07:00
Andrew Rynhard
80adc78ce7 Add plugin-rustup 2016-04-19 00:13:02 -07:00
Stephen M. Coakley
4fab28534f Merge pull request #301 from coderstephen/master
Add linuxbrew to db
2016-04-18 20:55:00 -05:00
Stephen Coakley
7b6f7fda1d Add linuxbrew to db 2016-04-18 20:50:09 -05:00
Derek Willian Stavis
cdc31d78ba Merge pull request #300 from szwathub/master
Added a new theme named cyan
2016-04-17 14:14:41 -03:00
Cyan
31a09d02ac Update cyan 2016-04-18 00:45:50 +08:00
szwathub
8e7248290a a new theme named cyan 2016-04-17 23:42:24 +08:00
Derek Willian Stavis
a8016c1588 Merge pull request #288 from oh-my-fish/registry/add-await
registry: add 'await' package
2016-03-30 23:16:24 -03:00
Derek Stavis
e289a85bbf registry: add 'await' package 2016-03-30 23:12:27 -03:00
Justin Hileman
fa7a3a33a8 Merge pull request #289 from demidovakatya/master
Improve grammar and punctuation for docs/RU
2016-03-30 18:23:35 -07:00
Derek Willian Stavis
74439cc18a Merge pull request #291 from sobolevn/master
Fixed links in the english docs.
2016-03-30 21:56:53 -03:00
sobolevn
1a2ac73c88 Fixed links in the english docs. There were broken links to the translated docs.
I have changed `docs/` to `../`, now it's fine.
2016-03-30 15:12:15 +03:00
Katya Demidova
f73002d99d Improve grammar and punctuaiton for docs/RU 2016-03-30 11:35:55 +03:00
Justin Hileman
5260fd496a Merge pull request #287 from oranja/pkg-uptodate
bugfix: Core update reported failure when up-to-date
2016-03-28 07:21:56 -07:00
Itzik Ephraim
0fc99b38b4 bugfix: Core update reported failure when up-to-date 2016-03-28 09:18:10 +03:00
Derek Willian Stavis
0699c9ff40 Merge pull request #285 from oranja/pkg-uptodate
omf update: Report up-to-date packages as such
2016-03-27 21:57:28 -03:00
Itzik Ephraim
720c499e61 Report up-to-date packages as such 2016-03-27 09:19:07 +03:00
Itzik Ephraim
f6b9bdd941 When pulling a repo, fetch first, to check for updates 2016-03-25 13:17:56 +03:00
Justin Hileman
2526efd9fd Merge pull request #266 from oh-my-fish/safe-exec
Implement safe shell reloading inside omf plugin
2016-03-24 23:26:00 -07:00
Derek Stavis
a716badfd4 Implement safe shell reloading inside omf plugin
This commit adds an improved reload code for Oh My Fish, besides
saving the history now the reloading technique keeps directory
history and stack and clears fish_greeting, for a transparent
transition.

The reloading code is now safe regarding to background jobs. exec
wipes fish job control, so the user-facing code under the (just-
introduced by this commit) `omf reload` command is kept safe by a
warning. For testing purposes, `omf update` and `omf remove` rolls
automatic refresh only when `OMF_AUTO_RELOAD` variable is set.

Recap of the commit:
- Add improved reload code (omf.reload)
- Add a safe reload code (omf.cli.reload)
- Add `omf reload` command
- Add opt-in reload to `omf update` and `omf remove` commands
2016-03-24 18:43:23 -03:00
Justin Hileman
d794969f23 Merge pull request #238 from VEINHORN/master
Add ru-RU docs
2016-03-24 01:13:27 -07:00
Justin Hileman
6323844b81 Merge pull request #280 from oranja/doctor-versions
`omf doctor` checks for fish & git versions
2016-03-24 00:17:14 -07:00
Itzik Ephraim
5764f0d9a4 omf doctor checks for fish & git versions
Minimum fish version: 2.2.0
Minimum git version: 1.9.5
2016-03-24 09:01:18 +02:00
Justin Hileman
8de7eb4c72 Merge pull request #276 from oh-my-fish/deprecate-refresh
lib: deprecate `refresh` function
2016-03-23 14:33:41 -07:00
Justin Hileman
b490fad367 Merge branch 'master' into deprecate-refresh 2016-03-23 08:10:27 -07:00
Justin Hileman
e04ba4f3f9 Merge pull request #284 from oh-my-fish/deprecate-available
lib: deprecate `available` function
2016-03-23 08:10:07 -07:00