Commit Graph

8 Commits (master)

Author SHA1 Message Date
Thales Mello c0e69a589e Put conf_file loop outside of init_file loop (#666) 6 years ago
Derek W. Stavis 355cc597fa
add conf.d to require mechanism (#653) 6 years ago
Derek Willian Stavis 4691b92dab require: fix completions autoload (#343) 8 years ago
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
8 years ago
Derek Stavis 042657cdcf require: recursively require package dependencies 9 years ago
Derek Stavis ecbc9c5ed3 require: Cleanup previously sourced init functions 9 years ago
Bruno Pinto 1ab8a20b8c Fix #8: Fishy plugin template 9 years ago
Bruno Pinto 30ab05445d Add `require` function to support plugin dep
In order to support dependency between plugins a function called
`require` has been added.
9 years ago