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

Question - How can I get selected file list outside Chonky? #21

Closed
tomeraz opened this issue Jul 26, 2020 · 3 comments
Closed

Question - How can I get selected file list outside Chonky? #21

tomeraz opened this issue Jul 26, 2020 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tomeraz
Copy link

tomeraz commented Jul 26, 2020

Hi,

Handling a use case where I have to know which files are chosen, outside chonky.
Is there a callback, hook or another way that I can use to know which files are chosen, without calling a file action?
Is it possible to dispatch an event to chonky programatically using Javascript, without having the buttons appear in the toolbar?

@TimboKZ
Copy link
Owner

TimboKZ commented Jul 26, 2020

Hi, getting selections programmatically was a feature in v0.x, but it was not ported to v1.x yet.

Dispatching events programmatically, without adding buttons or actions, is not supported yet.

I am planning to work on both of these features (and some others) over the span of the next few weeks.

@TimboKZ TimboKZ added enhancement New feature or request help wanted Extra attention is needed labels Jul 26, 2020
@TimboKZ
Copy link
Owner

TimboKZ commented Jul 31, 2020

I have just released Chonky v1.1.0, which includes various ways of getting and setting the current file selection. You can see the relevant documentation here:
https://timbokz.github.io/Chonky/1.x/?path=/docs/basics-managing-file-selections--selections-example

Can you tell me, does that solve your problem? Or do you still need a programmatic way to dispatch file actions?

@tomeraz
Copy link
Author

tomeraz commented Aug 3, 2020

Thank you 🙏
We can use this to solve our problem. However we downgraded to 0.2.4 and it's doing the job we need well.

@TimboKZ TimboKZ closed this as completed Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants