[Github-comments] Re: [geany/geany] Questions about Templates (Discussion #4382)

2025-09-05 Thread Skif-off via Github-comments
> I was not able to get these to work yet, still testing. Just add hotkey: any (3th) or replace Ctrl+N (4th). -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/discussions/4382#discussioncomment-14315481 You are receiving this because you are subscribed to this

[Github-comments] Re: [geany/geany-plugins] GeanyLua plugin: Lua function `string.format` does not work as expected with %q format specifier (Issue #1509)

2025-08-24 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1509) > string expected, got boolean The same error with Lua 5.1, 5.2, 5.3 (tested in ZeroBrane Studio). > I am running Geany 2.0 ... on Manjaro Linux. Manjaro Linux uses packages from Arch Linux, `geany-plugins` is built with `lua51` ([link](https:

[Github-comments] Re: [geany/geany-plugins] [GeanyLua Plugin] Lua script to add text to beginning and or end of selection (Issue #1478)

2025-08-21 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1478) > so I assume that this 'geany.wordchars` is applied on a per script basis, not > a global setting that affects everything in Geany, is this correct? `geany.wordchars` just allows to change the general/global Geany/Scintilla value for a specifi

[Github-comments] Re: [geany/geany] Questions about Templates (Discussion #4382)

2025-08-05 Thread Skif-off via Github-comments
Well, probably, my fourth name is the "GeanyLua's user"... Maybe something like 3.) See 7: ```lua -- (cross-platform) -- 2025.08.05 --[[ https://github.com/geany/geany/discussions/4382 ]] local sExt = ".py" local sTmp = geany.dirsep .. "templates" .. geany.dirsep .. "files" local sUser = geany.

[Github-comments] Re: [geany/geany-plugins] [GeanyLua Plugin] Lua script that removes characters from lines (Issue #1463)

2025-07-23 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1463) I just don't see the point in blowing up the topic, these are a couple of simple additions :) But I added (just in case) explanations for those who are not familiar with Lua or haven't understood the code. -- Reply to this email directly or vi

[Github-comments] Re: [geany/geany-plugins] [GeanyLua Plugin] Lua script that opens the open file dialog to a specified path (Issue #1491)

2025-07-23 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1491) For example, ```lua -- (~ cross-platform) -- 2025.07.23 --[[ https://github.com/geany/geany-plugins/issues/1491 ]] local sDirName = "~/.config/geany/plugins/geanylua" if string.sub(sDirName, 1, 2) == "~/" then sDirName = "$HOME/" .. string.sub

[Github-comments] Re: [geany/geany-plugins] [GeanyLua Plugin] Lua script that opens to a specific file (Issue #1490)

2025-07-23 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1490) For example, ```lua -- (~ cross-platform) -- 2025.07.23 --[[ https://github.com/geany/geany-plugins/issues/1490 ]] local sFN = "~/.bash_history" if string.sub(sFN, 1, 2) == "~/" then sFN = "$HOME/" .. string.sub(sFN, 3, -1) end sFN = string.gs

[Github-comments] Re: [geany/geany-plugins] [GeanyLua Plugin] Lua script to add text to beginning and or end of selection (Issue #1478)

2025-07-23 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1478) @advice2020 > This script was not designed for this but tried running with no selection in > a document with many lines. Adds "PREFIX " and " SUFFIX" to every line in > document :) It makes sense, doesn't it? :) > I was wondering would it be

[Github-comments] Re: [geany/geany-plugins] [GeanyLua Plugin] Lua script that removes characters from lines (Issue #1463)

2025-07-18 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1463) @advice2020, I'll try briefly :) Input dialog to prompt your number: ```lua local sNum = geany.input("Value:", 10) if sNum == nil then return nil end local iNum = tonumber(sNum, 10) if iNum == nil then return nil end ``` `iNum` is the number you n

[Github-comments] Re: [geany/geany-plugins] [GeanyLua Plugin] Lua script to add text to beginning and or end of selection (Issue #1478)

2025-07-10 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1478) Maybe something like ```lua -- (cross-platform) -- 2025.07.11 --[[ https://github.com/geany/geany-plugins/issues/1478 ]] local function StringSplit(sdata, sdelim) local ares = {} local n1, n2, n3, c = 1, 1, 1, 1 while true do n1, n2 = s

[Github-comments] Re: [geany/geany-plugins] [GeanyLua Plugin] Lua script that removes characters from lines (Issue #1463)

2025-07-06 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1463) UPD: Add `geany.input`. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/issues/1463#issuecomment-3042012737 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] Update NEWS for 2.1 (PR #1468)

2025-07-06 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1468) I'm sorry, I'm a little late (I see "merged 1 hour ago"). Thanks, GeanyLua changelog looks clear. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1468#issuecomment-3041841842 You are receiving th

[Github-comments] Re: [geany/geany-plugins] [GeanyLua Plugin] Lua script that removes characters from lines (Issue #1463)

2025-07-01 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1463) @advice2020, First of all, I think there is a more elegant solution :)) Secondly, characters can have different sizes (1 byte, 2 bytes, 3 bytes, and so on), so... 1) ```lua -- (cross-platform) -- 2025.07.01 --[[ https://github.com/geany/geany-plu

[Github-comments] Re: [geany/geany-plugins] GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. (PR #1397)

2025-06-21 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 484f8789a913f3cd43dac5391a6ffa9dfe86ae95 GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. Cosmetics (alignment). -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1397

[Github-comments] Re: [geany/geany-plugins] GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. (PR #1397)

2025-06-18 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 71f6692373cf174ee5b1ecf44f8978acf1d62611 GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. Cosmetics (alignment). -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1397

[Github-comments] Re: [geany/geany-plugins] GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. (PR #1397)

2025-06-17 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1397) @b4n, I don't think that makes sense. The new user will open the help and will see the new names. The old user will see the list of changes. Or the user will see an error (if it uses this function) with the line number and position in the line a

[Github-comments] Re: [geany/geany-plugins] GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. (PR #1397)

2025-06-16 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1397) @b4n, the commit message will be in the list of changes, I don't know what else to add. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1397#issuecomment-2975340008 You are receiving this becaus

[Github-comments] Re: [geany/geany-plugins] GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. (PR #1397)

2025-06-15 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. f1a54755ccc074aaf8ab4b549a80851db2141f4f GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. Cosmetics (alignment). -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1397

[Github-comments] Re: [geany/geany-plugins] GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. (PR #1397)

2025-05-29 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1397) Everything seems to be done. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1397#issuecomment-2921148162 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'comment' field to 'geany.fileinfo'; rename fields 'opener' and 'closer' to 'comment_open' and 'comment_close'. (PR #1397)

2025-05-29 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. e74c3a3598f93e6919834cd71ed694efa97c0101 GeanyLua: geany.fileinfo: Added a field for single-line comments; all 'comment' fields are renamed as in filetype definition files. Cosmetics (alignment). -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1397

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'comment' field to 'geany.fileinfo'; rename fields 'opener' and 'closer' to 'comment_open' and 'comment_close'. (PR #1397)

2025-05-29 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 8c567d31bdc106c409cf1f3b1c5452f29d77eeba GeanyLua: Add the 'comment' field to 'geany.fileinfo'; rename fields 'opener' and 'closer' to 'comment_open' and 'comment_close'. -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1397/files/9cc20c0aa4fb455364

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'comment' field to 'geany.fileinfo'; rename fields 'opener' and 'closer' to 'comment_open' and 'comment_close'. (PR #1397)

2025-05-27 Thread Skif-off via Github-comments
@Skif-off commented on this pull request. > @@ -321,8 +321,9 @@ static gint glspi_fileinfo(lua_State* L) } SetTableStr("type", FileTypeStr(name)); SetTableStr("desc", FileTypeStr(title)); - SetTableStr("opener", FileTypeStr(comment_open)); - SetTableStr("c

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'comment' field to 'geany.fileinfo' (PR #1397)

2025-04-13 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1397) - There are several examples of abbreviated names. - We can enter "desk", "ext" or "comm" faster than "description", "extension", "comment_open" or "comment_close". - I do not know about the source code, but users will have to open the help in a

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'comment' field to 'geany.fileinfo' (PR #1397)

2025-04-13 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 080a096542aac918c3d9e12551374f1af55c8dce GeanyLua: Add the 'comment' field to 'geany.fileinfo'; rename fields 'opener' and 'closer' to 'comment_open' and 'comment_close'. -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1397/files/880ced2060a3622653

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'comment' field to 'geany.fileinfo' (PR #1397)

2025-04-13 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1397) @xiota, what do you think about `comm` instead of `comment`? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1397#issuecomment-2799892051 You are receiving this because you are subscribed to this

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'single' field to 'geany.fileinfo' (PR #1397)

2025-04-12 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1397) `comment_open` and `comment_close` sound clearer, but they are longer (this is a bit unusual for fields). > If the plan is to eventually use the same names as Geany, should add all > three now Changes will be mentioned in the list of changes o

[Github-comments] Re: [geany/geany] Geanylua: how do you fetch (the current filetype's) value for 'comment_single', (the 'string' denoting a single line comment) ? (Discussion #4174)

2025-04-12 Thread Skif-off via Github-comments
[GeanyLua: Add the 'comment' field to 'geany.fileinfo' #1397](https://github.com/geany/geany-plugins/pull/1397). -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/discussions/4174#discussioncomment-12814231 You are receiving this because you are subscribed to t

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'single' field to 'geany.fileinfo' (PR #1397)

2025-04-12 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 880ced2060a3622653ca2c43635d1b3a28f04d79 CHG: geanylua-ref.html: Field descriptions. -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1397/files/8a9e5cafc3bc701ec4f07ebad8444ff68a44fab4..880ced2060a3622653ca2c43635d1b3a28f04d79 You are receiving this

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'single' field to 'geany.fileinfo' (PR #1397)

2025-04-11 Thread Skif-off via Github-comments
Skif-off left a comment (geany/geany-plugins#1397) Yes, sounds better. Fixed. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1397#issuecomment-2797668588 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'single' field to 'geany.fileinfo' (PR #1397)

2025-04-11 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 8a9e5cafc3bc701ec4f07ebad8444ff68a44fab4 GeanyLua: Add the 'comment' field to 'geany.fileinfo'. -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1397/files/c45fd91574a268417fc49cbd2923b55a2b0a9eb0..8a9e5cafc3bc701ec4f07ebad8444ff68a44fab4 You are rec

[Github-comments] Re: [geany/geany] Help with using a built binary (Discussion #4239)

2025-02-11 Thread Skif-off via Github-comments
In Linux operating systems, most applications/libraries are distributed as packages, which are archives that contain the pre-compiled binary files, dependency requirements and so on. In many cases, user can build package with the new version (if necessary) of the application. But it will take so

[Github-comments] Re: [geany/geany] Help with using a built binary (Discussion #4239)

2025-02-11 Thread Skif-off via Github-comments
@mikek88, alternatively, you can try to create Geany 2.0 packages (it's not very difficult). Or there may be third-party repositories. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/discussions/4239#discussioncomment-12146846 You are receiving this because y

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Add the 'single' field to 'geany.fileinfo' (PR #1397)

2025-01-07 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. c45fd91574a268417fc49cbd2923b55a2b0a9eb0 GeanyLua: Add the 'single' field to 'geany.fileinfo'. -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1397/files/80010b26a7de49c0ab843542bf684cca4fd820e8..c45fd91574a268417fc49cbd2923b55a2b0a9eb0 You are rece

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] - Static keyword find (Discussion #4171)

2025-01-01 Thread Skif-off via Github-comments
Case-sensitive search is usually faster and I added `matchcase` out of habit :) In your case, this option will not interfere, but if you want, you can use an empty value (i.e. `{}`) instead and `geany.find` will ignore the case of characters. If we try to simplify it as much as possible, we'll

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Add specified number of blank lines (Discussion #4091)

2025-01-01 Thread Skif-off via Github-comments
I found [SCI_SCROLLCARET](https://scintilla.org/ScintillaDoc.html#SCI_SCROLLCARET), try to add `geany.scintilla("SCI_SCROLLCARET")` to the end. Also I found [SCI_GOTOLINE](https://scintilla.org/ScintillaDoc.html#SCI_GOTOLINE), this way will require more changes. For example, [second script](h

[Github-comments] [geany/geany-plugins] GeanyLua: Add the 'single' field to 'geany.fileinfo' (PR #1397)

2024-12-30 Thread Skif-off via Github-comments
>From [discussion 4174](https://github.com/geany/geany/discussions/4174). It's really strange: we have information about multi-line comments, but no one-line comments. Let's fix this :) You can view, comment on, or merge this pull request online at: https://github.com/geany/geany-plugins/pull/

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] - Static keyword find (Discussion #4171)

2024-12-25 Thread Skif-off via Github-comments
You want to search from the current position, but specify "from the beginning of the file to the end of the file" :) Select text and try something like: forward ```lua local sFind = geany.selection() if sFind == "" then geany.message("Did you forget to select any text?") return end local iFi

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Change case tools (Discussion #4086)

2024-12-25 Thread Skif-off via Github-comments
`string.upper` and `string.lower` functions will work with Latin letters only, otherwise, they will return passed text as it is. It might be inconvenient, right? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/discussions/4086#discussioncomment-11664879 You a

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Add specified number of blank lines (Discussion #4091)

2024-12-25 Thread Skif-off via Github-comments
_ADD LINES TO BOTTOM OF DOCUMENT - Cursor at Bottom_ For example: ```lua local function GetEmptyLines(sLE, iLE) local sR = "" for i = 1, iLE do sR = sR .. sLE end return sR end local aEOL = {"\r\n", "\r", "\n"} local iEOL = geany.scintilla("SCI_GETEOLMODE") local sAdd = GetEmptyLines(aEOL[iE

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Add specified number of blank lines (Discussion #4091)

2024-12-20 Thread Skif-off via Github-comments
In theory: ```lua local function GetEmptyLines(sLE, iLE) local sR = "" for i = 1, iLE do sR = sR .. sLE end return sR end local aEOL = {"\r\n", "\r", "\n"} local iEOL = geany.scintilla("SCI_GETEOLMODE") local sAdd = GetEmptyLines(aEOL[iEOL + 1], 15) local iCurPos = geany.caret() local iL, i

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Change case tools (Discussion #4086)

2024-12-20 Thread Skif-off via Github-comments
Keep in mind that these methods will work with Latin letters only and it's not very convenient. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/discussions/4086#discussioncomment-11627699 You are receiving this because you are subscribed to this thread. Mess

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Can you run CL commands similar to Send to Custom Commands in Lua scripts (Discussion #4070)

2024-12-20 Thread Skif-off via Github-comments
Fixed. I wanted to use `geany.choose` because it would allow to choose from several commands, but then I remembered the problem with this function (it has already been fixed) and missed the variable name... :( > you mentioned `geany.choose`, I will look into this and see if it has any > benefit

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Can you run CL commands similar to Send to Custom Commands in Lua scripts (Discussion #4070)

2024-12-13 Thread Skif-off via Github-comments
Let's try to use a temporary file, other ways are not very clear to me yet. ```lua local aTemplate = 'sort -f "$TMPFILE"' local sTmpFile, sTmpStr, bFullText, sCommand local aFileInfo = geany.fileinfo() if aFileInfo.ext == nil then sTmpFile = os.tmpname() .. ".txt" else sTmpFile = os.tmpname()

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Add specified number of blank lines (Discussion #4091)

2024-12-13 Thread Skif-off via Github-comments
In theory: ```lua local function GetEmptyLines(sLE, iLE) local sR = "" for i = 1, iLE do sR = sR .. sLE end return sR end local aEOL = {"\r\n", "\r", "\n"} local iEOL = geany.scintilla("SCI_GETEOLMODE") local sAdd = GetEmptyLines(aEOL[iEOL + 1], 15) local iCurPos = geany.caret() local iL, i

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Change case tools (Discussion #4086)

2024-12-13 Thread Skif-off via Github-comments
Sorry, here I used ellipsis to just skip the extra text :) I meant, for example, "All Uppercase": ```lua local start, stop = geany.select() local s = geany.selection() if (s ~= nil) and (s ~= "") then geany.selection(string.upper(s)) geany.select(start, stop) end ``` and so on. -- Reply to t

[Github-comments] Re: [geany/geany] Keep cursor in same line when click on line number to select entire line (Discussion #4150)

2024-12-13 Thread Skif-off via Github-comments
> Triple mouse click? Yes same result for single, double and triple click. Single mouse click _over the text_ to set the text cursor to the position under the mouse cursor. Double-click will select the word under the cursor. Triple-click will select the line under the cursor. (And this works in a

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Can you run CL commands similar to Send to Custom Commands in Lua scripts (Discussion #4070)

2024-12-12 Thread Skif-off via Github-comments
> So Lua / GeanyLua plugin cannot run command line commands within Lua scripts? This is a wrong conclusion. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/discussions/4070#discussioncomment-11541680 You are receiving this because you are subscribed to this t

[Github-comments] Re: [geany/geany] Keep cursor in same line when click on line number to select entire line (Discussion #4150)

2024-12-12 Thread Skif-off via Github-comments
Does a triple mouse click work with the same result? > it ends up selecting that entire line, but then it places the cursor on the > next Just selecting the entire line also includes a line break character at its end. And the cursor is placed at the end of the selection, i.e. after this charact

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Fix geany.activate() (PR #1234)

2024-12-12 Thread Skif-off via Github-comments
@b4n, can you add this to the [2.1.0](https://github.com/geany/geany-plugins/milestone/17) milestone? I do not know when the new version of Geany is scheduled to be released, there is no alternative solution and it will be sad if all forget about this PR... :) -- Reply to this email directly o

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Add specified number of blank lines (Discussion #4091)

2024-12-04 Thread Skif-off via Github-comments
Maybe something like this ```lua local function GetEmptyLines(sLE, iLE) local sR = "" for i = 1, iLE do sR = sR .. sLE end return sR end local aEOL = {"\r\n", "\r", "\n"} local iEOL = geany.scintilla("SCI_GETEOLMODE") local sAdd = GetEmptyLines(aEOL[iEOL + 1], 15) local iCurPos = geany.care

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Change case tools (Discussion #4086)

2024-12-04 Thread Skif-off via Github-comments
> Would it be possible to have that content remain selected after the script is > applied? Yes, but "restore" instead of "remain", see `geany.select()`: ```lua local start, stop = geany.select() local s = geany.selection() ... geany.selection(...) geany.select(start, stop) end ``` > If can

[Github-comments] Re: [geany/geany] [GeanyLua Plugin] Change case tools (Discussion #4086)

2024-11-30 Thread Skif-off via Github-comments
If you use only letters of the Latin alphabet, then everything is very simple: ```lua local s = geany.selection() if (s ~= nil) and (s ~= "") then geany.selection(string.upper(s)) end ``` ```lua local s = geany.selection() if (s ~= nil) and (s ~= "") then geany.selection(string.lower(s)) end ``

[Github-comments] Re: [geany/geany-plugins] [Addons Plugin] - Keybinding that inserts divider separator lines (Issue #1384)

2024-11-22 Thread Skif-off via Github-comments
@advice2020, I just use the program and see the repositories from time to time. > The original script adds separator to the above line where the cursor is > located. The script moves the cursor to the beginning of the line and inserts the text and the corresponding line ending character(s). The

[Github-comments] Re: [geany/geany-plugins] [Addons Plugin] - Keybinding that inserts divider separator lines (Issue #1384)

2024-11-20 Thread Skif-off via Github-comments
@advice2020, you misspelled my nickname :) I didn't receive the notification, I saw it by accident. Maybe something like this (but I didn't check it) ```lua local aTypes = { {"Lua", ".lua", "--#"}, {"",".txt", "##"}, {"XM

[Github-comments] Re: [geany/geany] Any way to delete a lines content but not the line itself (Discussion #4047)

2024-11-20 Thread Skif-off via Github-comments
> Would it be possible/easy to copy that script and make a version that applies > a "select all” and then performs the content delete? "Select all" sounds like an unnecessary action, let's just try to replace the text ```lua local iLines = geany.height() local iEOL = geany.scintilla("SCI_GETEOLM

[Github-comments] Re: [geany/geany] Assign more than hotkey to the same action (Discussion #4018)

2024-11-20 Thread Skif-off via Github-comments
> where did you find the `"NOTEBOOK_SWITCHTABRIGHT"` actions name? In the plugin's source code, [glspi_keycmd.h](https://github.com/geany/geany-plugins/blob/master/geanylua/glspi_keycmd.h) is mentioned in the description of the plugin's functions (see `docs/geanylua-ref.html`). -- Reply to th

[Github-comments] Re: [geany/geany] Way to allow for two different comment out methods for Lua scripts (Discussion #3997)

2024-11-15 Thread Skif-off via Github-comments
> I tried a program a while ago that I was surprised offered this feature. Name? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/discussions/3997#discussioncomment-11261998 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Any way to delete a lines content but not the line itself (Discussion #4047)

2024-11-14 Thread Skif-off via Github-comments
This should work fine in any case ```lua local start, stop local n1, n2 = geany.select() if n1 > n2 then start, stop = n2, n1 else start, stop = n1, n2 end local line, column = geany.rowcol(start) start = geany.scintilla("SCI_POSITIONFROMLINE", line - 1) line, column = geany.rowcol(stop) stop =

[Github-comments] Re: [geany/geany] Any way to delete a lines content but not the line itself (Discussion #4047)

2024-11-14 Thread Skif-off via Github-comments
Maybe GeanyLua and something like ```lua local sel = geany.selection() if (sel ~= nil) and (sel ~= "") then sel = string.gsub(sel, "[^\r\n]", "") geany.selection(sel) end ``` ? But the lines must be selected in full. If the lines are not fully selected or we need to clear one line under the c

[Github-comments] Re: [geany/geany] Assign more than hotkey to the same action (Discussion #4018)

2024-10-30 Thread Skif-off via Github-comments
I'm not sure, but it seems you can try a workaround with the [GeanyLua](https://github.com/geany/geany-plugins/tree/master/geanylua) plugin (see `docs/geanylua-keys.html`). Something like `SwitchToRightDocument.lua` (with your example): ```lua geany.keycmd("NOTEBOOK_SWITCHTABRIGHT") ``` -- Rep

[Github-comments] Re: [geany/geany] Way to allow for two different comment out methods for Lua scripts (Discussion #3997)

2024-10-25 Thread Skif-off via Github-comments
> I found the `filetypes.lua` file ... So it is set for single / multiple lines If I understand correctly, this file describes what symbols and words to use for parsing and highlighting code. And "Comment line(s)" & "Uncomment line(s)" functions (line by line) are just a nice addition. (+ Edit >

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Fix geany.activate() (PR #1234)

2024-10-25 Thread Skif-off via Github-comments
Any news? In fact, the plugin is broken, because one of its functions is not working (maybe this is not the main function, but then what is the main function? :))). -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1234#issuecomment-2435675472 You

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Fix geany.activate() (PR #1234)

2024-10-24 Thread Skif-off via Github-comments
@xiota I meant `geany.activate()`, this function is still broken in upstream. > I'm waiting for someone to review and commit. Yes, I understand, I just thought that an extra reminder in notifications would remind contributors once again about the unresolved issue. And I hope I wasn't too annoyi

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Fix geany.activate() (PR #1234)

2024-10-24 Thread Skif-off via Github-comments
> You've tested it after the rebase? Hmm... I thought you tested it. Joke :)) I am not a contributor, so my voice has little weight, but just in case I compiled and tested it 20 minutes ago: works fime, I didn't find any problems. -- Reply to this email directly or view it on GitHub: https://gi

[Github-comments] Re: [geany/geany-plugins] FIX: GeanyLua: 'Choose' dialog size/appearance (b4n's patch) (PR #1376)

2024-10-07 Thread Skif-off via Github-comments
Removed. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1376#issuecomment-2397262592 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] FIX: GeanyLua: 'Choose' dialog size/appearance (b4n's patch) (PR #1376)

2024-10-07 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. a35ba125d69f168eac654545fcf2f909954e74ec FIX: GeanyLua: 'Choose' dialog size/appearance (b4n's patch from issues/690) -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1376/files/efa4c252694be9e096034f94c09bad6f6de2fb9f..a35ba125d69f168eac654545fcf2f9

[Github-comments] Re: [geany/geany-plugins] FIX: GeanyLua: 'Choose' dialog size/appearance (b4n's patch) (PR #1376)

2024-10-07 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. efa4c252694be9e096034f94c09bad6f6de2fb9f FIX: GeanyLua: 'Choose' dialog size/appearance (b4n's patch from issues/690) -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1376/files/02461735720c269a2f96272c48a05c08e2895536..efa4c252694be9e096034f94c09bad

[Github-comments] [geany/geany-plugins] FIX: GeanyLua: 'Choose' dialog size/appearance (b4n's patch) (PR #1376)

2024-10-05 Thread Skif-off via Github-comments
See issues [690](https://github.com/geany/geany-plugins/issues/690), [1374](https://github.com/geany/geany-plugins/issues/1374). You can view, comment on, or merge this pull request online at: https://github.com/geany/geany-plugins/pull/1376 -- Commit Summary -- * FIX: GeanyLua: 'Choose' di

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Fix geany.activate() (PR #1234)

2024-09-29 Thread Skif-off via Github-comments
Forgive my curiosity :) Why not ```c if (tab_idx >= 0) { if (tab_idx != gtk_notebook_get_current_page(NOTEBOOK)) { gtk_notebook_set_current_page(NOTEBOOK, tab_idx); } } ``` ? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugi

[Github-comments] Re: [geany/geany-plugins] [Geanylua] geany.choose doesn't list all files (Issue #1374)

2024-09-29 Thread Skif-off via Github-comments
@Johnmcenroyy, how many files? I haven't noticed any such problems yet. (I use the patch from [Issue 690](https://github.com/geany/geany-plugins/issues/690), but I'm not sure it matters.) P.S. But `geany.activate` has [problem](https://github.com/geany/geany-plugins/pull/1234). -- Reply to th

[Github-comments] Re: [geany/geany-plugins] GeanyLua: Support for LuaJIT and Lua 5.1-5.4 (PR #1238)

2023-10-09 Thread Skif-off via Github-comments
@techee In fact, there are few changes (I don't understand why changes not related to GeanyLua are lumped together) and these versions of Lua will no longer be different. So theoretically, support will not be required for a long time. -- Reply to this email directly or view it on GitHub: https

[Github-comments] Re: [geany/geany-plugins] Feature request HTML Characters plugin (Issue #1250)

2023-06-01 Thread Skif-off via Github-comments
Sorry, to generate the final `aentities` table from the list of entities, I wrote a script, but made a ridiculous mistake in it. The script in my comment has been updated. @elextr the package search for Debian or Arch Linux is more friendly and each page contains all the necessary information a

[Github-comments] Re: [geany/geany-plugins] Feature request HTML Characters plugin (Issue #1250)

2023-05-31 Thread Skif-off via Github-comments
@hg2581, how did you install Geany? Just `sudo yum install geany`? In this case try to run: ``` sudo yum update sudo yum install geany-plugins-geanylua ``` P.S. Finding packages for Fedora or CentOS is... hm... some kind of magic and a bad erotic dream. -- Reply to this email directly or view

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2023-04-13 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 44611e609c173549450d5d8dd75104ed95ac809f As in 5298f51 -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/54324efdee3621f0b47b0840b70a73136a97333f..44611e609c173549450d5d8dd75104ed95ac809f You are receiving this because you are subscribed to this thr

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2023-04-06 Thread Skif-off via Github-comments
@Skif-off commented on this pull request. > + {'g', tm_tag_undef_t}, + {'l', tm_tag_undef_t}, I just wanted to add minimal guaranteed working AutoIt support and don't know all the ins and outs of how Geany works. And didn't want to bloat the list of symbols (maybe in the future if an

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2023-03-30 Thread Skif-off via Github-comments
> But if scopes are supported, then it should be mentioned inside > `tm_parser_has_full_scope()`. Done. To be honest, I don't see the difference between `TRUE` and `FALSE` :) ![2023-03-30](https://user-images.githubusercontent.com/6333198/228874594-c34ea718-ae54-446a-b283-e2062808fe8a.png) --

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2023-03-30 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. e7225418b69f70d55119ef4f979ab1c767f92f99 Add TM_PARSER_AUTOIT to tm_parser_has_full_scope() -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/8ff16fed4d1c19d11fb51bb8e43dda4b8987d8d8..e7225418b69f70d55119ef4f979ab1c767f92f99 You are receiving this

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2023-03-27 Thread Skif-off via Github-comments
> by just having a look at the parser (and not knowing the language), it seems > that the parser supports scopes (i.e. nesting one tag inside other tag). > ... > it seems that you can nest one function inside another It seems the language does not support such constructs. Any part of code can be

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2023-03-27 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. c598c9ead6fd919d8ef7e68840e717adef8d917f Improve some comments in filetypes.autoit -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/b7ccf84891f4653528acf60398da7326713b6f18..c598c9ead6fd919d8ef7e68840e717adef8d917f You are receiving this because y

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2023-03-24 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. b7ccf84891f4653528acf60398da7326713b6f18 Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/aaaed345031a08c1bcd774e7078a45d2b960..b7ccf84891f4653528acf60398da7326713b6f18 You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-19 Thread Skif-off via Github-comments
@elextr , @techee , thanks! Now works fine. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/1752#issuecomment-1358966314 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-19 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. aaaed345031a08c1bcd774e7078a45d2b960 Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/d136e5189be1f69bb00a9a760d1857ba01e60b41..aaaed345031a08c1bcd774e7078a45d2b960 You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-19 Thread Skif-off via Github-comments
@elextr , interesting, `simple.html.tags`, for example, contents the same characters, but without error... I will check manually, maybe just disable testing. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/1752#issuecomment-1358937866 You are receiving

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-19 Thread Skif-off via Github-comments
@techee , yes, I figured it out, I found your commits in upstream: I replaced `tm_tag_member_t` with `tm_tag_undef_t` and updated the `simple.au3.tags` file. but again I got an [error](https://github.com/geany/geany/actions/runs/3733542779/jobs/6334467745) (but no details now). -- Reply to

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-19 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. d136e5189be1f69bb00a9a760d1857ba01e60b41 Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/695a7af6b169dcaf0ea9441303344e60224fb9dc..d136e5189be1f69bb00a9a760d1857ba01e60b41 You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-19 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 695a7af6b169dcaf0ea9441303344e60224fb9dc Return back -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/bc4d65dd1a3d84da7e69f02701bfc3134a85fdb8..695a7af6b169dcaf0ea9441303344e60224fb9dc You are receiving this because you are subscribed to this threa

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-19 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. bc4d65dd1a3d84da7e69f02701bfc3134a85fdb8 Test with 'tm_tag_undef_t' -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/51901737a23dc410bcf01bf9140f234b83edab44..bc4d65dd1a3d84da7e69f02701bfc3134a85fdb8 You are receiving this because you are subscribe

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-19 Thread Skif-off via Github-comments
I took a quick look the list of commits and replaced `tm_tag_member_t` with `tm_tag_undef_t` (I tried to remember why I used `tm_tag_member_t` but couldn't): fail. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/1752#issuecomment-1357624098 You are rece

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-19 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 51901737a23dc410bcf01bf9140f234b83edab44 Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/1bf4df7b9f1ee6adf9e11b622f47c4732432d4f9..51901737a23dc410bcf01bf9140f234b83edab44 You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-17 Thread Skif-off via Github-comments
Parser and lexer are current versions from upstreams (and both have not been updated for a long time). I'm sorry, right now I don't understand what the problem is :) ctags/parsers/autoit.c: ```c static roleDefinition AutoItIncludeRoles [] = { { true, "system", "system include" },

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-17 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 1bf4df7b9f1ee6adf9e11b622f47c4732432d4f9 Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/6b6034ce7009cfa4f4506456f613a49302591dd8..1bf4df7b9f1ee6adf9e11b622f47c4732432d4f9 You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-17 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 6b6034ce7009cfa4f4506456f613a49302591dd8 TMP, will be squashed later -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/b0502bf24a83fc474177a9ecc5b0dbdae2035dfa..6b6034ce7009cfa4f4506456f613a49302591dd8 You are receiving this because you are subscrib

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-17 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. b0502bf24a83fc474177a9ecc5b0dbdae2035dfa Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/e2881605d6b93a1b59580080f47d4ce1c48bcaa4..b0502bf24a83fc474177a9ecc5b0dbdae2035dfa You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-17 Thread Skif-off via Github-comments
[/jobs/6309415770](https://github.com/geany/geany/actions/runs/3720132501/jobs/6309415770): What does > (process:10108): Tagmanager-WARNING **: 12:59:46.979: Not all tag types > mapped to symbol tree groups for AutoIt mean? Maybe just drop the test when Meson is used? -- Reply to this email d

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-17 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. e2881605d6b93a1b59580080f47d4ce1c48bcaa4 Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/458af8ec125c90a5e37a7298ecfe71994f0adbf7..e2881605d6b93a1b59580080f47d4ce1c48bcaa4 You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-17 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 458af8ec125c90a5e37a7298ecfe71994f0adbf7 Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/9d138427b276ab049261f967afaf05e90422912d..458af8ec125c90a5e37a7298ecfe71994f0adbf7 You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-17 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 9d138427b276ab049261f967afaf05e90422912d Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/a14388d2044647c1d397d953c1836f0beb2c6401..9d138427b276ab049261f967afaf05e90422912d You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-17 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. a14388d2044647c1d397d953c1836f0beb2c6401 Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/3c784cbd593a40695cc689594d032669b33b432a..a14388d2044647c1d397d953c1836f0beb2c6401 You are receivi

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-11 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. 7ef0ef6b80f15632610f4c6fed60c2c548c67ca4 FIX build -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/a368f098fd44324102035bed439a5991b24cbe73..7ef0ef6b80f15632610f4c6fed60c2c548c67ca4 You are receiving this because you are subscribed to this thread.

[Github-comments] Re: [geany/geany] Add AutoIt syntax highlighting and Ctags parser for AutoIt (#1752)

2022-12-03 Thread Skif-off via Github-comments
@Skif-off pushed 1 commit. a368f098fd44324102035bed439a5991b24cbe73 Add AutoIt syntax highlighting and Ctags parser for AutoIt -- View it on GitHub: https://github.com/geany/geany/pull/1752/files/f127e406077ae20a05fb60682ad2652f62e00d21..a368f098fd44324102035bed439a5991b24cbe73 You are receivi

  1   2   >