Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.44k stars 168 forks source link

new plugin to test - Codeium #5063

Closed veksha closed 1 year ago

veksha commented 1 year ago

AI Autocomplete using Codeium (free Copilot alternative) https://github.com/veksha/cuda_codeium

tested on Windows / Linux need someone to test on Mac

Alexey-T commented 1 year ago

Works good (linux). Tested on two Fibonacci examples. Great.

Alexey-T commented 1 year ago

Published in addons.

veksha commented 1 year ago

question. if i make a new fix can you detect it automatically and publish updated version? PS: just made some fix. EDIT: and another one.

Alexey-T commented 1 year ago

I subscribed to plugin repo. if you make a 'release' I will see it on GH. or simple write here.

veksha commented 1 year ago

2 сейчас только построчно код вставляется через get completions? т.е. чтобы выдалась готовая функция нужно n-раз вызвать?

в vscode всё точно так же, просто там нужно n-раз нажимать клавишу TAB после появления виртуального текста (автоматически появляется). в Куде виртуального текста пока нет, поэтому сделан выпадающий список. автоматически его показывать, думаю, не комильфо.

1 планируется чат?

я пока не знаю как его сделать и где посмотреть пример. но желательно конечно сделать.

JairoMartinezA commented 1 year ago

In MacOS:

image

Alexey-T commented 1 year ago

Jairo, my bad. I missed that support for macos-nnnnnnnn string. adding it.

Alexey-T commented 1 year ago

Fixed. but you need to recompile the Cud. to test the Codeium, just delete the line os=..... in the plugin's install.inf.

@veksha Hot fix is needed! remove items macos-nnnnnnn in install.inf and replace them with one word macos.

JairoMartinezA commented 1 year ago

Alex, @veksha

What steps do I need to follow in order to create a new Cuda Text application?

I'm just working with the following two files:

image

Am I missing something?

Alexey-T commented 1 year ago
  1. Compile the binary (using IDE or using cudatext_up)
  2. to prepare the distro, run these in 'setup' dir:
    z_mac_arm.command
    z_mac_intel.command
veksha commented 1 year ago

@veksha Hot fix is needed! remove items macos-nnnnnnn in install.inf and replace them with one word macos

@Alexey-T fixed: https://github.com/veksha/cuda_codeium/commit/40a089189042944d597e45df5094e9ee923d663a

Alexey-T commented 1 year ago

Updated.

JairoMartinezA commented 1 year ago

👓

image

image

AMAZING!!!

veksha commented 1 year ago

so it works? thank you for testing, @JairoMartinezA ! Chat is coming too..

veksha commented 1 year ago

@Alexey-T hi. pushed new changes. new command: Chat.... can you test it?

veksha commented 1 year ago

pushed small fixes..

fixed: -> EDIT: when asking to tell long story -> memory leak, MemoryError exception.

Alexey-T commented 1 year ago

Chat works. I got wrong answer :)

Screenshot from 2023-05-15 13-29-17

JairoMartinezA commented 1 year ago
  1. Compile the binary (using IDE or using cudatext_up)
  2. to prepare the distro, run these in 'setup' dir:
z_mac_arm.command
z_mac_intel.command

Alex,

What script do you use to create/update this file?

image

The /CudaText/setup/mac_update_resources.sh has not some new plugins paths in py folder.

Alexey-T commented 1 year ago

CudaText.app is a folder. macOS uses foldername.app as app file. It shows it like a file in Finder.

I filled it by hands.

Alexey-T commented 1 year ago

Chat can write python functions:

Screenshot from 2023-05-15 23-34-04

veksha commented 1 year ago

this function works for you?

Alexey-T commented 1 year ago

I did not try it - we have ready function.

veksha commented 1 year ago

thanks for testing, people.