Commit Graph

622 Commits

Author SHA1 Message Date
ZyX 461c4f4d51 Add support for number of jobs to fish bindings 2014-01-19 17:51:48 +04:00
ZyX 972bd45c21 Make fish bindings feature complete, add documentation
Added features:
- Updating TMUX_PWD_* when PWD variable changes
- Updating TMUX_COLUMNS_* when WINCH signal is received
2014-01-19 17:45:52 +04:00
ZyX 38f24852eb Add powerline/bindings/fish/powerline.fish 2014-01-19 17:45:17 +04:00
ZyX c6324afbc5 Replace `jobs` with `jobs -p`
If some long shell code is run in the background it may be shown as more then 
one job:

    bash-4.2$ {
    > echo abc | while read line ; do
    > sleep 1s
    > sleep 1s
    > done
    > } &
    [1] 9401
    bash-4.2$ jobs
    [1]+  Running                 { echo abc | while read line; do
        sleep 1s; sleep 1s;
    done; } &

`jobs -p` print exactly one job in this case.
2014-01-19 16:19:23 +04:00
ZyX 1a841a4ac8 Replace POWERLINE_OLD_PROMPT_COMMAND with the code used by [z][1]
Does not fix anything, but is three lines less and is probably the way other 
tools expect us to do.

[1]: https://github.com/rupa/z
2014-01-19 16:15:40 +04:00
ZyX-I 2a525ae4f8 Merge pull request #667 from kovidgoyal/fix-git-branch-name
Fix git branch name sometimes getting stuck with inotify
2014-01-17 10:20:25 -08:00
ZyX 31f85800b6 Merge branch 'kruton-develop' into develop
Fixes #748
2014-01-14 23:42:22 +04:00
ZyX aa3e86b9d9 Rewrite documentation string 2014-01-14 23:38:34 +04:00
Kenny Root c33d56e73c Add arg to optionally suppress user segment
This adds the option to common.user to suppress display if the username
matches the given string in the new "hide_user" argument.
2014-01-13 23:57:41 -08:00
ZyX 2e713269ae Always show hostname (travis is ssh), fix jobnum in zsh 2014-01-14 00:18:34 +04:00
ZyX fb00a9586b Fix copy-paste typo in shell.py 2014-01-11 12:50:50 +04:00
ZyX bd4173eb1f Add jobnum segment to default_leftonly theme 2014-01-11 12:43:13 +04:00
ZyX e8b2054868 Make nerdtree segment use bufvar_exists 2014-01-11 11:51:41 +04:00
ZyX 64a32a910b Add window_cached decorator for ctrlp segment 2014-01-11 11:50:28 +04:00
cyberdork33 01f445bd67 Update powerline.sh
I think this was a typo. broke my system.
2014-01-10 15:25:20 -06:00
ZyX-I 1587f262de Merge pull request #744 from ZyX-I/fix-tests
Fix tests
2014-01-10 11:42:41 -08:00
ZyX e152ecfa9a Add missing groups to solarizedlight 2014-01-10 23:22:54 +04:00
ZyX e56bf3606b Add Args.jobnum property
Fixes #742
2014-01-10 23:01:32 +04:00
ZyX-I 759bf043dc Merge pull request #528 from phunehehe/feature/527-zsh-bash-relative-path
Feature/527 zsh bash relative path
2014-01-10 09:55:11 -08:00
ZyX-I 7b3e935461 Merge pull request #694 from Apsu/patch-1
Fix weather geoip lookups
2014-01-10 09:47:05 -08:00
ZyX-I 483ed5d0e2 Merge pull request #671 from jarnett/develop
workaround for _powerline_tmux_setenv() issue with bash-4.2.45
2014-01-10 09:38:12 -08:00
ZyX-I 0a0f971484 Merge pull request #679 from pdf/feature/678-fix-infinite-recursion-in-powerline_old_prompt_command
Avoid infinite recursion in `POWERLINE_OLD_PROMPT_COMMAND`
2014-01-10 09:36:43 -08:00
ZyX-I 76027fb0c2 Merge pull request #716 from metaphox/develop
add Solarized Light colour theme for Vim
2014-01-10 09:30:35 -08:00
ZyX-I 47fdff946c Merge pull request #715 from ZyX-I/no-run_once-watches
Reduce number of inotify watches
2014-01-10 09:23:36 -08:00
ZyX-I a145b11d85 Merge pull request #697 from ZyX-I/zsh-bindings-small-update-1
A few fixes to zsh bindings
2014-01-10 09:20:34 -08:00
ZyX-I a6af95a8f7 Merge pull request #712 from ZyX-I/shell-jobs
Add jobnum segment
2014-01-10 09:19:01 -08:00
Tao Wu 4836cbb43e Update solarizedlight.json
Update name to "Solarized Light".
2013-11-21 16:03:58 +01:00
Tao Wu 1e0f13aede add Solarized Light colour theme for Vim 2013-11-21 14:23:14 +01:00
ZyX 6a4b8bc49c Pass run_once to ConfigLoader, make it respect run_once
It only respects run_once by using DummyWatcher instead of a watcher doing 
something potentially useful

Ref #711
2013-11-20 23:51:26 +04:00
ZyX 2ef0d4412d Add jobnum segment
Replaces #596. Differences:
- Tests and metavar.
- Uses “jobnum” name in place of “jobs”.
- Does not use subshell for zsh. Also counts jobs correctly in zsh.
- Adds an option to force showing jobnum segment even if there are no jobs.
2013-11-19 01:01:49 +04:00
ZyX 8d36f4221a Set TMUX_PWD_* on startup
Ref #672
2013-11-04 23:15:51 +04:00
ZyX 9446ac91f8 Make sure flake8 does not show any errors in powerline/lint/**/*.py files 2013-11-03 02:15:24 +04:00
ZyX b5f051f71c Fix powerline-lint tests
Some notes on the commit:

1. As external_ip and email_imap_alert segments seem to be removed corresponding
   segment_data keys also were removed.
2. Various files that import vim module now have the usual workaround that sets
   vim local to dummy object on error.
3. Syntastic check was failing because it did not specify which highlighting
   groups it uses in documentation. I made it specify them and also moved format
   strings to keywords. Same for some other plugin-local themes.
4. powerline-lint script got --debug argument. Pretty useless currently though:
   it only makes it output traceback for ImportError when failing to import
   module to stderr.
5. Moved themes/vim/plugin/*.json to themes/vim/plugin_*.json.
6. Fixed powerline-lint that ignored problems from values.
2013-11-03 01:48:16 +04:00
Evan Callicoat c293b62132 Fix weather geoip lookups
- _external_ip() isn't necessary with freegeoip.net as it does this for you when unspecified.
- region_name/country_name make Yahoo's weather API unhappy whereas region_code/country_code work for me (TX/US)
2013-11-01 00:57:33 -05:00
Peter Fern 1d385f875f Avoid infinite recursion in `POWERLINE_OLD_PROMPT_COMMAND`
Fixes #678
2013-10-15 21:21:12 +11:00
Jesse a810e37f02 workaround for _powerline_tmux_setenv() issue with bash-4.2.45 2013-10-05 03:31:34 -04:00
Kovid Goyal 7423b55cc4 Fix git branch name sometimes getting stuck with inotify
If you try to checkout the already current branch in git, git creates
HEAD.lock and renames it to HEAD. This causes the inode of HEAD to
change and so the inotify file watcher stops tracking HEAD.

The fix is to re-create the inotify watch when the file attributes
change. This is a bit of a performance penalty as most of the time the
attribute changes are simple last modified time/size changes, but since
inotify provides no way to know specifically when the inode has changed,
this is the best we can do.
2013-09-25 10:27:48 +05:30
Wang Xuerui 4f1c26aa24 Make extra error info string
Fixes #645
2013-08-27 10:21:35 +02:00
Kim Silkebækken 9314ed99c5 Add missing comma in solarized colorscheme 2013-08-21 10:02:26 +02:00
Kim Silkebækken 6e8318ac52 Remove long-running segments from tmux
The segments will be re-added when the daemon is merged and the docs
are updated.
2013-08-20 17:40:28 +02:00
Kim Silkebækken 44a37b0180 Merge branch 'feature/plugin-statuslines' into develop
Refs #3, #524, #470
Closes #377
Closes #451
2013-08-20 17:29:02 +02:00
Kim Silkebækken d0429ac023 Add Tagbar current tag segment 2013-08-20 17:26:36 +02:00
Kim Silkebækken 0fc79d2849 Center align CtrlP current segment 2013-08-20 17:14:24 +02:00
Kim Silkebækken 3d3450d8c1 Add Gundo statuslines 2013-08-20 17:07:18 +02:00
Kim Silkebækken 1fe98e1c3d Update CtrlP config to match segment changes 2013-08-20 17:01:08 +02:00
Kim Silkebækken 7ec4cb9b26 Merge remote-tracking branch 'aschrab/gitfile' into develop 2013-08-20 16:50:48 +02:00
Kim Silkebækken fabc45f1dc Merge remote-tracking branch 'aschrab/no_python_warning' into develop 2013-08-20 16:50:27 +02:00
Kim Silkebækken e19a63aaa9 Update plugin segments to use bindings 2013-08-20 16:48:36 +02:00
Kim Silkebækken 6baf1f8e90 Add Syntastic statusline
Refs #376, #639.
Closes #451.
2013-08-20 16:08:11 +02:00
Kim Silkebækken 7aee4c1dd7 Align default vim colorscheme attributes 2013-08-20 16:05:10 +02:00