Skip to content

Commit

Permalink
test: verify that an underscore (_) can trigger blink completions
Browse files Browse the repository at this point in the history
Closes #126
  • Loading branch information
mikavilpas committed Feb 21, 2025
1 parent 61c7dcf commit d8d4945
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions integration-tests/cypress/e2e/blink-ripgrep/basic_spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,27 @@ describe("the basics", () => {
})
})

it("can use an underscore (_) ca be used to trigger blink completions", () => {
cy.visit("/")
cy.startNeovim({}).then(() => {
// wait until text on the start screen is visible
cy.contains("If you see this text, Neovim is ready!")
createFakeGitDirectoriesToLimitRipgrepScope()

// clear the current line and enter insert mode
cy.typeIntoTerminal("cc")
cy.typeIntoTerminal("foo")
// verify that a suggestion shows up, then cancel it with escape
cy.contains("foo_bar")
cy.typeIntoTerminal("{esc}")
cy.contains("foo_bar").should("not.exist")

// verify that the suggestion can be shown again by adding an underscore
cy.typeIntoTerminal("a_")
cy.contains("foo_bar")
})
})

it("does not search in ignore_paths", () => {
// By default, the paths ignored via git and ripgrep are also automatically
// ignored by blink-ripgrep.nvim, without any extra features (this is a
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
spaceroni-macaroni

foo_bar

0 comments on commit d8d4945

Please sign in to comment.