Kaleb Elwert
940e10a691
Fix conditionals to use [[ and (( rather than [
This fixes a small issue in src/widgets.zsh which makes it so if you
alias [ to g[ (as is done in prezto if the gnu-utility module is loaded)
autosuggestions would fail.
The documentation for GNU test mentions that -o and -a should be avoided
if possible because it's not very clear. Also, with zsh and [[ -o
actually tests if an option is set, which makes this option even more
confusing.
há 7 anos
Eric Freese
0681a1c121
Remove flaky test that doesn't really matter that much
Seems like this would happen on some machines but not on others. Not
sure exactly what's going on, but this is such an edge case I'm just
going to remove the test.
há 7 anos
Eric Freese
9e110406fa
Add test for special characters with match_prev_cmd strategy
Github #247 and #258
há 7 anos
Eric Freese
83129dd796
Make asynchronous suggestions disabled by default
While they are still experimental
há 7 anos
Eric Freese
a2f0ffb122
Enabling suggestions should not fetch a suggestion if buffer is empty
há 7 anos
Eric Freese
7d4a1d9a4a
Add enable/disable/toggle widgets to disable suggestion functionality
[GitHub #219 ]
Intended to be helpful for folks using bracketed-paste-magic and other
widgets that use `zle -U`.
há 7 anos
Eric Freese
e1959d0f61
Put in a general fix for #219 - Handling input from `zle -U`
Depends on patch to ZSH from workers/40702:
http://www.zsh.org/mla/workers/2017/msg00414.html
há 7 anos
Eric Freese
c52c428793
Fix issues with widgets wrapped by other plugins
Puts in a better fix for #126 and related issues.
há 7 anos
Eric Freese
ea505b01e5
Add a spec for unlisted widgets fetching a new suggestion
há 7 anos
Eric Freese
502fb4a174
Make tmux_socket_name public so you can access easily from binding.pry
Can attach while tests are stopped with `tmux -L <socket_name> attach`
há 7 anos
Eric Freese
468b7403e9
Test should be passing block to RSpec wait_for
Fixes flaky test
há 7 anos
Eric Freese
c9a51e0c4c
Handle dashes at the beginning of commands
há 7 anos
Eric Freese
2cd99e64b7
Add a test for modifying widget list vars after sourcing plugin
há 7 anos
Eric Freese
c70d685d15
Clean up widget list spec
há 7 anos
Eric Freese
255359dbb8
Use `+=` to be a bit more true to the spec language
há 7 anos
Eric Freese
938144530c
Fix tests
há 7 anos
Eric Freese
c4bfd8e2c6
Need to prevent zpty feature detection from HUPing existing zptys
há 7 anos
Eric Freese
c959408305
Only wait a max of 2 seconds for content to match after clearing screen
há 7 anos
Eric Freese
ed8056c5e8
Lots of async changes
há 7 anos
Eric Freese
64e7ec5bf8
Rename internal term session method
há 7 anos
Eric Freese
98f926d53d
Clean up TerminalSession constructor a bit
há 7 anos
Eric Freese
51e8755634
TerminalSession methods return self to support chaining
há 7 anos
Eric Freese
5151adfe40
Make TerminalSession#clear block until the screen is cleared
há 7 anos
Eric Freese
c3425870f1
Wait for the terminal.clear to go through before continuing
Prevents some flakiness in tests
há 7 anos
Eric Freese
89dd69d517
Add pry gem for debugging support
há 7 anos
Eric Freese
2dbd261989
Allow configuring of zsh binary to run integration tests against
há 7 anos
Eric Freese
0305908adf
Revert `fc` usage in calculating suggestion
As far as I know, `fc` makes it impossible to tell whether history items
used an actual newline character or the string "\n". Pulling from the
`$history` array gives a more accurate representation of the actual
command that was run.
há 7 anos
Eric Freese
8e06a54b1c
Add test for string with "\n" in it
há 7 anos
Eric Freese
debbffc79a
Add rspec test around accepting suggestions
há 7 anos
Eric Freese
c22ab0e399
Implement suggestion integration tests in RSpec + tmux
há 7 anos
Eric Freese
07a6768fcb
Add TerminalSession helper for managing a tmux session
há 7 anos
Eric Freese
e6591d5de0
Add RSpec for high-level integration testing
há 7 anos