Commit Graph

2860 Commits

Author SHA1 Message Date
Philip Wellnitz beca2d6e87
Update main.yaml
Update supported python versions.
2024-02-28 16:33:59 +09:00
Robin Candau c04a8dd5a1
Remove imp module from tests to make them compatible with python 3.12 (#2251) 2024-02-27 18:59:10 +09:00
wanderboessenkool 14cc0d2df8
Change TMUJX_VAR_RE re.compile to use raw string (#2245) 2023-11-27 21:05:59 +09:00
JesseBot 833f30e88e
Feature: add username_variable, password_variable, server_variable, port_variable to options to mail segment (#2225)
* add username_variable and password_variable to options to mail segment

* add server variable

* make username/password optional for mail, and fix getting env var typo

* add port variable for email

* fix sleepy port_variable typo
2022-12-18 17:38:49 +09:00
Christoph Erhardt 50d73bfbc8
Ensure compatibility with Python 3.11 (#2212)
* Replace deprecated `getargspec()` with `getfullargspec()`
* Replace deprecated `formatargspec()` with custom implementation

Fixes #2209.
2022-06-23 19:05:54 +09:00
PHP Wellnitz 8af6302c81 bump version to 2.8.3 2022-05-19 17:06:54 +09:00
PHP Wellnitz 3555dc97c9 change get_version to adhere to PEP 440 2022-05-19 16:57:18 +09:00
PHP Wellnitz 567e2c930b fix #2194 2022-05-19 16:52:00 +09:00
PHP Wellnitz 90af71c122 Fix #2200 2022-04-09 04:27:02 +09:00
Albert Paul 9ce39e6333 Remove git protocol (#2199)
* Fix outdated Github url

git:// is deprecated from Github starting from Jan. 11th, 2022.

* Update git protocols
2022-03-21 19:02:37 +09:00
Darren 82c1373ba0
Added tips to installation docs (#2175)
* Added virtual environment tips

Documented the use of `POWERLINE_COMMAND` env variable for improved performance with virtual environments.

* Clarify client versions

Adding details from the GitHub issues to clarify the installation docs.

* Added troubleshooting tip for Python environments
2021-08-21 11:21:14 +09:00
Josh Gao 57aea1e400
powerline.zsh: squelch which output. (#2176)
If powerline-config isn't on $PATH, GNU which will output "no
powerline-config in ($PATH)" to stderr, which we previously weren't
silencing.
2021-08-21 11:17:03 +09:00
MrFishFinger 8f0d3f8bd2
doco - add a comma, to make sentence more readable (#2173) 2021-07-26 16:01:39 +09:00
Philip Wellnitz 7310d53ade
i3 segments rework (#2159)
rework i3wm segments
2021-03-15 03:45:17 +09:00
Philip Wellnitz a1309cc116 bump version to 2.8.2 2021-03-01 16:45:49 +09:00
sol 1869cc8bed
Use updated i3ipc syntax in i3 segments/listers (#2062)
Close #2046

Co-authored-by: s-ol <s-ol@users.noreply.github.com>
2021-01-08 19:25:53 +09:00
Cédric Schieli c31f83f831
Emulate a right prompt in bash (#2148)
* Allow passing args from render() to hl() and hlstyle() functions

* New escape arg in ShellRenderer's hlstyle() to enable/disable escaping

* Fix invalid escape sequence

* Emulate a right prompt in bash

Fixes #2103

* Document the new hl_args argument
2021-01-06 18:20:15 +09:00
Tim Gates 999c84a5cb
docs: fix simple typo, proided -> provided (#2144)
There is a small typo in powerline/lint/spec.py.

Should read `provided` rather than `proided`.
2020-12-22 18:58:38 +09:00
StopMotionCuber f401ee3106
Fix escaping of sh specific characters in tmux (#2135)
* Fix escaping of sh specific characters in tmux

* Only have single pane_id (these line length is getting out of hand)
2020-10-28 17:39:17 +09:00
StopMotionCuber a6060c760a
Fix non-meaningful venv names. (#2134)
* Add feature to ignore certain virtualenv names

* Add tests for testing ignored names (specific as well as default)

* Don't use `zsh.environ` as this does not stringify the environment
2020-10-27 21:50:36 +09:00
Ivan Zhukov f4ef122759
Fallback to a current window in tabline() (#2132)
Ref #2125
2020-10-22 07:19:55 +09:00
Philip Wellnitz a1a36699b3
Update .travis.yml 2020-10-12 18:11:48 +09:00
Philip Wellnitz 0cccb7b4bc
Update README.rst 2020-10-12 18:07:37 +09:00
StopMotionCuber a80bbdf17d
Updated uptime segment to have show time in a better way (#2036)
* Updated uptime segment to have show time in a better way

* Made current solution backwards compatible

* Include proposed change for proper uptime support

* Updated tests to reflect new default values for uptime
2020-10-06 04:32:36 +09:00
StopMotionCuber 91ec7982ca
Fixed getcwd for tmux (#2127) 2020-10-06 02:43:09 +09:00
Thom Wiggers 40c3e092b6
Prefer Python 3 in the Vim plugin (#2124)
Python 2 is EOL, so it makes more sense to use Python 3 as the preferred version of Python rather than just fall back on it.
2020-09-26 17:50:51 +09:00
Tais P. Hansen ff629c388e
Implement GitHub actions for build and publish (#2118)
Requires a secret named PYPI_TOKEN containing a valid PyPI API token.

Note that this drop support for Python 2.6 as GitHub Actions only
supports Python 2.7+.

Fixes #2116
2020-09-21 20:03:15 +09:00
StopMotionCuber 73881c1dce
Shifted away from (abandoned) Yahoo API to OpenWeatherMap (#2038)
* Shifted away from (abandoned) Yahoo API to OpenWeatherMap
* Calculate gradient based on converted temperature
* Added Stubs for https://freegeoip.app as well as https://api.openweathermap.com
* Updated tests for weather segment with OpenWeatherMap mocking
* Make Weather API key configurable
* Added documentation for the OpenWeatherMap API keys
2020-09-19 14:31:49 +09:00
रोहित हिल 992c5464ba
Factored statement always executed in conditional (#2121) 2020-09-07 14:28:56 +09:00
Andrew Garrett 8c6874d855
Render cpu_load_percent segment even when psutil returns 0.0 (#2111)
Although the docs for psutil say 0.0 is a nonsense value that's returned
first and supposed to be ignored, but on a relatively idle system it
will actually return 0.0 occasionally after that. So at the expense of
displaying that "nonsense value" when the statusbar first loads, this
change gets rid of the visual disruptions of having the segment pop out
and back in periodically.

Fixes #2110.

Co-authored-by: 2rs2ts <2rs2ts@github>
2020-07-12 19:31:52 +09:00
StopMotionCuber 14a4100c4c
Fixes elapsed time that is provided with a ',' instead of a '.' (#2104) 2020-06-04 15:00:00 +09:00
Jesse Houwing 65f968ad3a
Use `--no-optional-locks` to reduce conflicts with other git editors (#2098)
Adding --no-optional-locks will cause fewer interference with other git clients.
2020-05-27 01:50:45 +09:00
Philip Wellnitz 59a5425597
Add timezone argument to date and fuzzy_time segments (#2097)
* add basic timezone support
2020-05-26 20:08:44 +09:00
Brendan da3ed7e720
Update to include default path for apt-get (#2095) 2020-05-24 17:56:47 +09:00
Philip Wellnitz c26938a980 add subprocess include back to setup.py 2020-05-20 20:32:35 +09:00
Philip Wellnitz 3dc174919d add version file 2020-05-20 20:26:24 +09:00
Philip Wellnitz 022d77dc1e
Update .travis.yml 2020-05-15 07:19:18 +09:00
Philip Wellnitz 1234aafa5d
Update setup.py 2020-05-15 05:33:27 +09:00
Philip Wellnitz 2bddcc9617
Update tips-and-tricks.rst 2020-04-23 21:42:10 +09:00
Ritiek Malhotra 7300197433
Select a D-Bus media player automatically (#2084)
Using the segment `powerline.segments.common.players.dbus_player` does
not work when a player has not been specified explicitly. In such a
case, with this PR, the segment will automatically choose the 1st media
player that implements "org.mpris.MediaPlayer2.Player".

This can be useful in displaying tracks from media players in powerline
without having to know the corresponding media player's properties
before-hand.

For example, this also works for displaying media tracks being played
on Google Chrome (since Chrome implements D-Bus interface) on YouTube,
etc.
2020-03-13 15:37:58 +09:00
Philip Wellnitz b0ea99430c
Update README.rst
Add basic config to readme
2020-02-04 21:12:16 +09:00
沈煜 d498f29261 Add vim plugin coc.nvim segments. (#2057)
* Add vim plugin coc.nvim segments.

* Add coc highlight group to colorschemes: default, solarized, solarizedlight.

* Fix coc highlight group in colorschemes: solarized, solarizedlight.

* Add document for segments.vim.plugin.coc.coc
2019-12-02 00:09:22 +09:00
Max Coplan 4b24e715dc Update Powerline for ipython >=7 (#2048)
* Update Powerline for ipython >=7

The method used for `since_5` does not work, but `since_7` does, however it is not documented.
I personally haven't found `c = get_config()` to be useful once you have generated the default `~/.ipython/profile_default/ipython_config.py` file.

Since `c.TerminalInteractiveShell.simple_prompt` is set to `False` by default, it's not worth mentioning it.  There's many other things that **can** break if you change the default config options too.  Additionally, `simple_prompt=True` doesn't fatally break anything, just make things less pretty.  So it'd be better to not have that, but mention if things don't look pretty to make sure they didn't change that default.

* Making it work on latest version

* spacing
2019-11-20 16:39:25 +09:00
Torstein Husebø 15c611ca46 doc: installation, fix typo (#2041)
* doc: installation, fix typo

* Fix a lot of documentation/comment typos
2019-11-03 04:29:20 +09:00
StopMotionCuber d6c06e002a Refactor tmux bindings (#2034)
* Replaced tmux display with proper formatting of things already available

* Removed client_pid as it is not available

* Also removed other occurrences of explicit `tmux execution`
2019-10-25 18:03:41 +09:00
Lucas Hosseini 5b3e401215 Update divider background color for tmux solarized (#1987)
Current settings leads to the following under tmux (on the right side):
2019-10-20 16:09:39 +09:00
Brendan Byers 43c1707206 Parse out letters in maj. version string (#2033) 2019-10-20 16:04:55 +09:00
Philip Wellnitz 589461e109
Fix #2015 (#2030)
* Added [BOM] (byte-order-mark) text in file encoding info

Like in vim-airline
See https://github.com/vim-airline/vim-airline/pull/992 and fdb74f549d

Ref #2015

* Test with no text added, to check travis results

* make bom a sepaate segment
2019-10-12 17:02:57 +09:00
BK f4dfe39112
Merge pull request #2028 from BlitzKraft/2027-use-command-v
Addressing #2027 gradually - use command -v
2019-10-11 21:25:56 +00:00
BK Bolisetty af557ae60c Reverting test_shells to use `which` 2019-10-11 15:15:28 -05:00