Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to make ad hoc pickers #11

Closed
jcorum11 opened this issue Feb 10, 2023 · 8 comments
Closed

Add ability to make ad hoc pickers #11

jcorum11 opened this issue Feb 10, 2023 · 8 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jcorum11
Copy link

similar to this issue it would be awesome to run ad hoc pickers on the fly. Something like :lua require('easypick').adhoc('git diff develop --name-only') or (if possible) :Easypick adhoc git diff develop --name-only. It would make it a lot easier to test pickers before committing to using them, or throwing together a one off picker that I will never use again.

@axkirillov
Copy link
Owner

Thank you, very nice idea.

@axkirillov axkirillov added enhancement New feature or request good first issue Good for newcomers labels Feb 10, 2023
@axkirillov
Copy link
Owner

axkirillov commented May 22, 2023

Hi! Can you switch to the test branch to test it out? The command now is

require('easypick').one_off('git diff develop --name-only')

@jcorum11
Copy link
Author

Hi! Can you switch to the test branch to test it out? The command now is

require('easypick').one_off('git diff develop --name-only')

I'll look at this today!

@jcorum11
Copy link
Author

jcorum11 commented May 30, 2023

Hi! Can you switch to the test branch to test it out? The command now is

require('easypick').one_off('git diff develop --name-only')

is this thread a good place to communicate with you about this @axkirillov?

I ran the command inside a Neovim instance:

:lua require('easypick').one_off('git diff develop --name-only')

it didn't work, an error came up with:

E5108: Error executing lua [string ":lua"]:1: attempt to call field 'one_off' (a nil value)
stack traceback:
	[string ":lua"]:1: in main chunk

I checked that I was on the test branch by using LazyVim's builtin command :Lazy to check the last commit message for the commit that the package is on
image

I am using the package manager lazy.vim in a LazyVim setup. Here is what I did to use the test branch:

{
  "axkirillov/easypick.nvim",
  dependencies = "nvim-telescope/telescope.nvim",
  branch = "test",
},

I will keep looking into this but further guidance on how it should be used or help troubleshooting would be awesome.

Lots of respect and gratitude for adding this ❤️

@jcorum11
Copy link
Author

🤦‍♂️ it would help if I pulled the right branch...

I'll test more :)

@jcorum11
Copy link
Author

jcorum11 commented May 30, 2023

so far it works BEAUTIFULLY

:lua require('easypick').one_off('fd "actions.lua"')
image
:lua require('easypick').one_off('git diff develop --name-only')
image

@axkirillov
Copy link
Owner

@jcorum11 Glad that it works, I'll merge it into main then

@axkirillov
Copy link
Owner

Is now in the latest release https://github.com/axkirillov/easypick.nvim/releases/tag/v0.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants