Jan De Dobbeleer
cccb502989
refactor: do generic http request
2022-08-05 22:26:27 +02:00
eduardo
e307b2f706
feat(ipfy): add offline response
2022-08-05 12:59:55 +02:00
Jan De Dobbeleer
5f063e80f3
chore(lint): nolint should be written without leading space
2022-08-05 08:38:17 +02:00
Jan De Dobbeleer
35efd3cf00
feat: remove functions to enable prompt features
2022-08-05 08:38:17 +02:00
Jan De Dobbeleer
4d1f8f4ea0
refactor(bash): use \001 and \002 as decoration wrapper
2022-08-05 08:38:17 +02:00
Piotr Kalinowski
a2533c8f5b
fix(git): better cross-platform path resolution and tests
...
The simple filepath.IsAbs() is not enough on Windows, where the relative
path may start with a separator and should then be taken relative to the
volume name.
So, introduce resolveGitPath() helper function that will do the right
thing on both Windows and other systems. As a bonus, it returns paths
converted to slashes for ease of use with the rest of the git segment:
- Git for Windows uses only slashes.
- Slashes do work as a path separator on Windows anyway.
- Some tests in git segment still use (and rightfully so) slashes.
Add tests for resolveGitPath() on both types of systems and fix
TestEnableInWorktree using a system-dependent testing constant as a root
path.
2022-08-03 18:20:00 +02:00
Piotr Kalinowski
3895210ab3
fix(git): further fixes for submodule worktrees
...
filepath.Join() just concatenates paths. We have to check manually for
an absolute path and discard the first component to end up with the
correct path.
Also, fix the tests to demonstrate actual behaviour of git, not what
filepath.Join() was doing.
Additionally, note that on Windows git paths in gitdir use unix
separators, so search for `/worktrees/` instead of using system
separator, just like when processing all the other cases.
2022-08-03 18:20:00 +02:00
Jan De Dobbeleer
d678265607
chore(font): execute HTTP requests with context
2022-08-03 18:03:04 +02:00
Jan De Dobbeleer
47265b1bc1
fix(path): map Parent correctly
2022-08-03 18:03:04 +02:00
Jan De Dobbeleer
18e23f93a8
chore: rename platform variables
2022-08-03 18:03:04 +02:00
Jan De Dobbeleer
d5f87c81be
feat: store template cache and reuse for extra prompts
...
resolves #2605
2022-08-03 18:03:04 +02:00
Jan De Dobbeleer
79e76c8f3f
feat(path): get parent folder
2022-08-01 07:36:28 +02:00
Jan De Dobbeleer
9238f3adbf
feat(owm): correct data type for temperature
...
resolves #2591
2022-07-29 13:44:38 +02:00
lnu
69856f4464
fix(ansi): correct osc7 typo
...
extra \ removed
2022-07-29 09:49:27 +02:00
Jan De Dobbeleer
7d0ac0a930
fix(ansi): correct osc7 format
...
relates to #2515
2022-07-29 08:51:50 +02:00
L. Yeung
95b0f99906
fix(pwsh): prevent text from disappearing when a tooltip is rendered
2022-07-28 18:47:08 +02:00
L. Yeung
01164cfcc9
feat(tooltip): make .Code
property available
2022-07-28 13:27:47 +02:00
L. Yeung
0895aca72e
fix(pwsh): tweak the workaround for transient prompt
2022-07-28 12:47:01 +02:00
L. Yeung
6723cba4b2
refactor(pwsh): unify logic of generating prompts
2022-07-28 12:47:01 +02:00
Jan De Dobbeleer
c22d0d67be
fix(python): do not clear virtualenv in pyenv
...
resolves #2582
2022-07-28 08:04:37 +02:00
Jan De Dobbeleer
69ac542b42
refactor(shell): remove double log statement
...
relates to #2556
2022-07-27 07:37:36 +02:00
Jan De Dobbeleer
0bdad6fa95
fix(language): do not fail on first error
...
resolves #2569
2022-07-27 07:37:36 +02:00
Jan De Dobbeleer
fe2e5fd1d3
fix(osc7): correct format
...
relates to #2515
2022-07-26 08:34:01 +02:00
Jan De Dobbeleer
b5b35d1456
fix(python): do not stop at pyenv fail
...
adds more logging for #2569
2022-07-26 07:36:25 +02:00
L. Yeung
4eedd5aafa
fix(pwsh): clear suggestion list buffer when rendering transient
2022-07-25 20:59:42 +02:00
L. Yeung
c5e77f8790
fix(pwsh): run command corretly in Constrained Language mode
2022-07-25 06:46:00 +02:00
L. Yeung
767e8e7bcf
fix(pwsh): run command corretly in Constrained Language mode
2022-07-23 23:01:55 +02:00
Jan De Dobbeleer
729858377b
fix(withings): calculate total sleep time
2022-07-22 20:46:56 +02:00
Jan De Dobbeleer
7029013fd8
fix(withings): pick today's steps
2022-07-22 20:46:56 +02:00
Jan De Dobbeleer
8426f81e71
feat(executiontime): add galvestonms
...
resolves #2494
2022-07-21 13:43:02 +02:00
Jan De Dobbeleer
a4ef99acdb
feat(command): run script
...
resolves #2556
2022-07-21 10:47:16 +02:00
Jan De Dobbeleer
b34f8bbbf3
fix(withings): remove parallel execution
...
resolves #2551
2022-07-21 10:47:16 +02:00
Jan De Dobbeleer
70484b2e0c
fix(battery): fix Windows deadlock
...
resolves #2549
2022-07-20 17:08:43 +02:00
jedwillick
f37e5767c2
feat: add lua segment
2022-07-20 12:42:44 +02:00
jedwillick
4f48c2b0d1
feat(language): expose executable and allow different URL templates
2022-07-20 12:42:44 +02:00
Jan De Dobbeleer
2ec6b085fd
feat: withings segment
2022-07-20 07:40:51 +02:00
Jan De Dobbeleer
e5bf5db9c2
refactor: extract OAuth logic
2022-07-20 07:40:51 +02:00
Kushal-Chandar
3a8907c48e
feat(segment): added cmake segment
2022-07-15 13:38:34 +02:00
Jan De Dobbeleer
f2ccee6df6
fix(git): support submodules woth worktrees
...
resolves #2514
2022-07-14 20:18:45 +02:00
Jan De Dobbeleer
859fd0bbef
feat: add osc7 support
...
resolves #2515
2022-07-13 13:59:21 +02:00
Jan De Dobbeleer
375a901ca0
docs(withings): correct url
2022-07-12 20:53:09 +02:00
Jan De Dobbeleer
b4d82c6037
fix(template): provide template as name
2022-07-12 11:16:09 +02:00
Jan De Dobbeleer
aee16fd62c
fix(pwsh): validate on first char for debug
...
resolves #2502
2022-07-11 08:50:21 +02:00
Jan De Dobbeleer
27edeedeaf
fix(pwsh): debug prompt logic
...
resolves #2483
2022-07-10 13:34:18 +02:00
Michael Carman
43fee03fcb
feat: perl segment
2022-07-08 12:21:08 +02:00
Jan De Dobbeleer
24d2ef4767
feat(templates): advanced templates logic
...
resolves #2491
2022-07-08 12:09:22 +02:00
Jan De Dobbeleer
17857db340
feat: include battery lib
...
resolves #2479
2022-07-05 21:13:25 +02:00
L. Yeung
253c71e0cf
fix(fish): get correct error code
2022-07-05 08:50:37 +02:00
L. Yeung
65192cb065
fix(text): improve effective text width measuring
2022-07-03 19:01:33 +02:00
Jan De Dobbeleer
9f9b91e566
feat: deprecate offset properties
2022-07-03 11:00:30 +02:00
Floris Westerman
003382b6fd
fix(fish): clear after cursor for next prompt
...
resolves #2467
2022-07-02 08:51:39 +02:00
Floris Westerman
47ad3a3eb8
fix(fish): support abbreviations with tooltips
...
resolves #2469
2022-07-02 08:30:56 +02:00
Jan De Dobbeleer
b304fa30b5
feat(go): update dependencies
2022-07-01 21:48:09 +02:00
Jan De Dobbeleer
44bf72f730
fix(clipboard): replace clipboard with own fork
2022-07-01 20:16:55 +02:00
Jan De Dobbeleer
345ac2dae7
revert(pwsh): remove clear line hack
...
this reverts commit 75cf1b2005
.
2022-07-01 17:20:12 +02:00
Jan De Dobbeleer
37a4c3eb4e
feat(git): expose repo name
2022-07-01 13:19:06 +02:00
Jan De Dobbeleer
75cf1b2005
fix(pwsh): remove clear line hack
...
relates to #65
2022-07-01 08:27:56 +02:00
Jan De Dobbeleer
718ce22682
feat(git): set ignore-submodules flag
...
resolves #2455
2022-06-30 18:13:08 +02:00
Jan De Dobbeleer
dc851fcf53
feat(git): override untracked mode for all repo's
...
resolves #2454
2022-06-30 18:13:08 +02:00
Jan De Dobbeleer
0b0f119420
fix(template): allow literal dot word
2022-06-29 08:21:19 +02:00
Jan De Dobbeleer
f403db826f
feat: hide/break right aligned block on overflow
...
resolves #2442
2022-06-27 19:48:00 +02:00
Jan De Dobbeleer
d6b56de4c1
fix(pwsh): allow ConstrainedLanguage mode
...
relates to #2369
2022-06-25 20:10:18 +02:00
Jan De Dobbeleer
c59c876b87
fix(az): do not use env var for module
...
resolves #2436
2022-06-25 19:47:16 +02:00
Jan De Dobbeleer
a1a20e7c86
revert(pwsh): check history id instead of command line
...
this reverts commit e041c23fe1
resolves #2431
2022-06-22 08:18:59 +02:00
Jan De Dobbeleer
82b83d1fa4
feat: support 256 colors
...
resolves #2429
2022-06-22 08:18:59 +02:00
L. Yeung
cf8ce5e4dd
fix(pwsh): do not print transient prompt on a ReadLine parsing error
2022-06-21 06:07:50 +02:00
L. Yeung
6bd8921119
fix(cmd): escape double quote characters in a tip
2022-06-17 16:21:23 +02:00
Jan De Dobbeleer
d8b979ec3b
fix(bash): escape rprompt entirely
...
closes #2398
2022-06-16 19:38:12 +02:00
Jan De Dobbeleer
992add9a78
refactor: remove shell name from plain init
2022-06-16 19:38:12 +02:00
L. Yeung
820e28c85c
feat(cmd): align tooltip behaviors
2022-06-12 16:50:59 +02:00
Jan De Dobbeleer
ad12ad8ed2
feat(font): support URL's
...
resolves #2400
2022-06-10 14:10:45 +02:00
Jan De Dobbeleer
0dbe5f2aa4
fix(font): provide feedback when installing
...
relates to #2338
2022-06-10 14:10:45 +02:00
Jan De Dobbeleer
265790659c
fix(font): install correctly on Windows
2022-06-08 20:08:52 +02:00
Jan De Dobbeleer
c301864021
fix(font): remove --font
2022-06-07 07:52:35 +02:00
Jan De Dobbeleer
9b17c483a8
feat: install font directly
...
relates to #2338
2022-06-07 07:25:19 +02:00
Jan De Dobbeleer
b22dd21fa5
feat(winreg): additional value support
2022-06-07 07:09:32 +02:00
Jan De Dobbeleer
d1501a6211
feat: fossil segment
...
resolves #2373
2022-06-05 16:41:35 +02:00
L. Yeung
eb91390a46
fix(cli): correct help text for font
subcommand
2022-06-04 08:28:12 +02:00
Jan De Dobbeleer
0a46189556
fix(font): animate spinner
2022-06-03 22:29:49 +02:00
Jan De Dobbeleer
1fba9d563c
feat(cli): install font
...
relates to #2338
2022-06-03 16:36:00 +02:00
Jan De Dobbeleer
56987bf63a
fix(git): add untracked to status
...
relates to #2349
2022-05-30 20:15:22 +02:00
Jan De Dobbeleer
8bcbe02510
fix(git): add untracked
...
resolves #2349
2022-05-30 08:59:22 +02:00
Dave Moor
a9c1292d83
feat: add svn segment
2022-05-30 08:59:22 +02:00
Jan De Dobbeleer
42be6ab608
fix(accent): get correct accent color on Windows
2022-05-29 00:39:02 +02:00
evanfuture
a4e8bc1b60
feat: nx segment
2022-05-27 17:52:08 +02:00
L. Yeung
2230e2b695
fix(pwsh): avoid Test-Path
error on "no config"
2022-05-27 15:41:28 +02:00
Jan De Dobbeleer
e41304ae44
fix(properties): parse int64 correctly
...
resolves #2334
2022-05-27 10:28:31 +02:00
Jan De Dobbeleer
74b8a094e7
fix(pwsh): export outside functions as global
...
relates to #2318
2022-05-25 20:33:27 +02:00
Jan De Dobbeleer
b6ac0b3904
fix(cmd): expose error in transient prompt
...
resolves #2327
2022-05-25 13:17:18 +02:00
Jan De Dobbeleer
f3737cd91d
fix(pwsh): move functions before module declaration
...
relates to #2318
2022-05-25 06:12:08 +02:00
Jan De Dobbeleer
c729788676
feat: flutter segment
...
resolves #2310
2022-05-24 10:31:40 +02:00
Jan De Dobbeleer
7eff25cddc
fix(image): do not break on overline
...
relates to #2312
2022-05-23 08:29:57 +02:00
Ajay Mehta
9e13f1bba1
fix(pwsh): default stack count to 0
2022-05-22 22:08:21 +02:00
Jan De Dobbeleer
3279821d0b
feat(cli): get accent color
2022-05-22 19:31:15 +02:00
Jan De Dobbeleer
eb11aa9081
fix(pwsh): get stack count correctly
2022-05-22 12:08:49 +02:00
Jan De Dobbeleer
a51716d5ac
feat(windows): accent color
2022-05-22 10:36:10 +02:00
Jan De Dobbeleer
37dd466adf
feat: support overline
2022-05-20 21:59:41 +02:00
L. Yeung
b3b4f473b5
feat(zsh): trigger a tip check only on a space key input
2022-05-20 18:00:17 +02:00
L. Yeung
f84dac27e2
fix(pwsh): detect debug context correctly
2022-05-20 06:54:00 +02:00
Jan De Dobbeleer
467428f514
fix(zsh): reintroduce self_insert for tooltips
...
resolves #2289
2022-05-19 20:36:12 +02:00