-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
feat: add an optional second parameter to trigger extrakto with a spe… #118
Conversation
…cific filter temporarily
Thanks for your PR! I like your idea but could you change the implementation to pass the filter along instead of temporarily changing the option? For example tmux allows you to pass an env. variable to the new process:
You could pass along |
I will have a look! |
bb04d08
to
1795559
Compare
I think your proposal is WAY more elegant than what I did. Please have a look at how I implemented it this time @laktak |
The previous implementation of this functionallity temporary replaced the @extrakto_filter_order and restored the original value when finished. This is a much more elegant solution
1795559
to
64bc530
Compare
Looking good! Just one thing - please change We also have a new branch (https://github.com/laktak/extrakto/tree/python-posix) if you are interested, but I can update that one later. |
I made it lowercase
Is this a long term thing or are you planning on merging this soon? |
Thank you! :)
Depends on how stable it is but I'd rather switch to it soon. |
This allow us to trigger
extrakto
with a specific filter in mind.For example running
open.sh 0 url
will open with theurl
filter (and only that one):Thanks to the
restore_original()
function, our settings forextrakto
will remain the same.This opens the possibility of having custom key-bindings like:
To trigger
extracto
with our needed filter in mind :-)