Alexey-T / CudaText

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

Plugin Snippet - select multiple snippets and resize screen Snippets Menu #5776

Open FranciscoBomfim opened 6 days ago

FranciscoBomfim commented 6 days ago

• Good evening everyone. • I use the magnificent CudaText a lot and in many ways. • Now, with Alexey's gratifying help, the Snippets plugin has greatly increased the possibilities of use, several words in the filter, for me, who has thousands of tags (snippets) to insert in the various files I work on. • I would like to ask Alexey for one more favor. 1) Enlarge the Snippets menu window vertically. (larger display of filtered tags - Snippets filter menu) 2) When you click TAB in the displayed list, insert the selected Snippet into the text and the Snippets Menu remains open on the screen so that you can choose other tags and after clicking ESC exit the Snippets Menu. • My list of Snippets exceeds 4,000 to categorize several lines of many text bases. • The excellent Snippets plugin, greatly improved with Alexey's help, is also very well managed by the lovely CudaText. • Sincere thanks to Alexey. • Thank you for your attention.

Alexey-T commented 5 days ago
  1. One of "...listbox..." options in user config allows to change width/height of command palette. Snippets dlg must obey that option. It is solution for you.
  2. Currently not possible to close menu dialogs by tab key. What you can do, is assign the "alias" for your snippets and then tab key can call snippet if you typed the alias before. It is written in the wiki page "cudatext plugins".
FranciscoBomfim commented 5 days ago

Good morning! Thank you for your attention. Snippets Menu -> select multiple options from the list Thank you very much.

FranciscoBomfim commented 5 days ago

Bom dia! Obrigado pela atenção. Menu Snippets -> selecionar várias opções da lista muito obrigado.

Good morning! Thank you for your attention. Snippets Menu -> select multiple options from the list Thank you very much.

Em seg., 11 de nov. de 2024 às 06:48, Alexey T. @.***> escreveu:

  1. One of "...listbox..." options in user config allows to change width/height of command palette. Snippets dlg must obey that option. It is solution for you.
  2. Currently not possible to close menu dialogs by tab key. What you can do, is assign the "alias" for your snippets and then tab key can call snippet if you typed the alias before. It is written in the wiki page "cudatext plugins".

— Reply to this email directly, view it on GitHub https://github.com/Alexey-T/CudaText/issues/5776#issuecomment-2467689333, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQVOUJZFIWEPRTAHF7ODCZT2AB4PFAVCNFSM6AAAAABRQZWRDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRXGY4DSMZTGM . You are receiving this because you authored the thread.Message ID: @.***>

Alexey-T commented 5 days ago

What do you mean? See my reply above.

FranciscoBomfim commented 5 days ago

summary request. selecting multiple items from the menu snippets list would solve my problem. thanks for your attention.

Alexey-T commented 5 days ago

Maybe i can add reaction to Alt+enter in snippets menu. Instead of tab key. I will think..

FranciscoBomfim commented 5 days ago

• Thank you very much. • Best regards. • I like CudaText more and more. • My snippets: snippets.json -> 256Kb (2,632 titles) • Used to categorize several groups in some .txt files with more than 350,000,000 lines in total. • Some lines receive several categorizations: • Name: José da Silva • Tags: • ²electronics technician • ²accounting technician • ²treasurer • ²financial manager • ²sales manager • ²postal reimbursement • ²personnel department assistant

• muito obrigado. • forte abraço. • cada vez mais, gosto do CudaText. • minhas snippets: snippets.json -> 256Kb (2.632 títulos) • utilizadas para categorizar diversos grupos em alguns arquivos.txt com mais de 350.000.000 de linhas no total. • algumas linhas recebem várias categorizações: • Name: José da Silva • Tags: • ²técnico em eletrônica • ²técnico em contabilidade • ²tesoureiro • ²gerente financeiro • ²gerente comercial • ²reembolso postal • ²aux depto pessoal

FranciscoBomfim commented 5 days ago

• CudaText 1.219.0.2 works efficiently and quickly on one of the files with 12,722,015 lines and 590MB • CudaText very quickly performs complex RegEx searches on this file with answers in seconds! • Search • Find InFiles • Find In Files4

• CudaText 1.219.0.2 trabalha com eficiência e rapidez um dos arquivos com 12.722.015 linhas e 590MB • CudaText executa com muita rapidez pesquisas RegEx complexas neste arquivo com respostas em segundos! • Search • Find InFiles • Find In Files4

FranciscoBomfim commented 5 days ago

• I use CudaText, KateEditor and KEditWin32 (creation and processing of large databases with millions of lines). • CudaText is excellent: ( Function List, Snippets and Search) • KateEditor (Search) • KEditWin2 (processing) I have been using Kedit since 1984 • 1978 - 2024 ( Basic... AppleSoft... CPM-80... DBaseIII... Clipper... LotusNotes... Python) • I still like programming. Sinclair, AppleII Plus, TRS-80 Model III... they helped me a lot in developing several programs.

Alexey-T commented 5 days ago

I will see what i can do with Alt+enter in snippets dlg. Maybe this week.

Thanks.

Alexey-T commented 5 days ago

By age, you are one generation older than me.

FranciscoBomfim commented 5 days ago

• Thank you very much! • 72 years old. • Amateur radio operator (py1ana) since 1965 • https://www.qrzcq.com/call/PY1ANA

Alexey-T commented 3 days ago

try this updated plugin. plugin.Snippets.zip to install: open zip file in Cud via File/Open.

2024.11.14

FranciscoBomfim commented 2 days ago

Prezado Alexey Boa tarde! Saúde!. Muito obrigado pelo atendimento. Ficou muito bom. É possível manter o filtro?

aceite um forte abraço. @.*** Rio de Janeiro.Brazil.22750-008

Dear Alexey Good afternoon! Cheers!. Thank you very much for your service. It was very good. Is it possible to keep the filter?

Best regards. @.*** Rio de Janeiro.Brazil.22750-008

[image: image.png]

Em qui., 14 de nov. de 2024 às 01:45, Alexey T. @.***> escreveu:

try this updated plugin. plugin.Snippets.zip https://github.com/user-attachments/files/17742927/plugin.Snippets.zip to install: open zip file in Cud via File/Open.

2024.11.14

  • add: Ctrl+Enter (and Ctrl+mouse_click) in snippets dialog makes dialog appear again after snippet insertion

— Reply to this email directly, view it on GitHub https://github.com/Alexey-T/CudaText/issues/5776#issuecomment-2475405247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQVOUJ3IQ4BWCLW6UUAZNS32AQTFJAVCNFSM6AAAAABRQZWRDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGQYDKMRUG4 . You are receiving this because you authored the thread.Message ID: @.***>

FranciscoBomfim commented 2 days ago

Snippets_Alexey

FranciscoBomfim commented 2 days ago

• minha lista de snippets é muito grande; 3.309 itens. • será ótimo se puder manter o filtro para selecionar outros itens da mesma seleção. • muito obrigado pela atenção e atendimento. • aceite um forte abraço. • CudaText. Excelente!

• my list of snippets is very large; 3,309 items. • it would be great if you could keep the filter to select other items from the same selection. • thank you very much for your attention and service. • accept a big hug. • CudaText. Excellent!

FranciscoBomfim commented 2 days ago

• se for possível pesquisar também pelo alias, será muito, muito ótimo! -> (snippet + " " + alias). ficará excelente!

• if it is possible to search by alias as well, that would be very, very great! -> (snippet + " " + alias). will be excellent! ex: •2017

image

FranciscoBomfim commented 2 days ago

• utilizo as snippets (tags) para inserções em vários locais de diversos arquivos. • CudaText hoje está ficando o melhor de todos para meus trabalhos. • Além do excelente Function List (Code Tree, super categorizado, class...def...def...def...filtro)), excelente Find e Find In Files, Find In Files4, agora também as Snippets poderosas! • Parabéns!. equipe CudaText. • muito obrigado, Alexey.

• CudaText is now the best for my work. • In addition to the excellent Function List (Code Tree, super categorized, class...def...def...def... filter)), excellent Find , Find In Files and Find In Files4, now also powerful Snippets! • Congratulations! CudaText team. • Thank you very much, Alexey.

Alexey-T commented 1 day ago

Adding of alias to menu captions of dlg_menu is feasible. I will try to add it.

Keeping filter is not yet possible. But i have idea how to improve Cud so it will always keep filter if dlg_menu is called second time with the same items. Will try to add it. Later, maybe this or next week.

FranciscoBomfim commented 1 day ago

Dear Alexey, thank you very much for your attention and service. The filter involving the snippet name and the alias helps a lot. I don't know if it is possible to filter using, for example, two words. Ex: "maintenance" "•4921". (snippet name (maintenance) and service code (•4921)). To you and your family, health and a good weekend. Receive a big hug and sincere thanks.

prezado Alexey, muito obrigado por tua atenção e atendimento. o filtro envolvendo nome da snippet e o alias ajuda muito. não sei se é possível filtrar através de, por exemplo, duas palavras. ex: "manut" "•4921". (nome snippet(manut) e código de serviço(•4921)). a você e família, saúde e um bom fim de semana. receba um forte abraço e sinceros agradecimentos.

FranciscoBomfim commented 1 day ago

Alexey, CudaText & Find In Files me permite sucesso neste tipo de pesquisa. isto é muito bom!

Alexey, CudaText & Find In Files allows me to succeed in this type of research. This is very good! image

Alexey-T commented 1 day ago

Regex- instead of alfabet, you can write

[a-z]

FranciscoBomfim commented 1 day ago

image

a base Geany.z possui 12.722.015 linhas e a resposta foi rápida!. isto é muito bom! tenho bases com 56.000.000 de linhas e a resposta também é boa! para um certo trabalho, eu utilizo códigos (ex: [lyU€¢¤0J<€ïüó] na pesquisa.

The Geany.z database has 12,722,015 lines and the response was fast! This is very good! I have databases with 56,000,000 lines and the response is also good! For a certain job, I use codes (ex: [lyU€¢¤0J<€ïüó] in the search.

I transform 100 different words into 100 different codes in the entire text. (replace). then I search the codes in each line (x occurrences). works very well in CudaText RegEx.

the section to be searched in each line starts with "•" and ends with "¦"

Alexey-T commented 1 day ago

You use windows, right?

FranciscoBomfim commented 1 day ago

image