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

I need to paste the content of an "external" file through the contextual action. #3254

Closed
u2andres opened this issue Aug 18, 2022 · 5 comments

Comments

@u2andres
Copy link

Hi, I'm using the contextual menu, and want to perform the followings task:

  • having a action like this : /xxxx/yyy/context_action.sh "%s" "%f"

  • where the 2ª parameter is an "external" file

  • MY GOAL is that the "content" of the file(%f) "replace" the "string" of the parameter %s in the actual Geany window.

  • IT IS LIKE a "copy/paste" where the "copy" is : the content from external file(%f)

  • and paste "over" the token defined by %s

Please I need to know where is the source that I have to modify.

Please ask me any doubts.
Thanxs & hugs,
Andrés

@elextr
Copy link
Member

elextr commented Aug 18, 2022

It looks more like you want to use a custom command which replaces the selection with the command output.

@u2andres
Copy link
Author

Hi @elextr ,
thanxs for your fast answer, I can use what you show me.
Can yout tell me where is the "custom command" source, so I can see how it work?.

Thanxs & hugs,
Andrés

@elextr
Copy link
Member

elextr commented Aug 19, 2022

The above links to the manual, you should not need the source to use it.

@u2andres
Copy link
Author

Ok @elextr ,
thanxs for your help.

Thanxs & hugs,
Andrés

@kugel-
Copy link
Member

kugel- commented Aug 27, 2022

Seems resolved

@kugel- kugel- closed this as completed Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants