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

Allow to use files for "Insert text" #173

Open
qlixed opened this issue Dec 3, 2021 · 8 comments
Open

Allow to use files for "Insert text" #173

qlixed opened this issue Dec 3, 2021 · 8 comments

Comments

@qlixed
Copy link

qlixed commented Dec 3, 2021

The Motivation

When we want to paste large text templates will be useful to allow to select a file that contains the template instead of copying the text in the current input.

The Solution

Allow an additional entry in the config pane for the insert text that allow us to select a file as an alternative for the manual text input. Probably will be a good idea to associate both entries with radio buttons that allow us to select the manual entry mode or the point-to-a-file mode.

The Alternatives

--

@Schneegans
Copy link
Owner

Thanks for the suggestion! I guess that this would be quite a edge use-case for just a few users. Therefore I would like to avoid cluttering the configuration interface for the "Insert Text" action even more. Here are two ideas which come to my mind:

  • We could make the text entry of the "Insert Text" action a multi-line entry to emphasize that more than a simple word could be pasted.
  • We could add a completely new action "Paste File Content" which would do what you suggest. Maybe this could even support data beyond text (e.g. paste image data in Gimp, etc.)

What do you think?

@Schneegans Schneegans added this to the Fly-Pie 13 milestone Dec 4, 2021
@Nickiel12
Copy link

I personally think the second option would be more natural.

@Schneegans
Copy link
Owner

Rescheduled to Fly-Pie 14, as Fly-Pie 13 will be released soon because it includes an important bug fix.

@Schneegans Schneegans modified the milestones: Fly-Pie 13, Fly-Pie 14 Jan 12, 2022
@Schneegans
Copy link
Owner

Rescheduled again as Fly-Pie 14 will focus on GNOME 42 support...

@Schneegans Schneegans modified the milestones: Fly-Pie 14, Fly-Pie 15 Feb 27, 2022
@qlixed
Copy link
Author

qlixed commented Mar 8, 2022

I like the idea of a new Config interface, but still I think that it will be more streamlined that just add the option to the current "paste text" option as basically we're pasting text, but from another source.
Anyway, if you prefer to left that as a complete separate thing I will try to see if I can code something and put a PR.

@Schneegans
Copy link
Owner

If you could contribute this, it would be totally awesome! There's the guide for creating new actions, but I guess that you can simply start by copying the existing action. Let me know if you have questions!

@Schneegans Schneegans modified the milestones: Fly-Pie 15, Fly-Pie 16 Mar 27, 2022
@Schneegans Schneegans removed this from the Fly-Pie 18 milestone Feb 28, 2023
@paulsen-it
Copy link

paulsen-it commented Jul 28, 2023

It would be very nice, If some macros are also allowed in "Insert Text". Like Date and Time.
For Example: "Posted at 13:05 o'clock on 28.07.2023"

@Schneegans
Copy link
Owner

It would be very nice, If some macros are also allowed in "Insert Text". Like Date and Time. For Example: "Posted at 13:05 o'clock on 28.07.2023"

We could even go one step further and add an action which pastes the output of a given shell command. Then you could create virtually anything! Pasting text files would be just as simple as cat /path/to/file.txt.

Currently, I do not have much time to work on Fly-Pie, as I focus on Kando instead. And I will definitely add this action type to Kando! But I would happily accept a pull request for Fly-Pie...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants