Commit Graph

157 Commits (97b6b92cdd093959e8bf7d01a98831c5a46c5a57)

Author SHA1 Message Date
Itzik Ephraim a6a67be60b Use posix stderr redirection (2> instead of ^)
Fish is deprecating `^` as a shortcut for stderr redirection.
Replace with the more common and compatible `2>`.

Fixes #609
6 years ago
pxgamer c78ce17637
Fix indentation style of omf.packages.new.fish 7 years ago
pxgamer 652d5e341a
Fix setting the variable for 'year' 7 years ago
pxgamer f8727bef89
Add YEAR token to the list of sed replacements 7 years ago
pxgamer 39a9cffc40
Replace year in LICENSE files with a token 7 years ago
Stephen M. Coakley 65590470bc fix: #577 add environment sanity checks 7 years ago
Stephen M. Coakley 2785f2d525
Fix #529 7 years ago
Stephen M. Coakley fdb6520250
Compatibility with BSD sed 7 years ago
Stephen M. Coakley b479197634
Update docs and formatter 7 years ago
Stephen M. Coakley 45cb2b7376
Update help text and completions 7 years ago
Stephen M. Coakley bfe88ad604
Refactor command execution and help
- Copy and improve help text, and convert it to AsciiDoc files
- Evaluate commands dynamically
7 years ago
Stephen M. Coakley 8092fba290
Limit search to name+description 8 years ago
Stephen M. Coakley 32faf74bb7
Detect themes by fish_prompt instead of name 8 years ago
Stephen M. Coakley 8aef0b2d33
Handle missing theme setting more gracefully 8 years ago
Stephen M. Coakley a428f29c54 Update functions directory in function path when setting theme (#485) 8 years ago
Stephen M. Coakley 2d1deeb5fd Replace package database with independently installed package repositories (#427)
Replace package database with independently installed package repositories

- Add support for fetching and installing from package repositories containing package URLs and metadata
- Support multiple package repository sources
- Add new repo command
- Remove submit command
- Enhance describe and search commands
- Fix and improve help text for new and adjusted commands
- Fix bundle install exit status
- Refer to plugins as "plugins" instead of the general term "packages"
- Code clarity improvements
- Put plugin/theme distinction into package metadata
8 years ago
Stephen M. Coakley 016ea34a9b oops (#470) 8 years ago
Stephen M. Coakley d951cb1a15 Normalize redirection syntax (#459) 8 years ago
Stephen M. Coakley 50004e39a1 Print diagnostic info in doctor (#456) 8 years ago
Stephen M. Coakley 674c90d160 Make OMF command colors independent of Fish version (#446) 8 years ago
Stephen M. Coakley 6404410be0 Implement update channels to introduce release versioning (#293) 8 years ago
Pablo Aguiar 00325f886f Amend templates (#403)
* omf/templates: use ones name as copyright holder

* omf/templates: use ones github username in URLs

* omf/templates: use current yeat in copyright notice
8 years ago
Justin Hileman 370b4dd2a5 Fix the blank lines in `omf update` output. (#394) 8 years ago
Stephen M. Coakley fb6c2992ba Do not overwrite themes when installing from bundle (#385) 8 years ago
Stephen M. Coakley cfe8e769db Refactor installer and config setup (#361)
Refactor the installer to be more maintainable and interactive. The installer is now more robust and safe in its operation, and asks interactive questions for choices that the user must resolve. Setting up confuguration is also now changed to take advantage of Fish 2.3 features and does not mess with user's configuration files without permission.

- Make installer smarter and use uninstaller in destroy
- Better handling and checking for offline installs
- `omf destroy` simply uses `install --uninstall`
- Final warning message is no longer displayed when user intentionally aborts install
- Backups are restored during uninstall
- Update the README to detail the new ways to install OMF
8 years ago
Derek Willian Stavis fcc9d4dc0a key bindings: test if reload function is available (#368)
This fixes a rare case when fish's builtin function
__fish_reload_key_bindings is not defined.
8 years ago
Stephen M. Coakley e4bd035f15 Fix omf update exit status (#365) 8 years ago
Stephen M. Coakley e9fb8ff3db Add hooks system for packages (#286) 8 years ago
Stephen M. Coakley 8ce0f3bd50 Align help text to use less extra space (#356) 8 years ago
Derek Willian Stavis 5095b5ba31 destroy: fix glob behavior on fish 2.3.0 (#327) 8 years ago
Derek Willian Stavis 0ca26d01e2 Fix theme key bindings (#334)
* init: load only key bindings from current theme

* theme: reload key bindings on theme change
8 years ago
Pablo Santiago Blum de Aguiar db66200ca9 templates: use `plugin` for plugins and `theme` for themes 8 years ago
Pablo Santiago Blum de Aguiar befebda9f2 templates: consistently use newlines before sections 8 years ago
Pablo Santiago Blum de Aguiar 7a815f32f0 templates: use https for all links 8 years ago
Luís Fiolhais 9afb439844 Fix autoload functions (#335) 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 Willian Stavis 17de8c4b6b list: refactor code, fix fish 2.3.0 globs (#325) 8 years ago
Luís Fiolhais 15e9af84b1 Search Function (#314)
Add new search command
9 years ago
Sheldon Els 355b519c1e describe all packages works again 9 years ago
Sheldon Els f7e1561067 indent correct on help for describe command 9 years ago
Andrew Rynhard 1853f30dd6 Use local variables 9 years ago
Andrew Rynhard a5654cfec3 Use -L instead of -h 9 years ago
Andrew Rynhard 9b3a2586f2 Fix #303 9 years ago
Itzik Ephraim 0fc99b38b4 bugfix: Core update reported failure when up-to-date 9 years ago
Itzik Ephraim 720c499e61 Report up-to-date packages as such 9 years ago
Itzik Ephraim f6b9bdd941 When pulling a repo, fetch first, to check for updates 9 years ago
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
9 years ago
Itzik Ephraim 5764f0d9a4 `omf doctor` checks for fish & git versions
Minimum fish version: 2.2.0
Minimum git version: 1.9.5
9 years ago
Justin Hileman b490fad367 Merge branch 'master' into deprecate-refresh 9 years ago
Derek Stavis 65dfadfc02 lib: deprecate `available` function
This PR officially marks available as deprecated, moving the
deprecated functionality to omf plugin compat quarantine directory.
9 years ago