GlobalAutoCompletion
Download: yandex upload.ee
1. Enter text
2. Select text (Ctrl+Shift+Left)
3. Hotkey call (Add a call to this program using a hotkey)
4. The program will copy the selected text and offer to find it in some way (See the menu in the screenshot). Since I'm working with PureBasic files, I chose the "pb" file type. Up/Down arrows to move the cursor through the list.
5. I press Enter and I get a list box that matches the selected text.
6. I click on the list item and it is inserted into the active window. The selected text is replaced. If I selected "files", a code snippet will be inserted.
You can create your own lists and your own code snippets.
Place the folder with lists in ~/.config/GlobalAutoCompletion/.
Place the program in /usr/bin/.
You can make multiple hotkeys using different options (-s, -c, -f, -t) to get the list of items by skipping the selection menu.
You must have xdotool and xsel installed.
You can work with any type of file, but for this you need to create lists of functions yourself.
GlobalAutoCompletion (Linux (?))
Re: GlobalAutoCompletion (Linux (?))
You can also try my similar Windows projects:
Text Correction - there is a function to replace abbreviations to the right of the cursor using a hotkey. Detailed, Video.
NPP_AutoCompletion - Plugin for Notepad++ (Detailed)
Panel_Function - function list popup panel (screenshot, Detailed)
AutoCompletion - auto-completion by passing a word through the command line from the IDE (screenshot, Detailed)
Text Correction - there is a function to replace abbreviations to the right of the cursor using a hotkey. Detailed, Video.
NPP_AutoCompletion - Plugin for Notepad++ (Detailed)
Panel_Function - function list popup panel (screenshot, Detailed)
AutoCompletion - auto-completion by passing a word through the command line from the IDE (screenshot, Detailed)
Re: GlobalAutoCompletion (Linux (?))
I'm having trouble trying it.
can't read ReadMe, it's not English.
I selected text in the IDE and tried to run the tool from a terminal:My current Ubuntu 18.04 only supports up to glibc 2.27, so I can't try it in this form.
can't read ReadMe, it's not English.
I selected text in the IDE and tried to run the tool from a terminal:
Code: Select all
[user]~/Downloads/GlobalAutoCompletion>./GlobalAutoCompletion_x64_En_Arch
./GlobalAutoCompletion_x64_En_Arch: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./GlobalAutoCompletion_x64_En_Arch)
[user]~/Downloads/GlobalAutoCompletion>ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1.4) 2.27
[user]~/Downloads/GlobalAutoCompletion>arch
x86_64
Re: GlobalAutoCompletion (Linux (?))
#NULL
You need to open the keyboard section in the DE settings, open the hotkey section, add a hotkey, specify the executable file.
translate.google.com or Crow Translatecan't read ReadMe, it's not English.
You change the active IDE window to the terminal. What's your DE? Cinnamon, Mate, XFCE, KDE?I selected text in the IDE and tried to run the tool from a terminal:
You need to open the keyboard section in the DE settings, open the hotkey section, add a hotkey, specify the executable file.
Compile the file on your OS.`GLIBC_2.29'
Re: GlobalAutoCompletion (Linux (?))
Ok, I compiled it, installed xdotool and xsel. Now I can run it with a hotkey (xfce here), but I don't understand it yet
I select 'var' somewhere in the code and do my hotkey. After the message and options window I get an empty window with some 'var ...' results in the window title, but the actual gadget in the window is always empty.
I used the source GlobalAutoCompletionEn.pb
Code: Select all
var = 123
n = 2 + var + 2
Debug var
I used the source GlobalAutoCompletionEn.pb
Re: GlobalAutoCompletion (Linux (?))
#NULL
It is necessary to change the behavior, if nothing is found, then issue a message or quietly stop, depending on the setting in the ini-file. It makes no sense to show an empty list.
Is there a function that has "var" at the beginning of the name?I select 'var'
It is necessary to change the behavior, if nothing is found, then issue a message or quietly stop, depending on the setting in the ini-file. It makes no sense to show an empty list.
Re: GlobalAutoCompletion (Linux (?))
I thought it was a general autocompletion including variables etc. You should have started with a description of what it does
But if I select 'Event' or 'EventUser' in 'Procedure EventUser()' in GlobalAutoCompletionEn.pb then I still get an empty window.
But if I select 'Event' or 'EventUser' in 'Procedure EventUser()' in GlobalAutoCompletionEn.pb then I still get an empty window.
Re: GlobalAutoCompletion (Linux (?))
1. The program works in a browser, in any editor, so it initially does not know the object where it gets the text from and cannot get all the text in order to analyze it.
2. You can add any function names you like. For example, you have a module for working with sound, you can add its functions to the list (~/.config/GlobalAutoCompletion/pb/1.txt).
AutoCompletionIDE
Download: yandex upload.ee
This is a video ad for keyword auto-completion.
screenshot-Windows
Linux: screenshot1, Calque
Made individually for the IDE.
command line for the tool: -w:%WORD %CURSOR
the number at the end of the file indicates the search method.
The number of the list depends on the number of lst files.
The title indicates the search time, fast enough (4 ms).
____________________________________________
Updated AutoCompletionIDE.
Now works in Windows
Now works in AkelPad and Notepad++. In the ini-file you need to specify the class of the window, three parameters. Default PureBasic.
Added a field where you can edit the text you are looking for to find another text without closing the window.
I added a folder with English-language examples, previously there were only Russian comments.
Added 2 lists with WinAPI, you can choose which lists you don't need.
For Notepad++
AppData\Roaming\Notepad++\shortcuts.xml
For AkelPad menu item:
2. You can add any function names you like. For example, you have a module for working with sound, you can add its functions to the list (~/.config/GlobalAutoCompletion/pb/1.txt).
AutoCompletionIDE
Download: yandex upload.ee
This is a video ad for keyword auto-completion.
screenshot-Windows
Linux: screenshot1, Calque
Made individually for the IDE.
command line for the tool: -w:%WORD %CURSOR
the number at the end of the file indicates the search method.
The number of the list depends on the number of lst files.
The title indicates the search time, fast enough (4 ms).
____________________________________________
Updated AutoCompletionIDE.
Now works in Windows
Now works in AkelPad and Notepad++. In the ini-file you need to specify the class of the window, three parameters. Default PureBasic.
Added a field where you can edit the text you are looking for to find another text without closing the window.
I added a folder with English-language examples, previously there were only Russian comments.
Added 2 lists with WinAPI, you can choose which lists you don't need.
For Notepad++
AppData\Roaming\Notepad++\shortcuts.xml
Code: Select all
<Command name="AutoCompletionIDE" Ctrl="no" Alt="yes" Shift="no" Key="113">"$(NPP_DIRECTORY)\Tools\AutoCompletionIDE.exe" "-w:$(CURRENT_WORD)"</Command>
Code: Select all
"AutoCompletionIDE" Exec(`"%a\AkelFiles\Tools\AutoCompletionIDE\AutoCompletionIDE.exe"`, "-w:%d") Icon("%a\AkelFiles\Tools\AutoCompletionPB\AutoCompletionIDE.exe")
Last edited by AZJIO on Thu Mar 28, 2024 6:25 pm, edited 17 times in total.
Re: GlobalAutoCompletion (Linux (?))
Updates AutoCompletionIDE
Added by the menu called by right click (Open ini, LST, folder, and found in the clipboard). In Linux - menu at the list headers, in Windows - on the "Find" button.
Added a hint to the list headers about the number of items in the list.
Added by the menu called by right click (Open ini, LST, folder, and found in the clipboard). In Linux - menu at the list headers, in Windows - on the "Find" button.
Added a hint to the list headers about the number of items in the list.