AnySoftKeyboard / AnySoftKeyboard

Android (f/w 2.1+) on screen keyboard for multiple languages.
http://anysoftkeyboard.github.io/
Apache License 2.0
2.81k stars 815 forks source link

Add clipboard history/manager #3450

Open GoRaN909 opened 1 year ago

GoRaN909 commented 1 year ago

Hi @menny thank you for developing this amazing keyboard i was used this keyboard app many years in 2016 till 2020 but because some bugs and unfixed error i switched to Swiftkey now i wants to return back to this keyboard app and i have a suggestion if you implement clipboard history/manager like the Microsoft SwifKeyBoard has been implemented many years ago could you please add that must needed feature to AnySoftKeyboard it will be the number one of FOSS apps if we have clipboard history & manager like SwiftKey or GBoard.

clipboard-main Screenshot_20180313-133714

tsilvs commented 1 year ago

There is already utility keyboard with clipboard history. It could be opened with a gesture only though. By default it's swipe up from space bar.

ghost commented 5 months ago

@tsilvs are you sure it has clipboard history? I can find clipboard action manager only

tsilvs commented 5 months ago

@kik-btaski Yes. One of the options is the history.

image85 IMG_20240121_164711

ghost commented 5 months ago

Oh 😲 Thanks @tsilvs for the info Then i think this issue is stale

ghost commented 5 months ago

BTW the clipboard history automatically clears after some time. @tsilvs is there a setting for clipboard history clear?

ghost commented 5 months ago

Let say there is clipboard history saved. When you launch the keyboard settings app and close it, clipboard history automatically clears.

tsilvs commented 5 months ago

@kik-btaski

BTW the clipboard history automatically clears after some time.

Didn't encounter such behavior. There's even an issue #3612 about adding a button for manual clearing.

is there a setting for clipboard history clear?

Sorry, don't know that, didn't find anything like that in settings. And they are structured in a pretty confusing way.

ghost commented 5 months ago

In my case, clipboard clears when either switching keyboard or open keyboard setting app then closing it

ghost commented 5 months ago

Here in code, the clipboard entries are saved in variable only rather than any persistent object

DaRealNOX commented 5 months ago

Hi all. I think I have to link there https://github.com/AnySoftKeyboard/AnySoftKeyboard/issues/3873#issuecomment-1918551193 for some good reason.

fedora-mahdi commented 5 months ago

Hi all !

Delighted to stumble on this thread 😃 : I've been looking for a FOSS history clipboard embedded in AnySoftKeyboard for so long. I may need help though .

@kik-btaski 👍 . @tsilvs 👍

Could you please detail @tsilvs HOW you can display those advanced options in your previous comment

When I swipe up from space bar it just shrinks my keyboard. Screenshot_2024-02-03-20-03-25-224

I get easily lost in AnySoftKeyboard Options and settings... Could you please help me also there... ?

DaRealNOX commented 5 months ago

@fedora-mahdi

Hi! To use the clipboard or its history, you would have to choose a different keyboard layout that shows the clipboard button.

Here is some illustrated information (don't be surprised, my ASK is in German, but the ASK settings can be found in exactly the same place in other languages)...

1.) This is what my keyboard layout looks like at the moment and you can already use the following function in your current one...

0_mine

2.) Then you should go to the "language" tab first to activate keyboards and languages...

1_language

3.) There select the desired language in conjunction with the desired layout (for more to download scroll down to the bottom)...

2_keyboard_#languages-and-layouts

4.) ...but only in the F-Droid shop you can find suitable things for ASK to download. ;)

3_more-keyboards-in-f-droid

4_download-keyboard-languages

5.) After all the settings (you may need some time for the previous steps), you can now choose the design of your chosen keyboard (menu tab: User interface > Select and configure keyboard, as shown below), where you can also scroll all the way down to download from the F-Droid shop. But I don't think there's anything really necessary there at the moment...

5_user-interface

6_choose-design

fedora-mahdi commented 5 months ago

@DaRealNOX : Vielen Dank ! Thank you so much : 👍 So this is how I got it done:

fedora-mahdi commented 5 months ago

What about tie the ASK clipboard icon with a more elaborate clipboard manager like FOSS Xclipper (with pinned clippings, on the fly editions, history...)?

tsilvs commented 5 months ago

@fedora-mahdi

elaborate clipboard manager with pinned clippings, on the fly editions, history

For now all of those are missing features, you could make a feature request. Would be best to provide UI mockups too.

Offtopic: Nice nickname. Dune reference?

tsilvs commented 5 months ago

To be even more specific, for anyone who might need this later, here's how you enable clipboard icon:

  1. Open AnySoft Keyboard settings app
  2. Go to "UI" tab
  3. Tap "Tweaks and more" option
  4. Tap "Common top generic row" option
  5. Choose "Quick text editing"
  6. Apply, exit and enjoy!
fedora-mahdi commented 5 months ago

@tsilvs :

elaborate clipboard manager with pinned clippings, on the fly editions, history

For now all of those are missing features, you could make a feature request. Would be best to provide UI mockups too.

sorry I would know how to request a feature. But ASK and XClipper being to FOSS softwares, wouldn't it be simplier that the clipboard icon key just links to open XClipper?

That way:

Is it possible ?

tsilvs commented 5 months ago

@fedora-mahdi

wouldn't it be simplier

Not necessarily, depends on multitude of factors.

Overall it's an additional external dependency with no standard ways of interaction.

AFAIK there's no proper Android system API to handle such call. Requires more research, e.g.:

Is it possible?

Might be, but it requires more expertise in Android development that I already have.