1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#1846
+user: Proxies\__CG__\App\Entity\User {#1899 …}
+magazine: App\Entity\Magazine {#289
+icon: Proxies\__CG__\App\Entity\Image {#270 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#297
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#261 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#257 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#246 …}
+entries: Doctrine\ORM\PersistentCollection {#204 …}
+posts: Doctrine\ORM\PersistentCollection {#162 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#224 …}
+bans: Doctrine\ORM\PersistentCollection {#141 …}
+reports: Doctrine\ORM\PersistentCollection {#127 …}
+badges: Doctrine\ORM\PersistentCollection {#105 …}
+logs: Doctrine\ORM\PersistentCollection {#95 …}
+awards: Doctrine\ORM\PersistentCollection {#84 …}
+categories: Doctrine\ORM\PersistentCollection {#71 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#298
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#292
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1911 …}
+slug: "I-remember-why-I-stopped-using-Geany-text-editor-comment"
+title: "I remember why I stopped using Geany text editor: comment toggling not as expected"
+url: null
+body: """
Since [Geany 2.0 has recently been released](https://www.geany.org/documentation/releasenotes/) I decided to switch back to it from Kate. I used to like Geany but it had some problems I couldn’t quite remember.\n
\n
So I quickly remembered the problem. I can’t figure out how to configure it to properly comment and comment blocks of code. Say you have the following in a file of type `shell script`:\n
\n
```\n
\n
<span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;"># a comment\n
</span><span style="color:#323232;">\t</span><span style="color:#62a35c;">echo </span><span style="color:#323232;">$variable\n
</span>\n
```\n
\n
I want to be able to select the above lines and use a keybinding to comment them out, so the result would be:\n
\n
```\n
\n
<span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">## a comment\n
</span><span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">#echo $variable\n
</span>\n
```\n
\n
`Edit` > `Format` > `Comment Lines` works as anticipated.\n
\n
But if I decide I want the lines back, how do that with the same keybinding? Using `Comment Lines` again adds a second level of comments, which is what I would expect (but not what I want):\n
\n
```\n
\n
<span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">### a comment\n
</span><span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">##echo $variable\n
</span>\n
```\n
\n
`Edit` > `Format` > `Toggle Line Commentation` works and the file returns to the original state. But if you reselect the original lines and run it again, you get\n
\n
```\n
\n
<span style="color:#323232;">\t a comment\n
</span><span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">#echo $variable\n
</span>\n
```\n
\n
Which would obviously lead to unpredictable results.\n
\n
There doesn’t seem to be a way for Geany to look at the block of text and decide whether it should be *commented* or *uncommented* and act accordingly.\n
\n
Kate editor has this functionality in `Selection` > `Toggle Comment` as do other editors I’ve encountered. If there is a mix of commented and uncommented text, it will *never* remove comments. It only removes comments when the entire block has commenting, and then it removes only 1 level of comments. Perfect. Of course if you really want to force the matter, there are the more aggressive `Comment` and `Uncomment`.\n
\n
Using the Geany `Toggle Line Commentation` leads to strange results, especially if you are starting with multiple levels of comments. Is there a way to duplicate the standard comment toggle in Geany? I tried to train myself to use `Comment Line(s)` and `Uncomment Lines(s)` instead of a single command but I just made a lot of mistakes where I didn’t realize there were multiple levels of comments or whatever and things became uncommented that shouldn’t have and it created a giant mess.\n
\n
I’m not a professional IT person, just someone who enjoys text files in their spare time. I do a lot of commenting and uncommenting trying to find out how things work. I thought it was a pretty normal thing to do. There must be a way to do it right?\n
\n
I recall digging around a bunch in the Geany repo/docs and it ended up that some problem I was having was a limitation of the Scintilla lexer and there wasn’t much Geany could do about it. But I am not sure if it was this issue or something else.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 9
+favouriteCount: 17
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1699840939 {#1861
date: 2023-11-13 03:02:19.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1949 …}
+votes: Doctrine\ORM\PersistentCollection {#1894 …}
+reports: Doctrine\ORM\PersistentCollection {#2402 …}
+favourites: Doctrine\ORM\PersistentCollection {#1386 …}
+notifications: Doctrine\ORM\PersistentCollection {#1370 …}
+badges: Doctrine\ORM\PersistentCollection {#1375 …}
+children: []
-id: 11968
-titleTs: "'comment':10 'editor':9 'expect':14 'geani':7 'rememb':2 'stop':5 'text':8 'toggl':11 'use':6"
-bodyTs: "'/documentation/releasenotes/)':10 '1':262 '2.0':3 'abl':78 'accord':215 'act':214 'add':128 'aggress':281 'anticip':107 'around':425 'back':15,116 'becam':359 'block':55,201,254 'bunch':427 'code':57 'command':335 'comment':52,54,71,89,98,103,125,133,146,153,177,210,224,238,246,250,256,265,282,290,304,313,324,354,393 'configur':48 'could':455 'couldn':31 'cours':268 'creat':367 'decid':12,111,205 'didn':346 'dig':424 'doesn':188 'duplic':310 'echo':72,99,147,178 'edit':101,149 'editor':217,228 'els':471 'encount':231 'end':434 'enjoy':381 'entir':253 'especi':295 'expect':139 'figur':44 'file':65,157,383 'find':398 'follow':62 'forc':274 'format':102,150 'function':220 'geani':2,24,196,287,316,430,454 'get':175 'giant':369 'instead':331 'issu':468 'kate':19,216 'keybind':87,123 'lead':183,291 'level':131,263,302,352 'lexer':448 'like':23 'limit':444 'line':83,104,115,126,152,169,289,325,329 'look':198 'lot':341,391 'm':372 'made':339 'matter':276 'mess':370 'mistak':343 'mix':236 'much':453 'multipl':301,351 'must':414 'never':244 'normal':409 'obvious':182 'origin':161,168 'perfect':266 'person':377 'pretti':408 'problem':29,40,438 'profession':375 'proper':51 'quick':37 'quit':33 'realiz':348 'realli':271 'recal':423 'recent':5 'releas':7 'rememb':34,38 'remov':245,249,260 'repo/docs':431 'reselect':166 'result':94,186,294 'return':158 'right':421 'run':171 'say':58 'scintilla':447 'script':69 'second':130 'seem':190 'select':80,222 'shell':68 'shouldn':362 'sinc':1 'singl':334 'someon':379 'someth':470 'spare':386 'standard':312 'start':299 'state':162 'strang':293 'sure':463 'switch':14 'text':203,241,382 'thing':358,401,410 'thought':404 'time':387 'toggl':151,223,288,314 'train':320 'tri':318,396 'type':67 'uncom':212,240,284,328,360,395 'unpredict':185 'use':21,85,124,285,323 'variabl':73,100,148,179 've':230 'want':75,113,144,272 'wasn':451 'way':194,308,417 'whatev':356 'whether':206 'work':105,154,402 'would':95,138,181 'www.geany.org':9 'www.geany.org/documentation/releasenotes/)':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1699773978
+visibility: "visible "
+apId: "https://beehaw.org/post/9470604"
+editedAt: null
+createdAt: DateTimeImmutable @1699704478 {#75
date: 2023-11-11 13:07:58.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#1846
+user: Proxies\__CG__\App\Entity\User {#1899 …}
+magazine: App\Entity\Magazine {#289
+icon: Proxies\__CG__\App\Entity\Image {#270 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#297
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#261 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#257 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#246 …}
+entries: Doctrine\ORM\PersistentCollection {#204 …}
+posts: Doctrine\ORM\PersistentCollection {#162 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#224 …}
+bans: Doctrine\ORM\PersistentCollection {#141 …}
+reports: Doctrine\ORM\PersistentCollection {#127 …}
+badges: Doctrine\ORM\PersistentCollection {#105 …}
+logs: Doctrine\ORM\PersistentCollection {#95 …}
+awards: Doctrine\ORM\PersistentCollection {#84 …}
+categories: Doctrine\ORM\PersistentCollection {#71 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#298
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#292
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1911 …}
+slug: "I-remember-why-I-stopped-using-Geany-text-editor-comment"
+title: "I remember why I stopped using Geany text editor: comment toggling not as expected"
+url: null
+body: """
Since [Geany 2.0 has recently been released](https://www.geany.org/documentation/releasenotes/) I decided to switch back to it from Kate. I used to like Geany but it had some problems I couldn’t quite remember.\n
\n
So I quickly remembered the problem. I can’t figure out how to configure it to properly comment and comment blocks of code. Say you have the following in a file of type `shell script`:\n
\n
```\n
\n
<span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;"># a comment\n
</span><span style="color:#323232;">\t</span><span style="color:#62a35c;">echo </span><span style="color:#323232;">$variable\n
</span>\n
```\n
\n
I want to be able to select the above lines and use a keybinding to comment them out, so the result would be:\n
\n
```\n
\n
<span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">## a comment\n
</span><span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">#echo $variable\n
</span>\n
```\n
\n
`Edit` > `Format` > `Comment Lines` works as anticipated.\n
\n
But if I decide I want the lines back, how do that with the same keybinding? Using `Comment Lines` again adds a second level of comments, which is what I would expect (but not what I want):\n
\n
```\n
\n
<span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">### a comment\n
</span><span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">##echo $variable\n
</span>\n
```\n
\n
`Edit` > `Format` > `Toggle Line Commentation` works and the file returns to the original state. But if you reselect the original lines and run it again, you get\n
\n
```\n
\n
<span style="color:#323232;">\t a comment\n
</span><span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">#echo $variable\n
</span>\n
```\n
\n
Which would obviously lead to unpredictable results.\n
\n
There doesn’t seem to be a way for Geany to look at the block of text and decide whether it should be *commented* or *uncommented* and act accordingly.\n
\n
Kate editor has this functionality in `Selection` > `Toggle Comment` as do other editors I’ve encountered. If there is a mix of commented and uncommented text, it will *never* remove comments. It only removes comments when the entire block has commenting, and then it removes only 1 level of comments. Perfect. Of course if you really want to force the matter, there are the more aggressive `Comment` and `Uncomment`.\n
\n
Using the Geany `Toggle Line Commentation` leads to strange results, especially if you are starting with multiple levels of comments. Is there a way to duplicate the standard comment toggle in Geany? I tried to train myself to use `Comment Line(s)` and `Uncomment Lines(s)` instead of a single command but I just made a lot of mistakes where I didn’t realize there were multiple levels of comments or whatever and things became uncommented that shouldn’t have and it created a giant mess.\n
\n
I’m not a professional IT person, just someone who enjoys text files in their spare time. I do a lot of commenting and uncommenting trying to find out how things work. I thought it was a pretty normal thing to do. There must be a way to do it right?\n
\n
I recall digging around a bunch in the Geany repo/docs and it ended up that some problem I was having was a limitation of the Scintilla lexer and there wasn’t much Geany could do about it. But I am not sure if it was this issue or something else.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 9
+favouriteCount: 17
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1699840939 {#1861
date: 2023-11-13 03:02:19.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1949 …}
+votes: Doctrine\ORM\PersistentCollection {#1894 …}
+reports: Doctrine\ORM\PersistentCollection {#2402 …}
+favourites: Doctrine\ORM\PersistentCollection {#1386 …}
+notifications: Doctrine\ORM\PersistentCollection {#1370 …}
+badges: Doctrine\ORM\PersistentCollection {#1375 …}
+children: []
-id: 11968
-titleTs: "'comment':10 'editor':9 'expect':14 'geani':7 'rememb':2 'stop':5 'text':8 'toggl':11 'use':6"
-bodyTs: "'/documentation/releasenotes/)':10 '1':262 '2.0':3 'abl':78 'accord':215 'act':214 'add':128 'aggress':281 'anticip':107 'around':425 'back':15,116 'becam':359 'block':55,201,254 'bunch':427 'code':57 'command':335 'comment':52,54,71,89,98,103,125,133,146,153,177,210,224,238,246,250,256,265,282,290,304,313,324,354,393 'configur':48 'could':455 'couldn':31 'cours':268 'creat':367 'decid':12,111,205 'didn':346 'dig':424 'doesn':188 'duplic':310 'echo':72,99,147,178 'edit':101,149 'editor':217,228 'els':471 'encount':231 'end':434 'enjoy':381 'entir':253 'especi':295 'expect':139 'figur':44 'file':65,157,383 'find':398 'follow':62 'forc':274 'format':102,150 'function':220 'geani':2,24,196,287,316,430,454 'get':175 'giant':369 'instead':331 'issu':468 'kate':19,216 'keybind':87,123 'lead':183,291 'level':131,263,302,352 'lexer':448 'like':23 'limit':444 'line':83,104,115,126,152,169,289,325,329 'look':198 'lot':341,391 'm':372 'made':339 'matter':276 'mess':370 'mistak':343 'mix':236 'much':453 'multipl':301,351 'must':414 'never':244 'normal':409 'obvious':182 'origin':161,168 'perfect':266 'person':377 'pretti':408 'problem':29,40,438 'profession':375 'proper':51 'quick':37 'quit':33 'realiz':348 'realli':271 'recal':423 'recent':5 'releas':7 'rememb':34,38 'remov':245,249,260 'repo/docs':431 'reselect':166 'result':94,186,294 'return':158 'right':421 'run':171 'say':58 'scintilla':447 'script':69 'second':130 'seem':190 'select':80,222 'shell':68 'shouldn':362 'sinc':1 'singl':334 'someon':379 'someth':470 'spare':386 'standard':312 'start':299 'state':162 'strang':293 'sure':463 'switch':14 'text':203,241,382 'thing':358,401,410 'thought':404 'time':387 'toggl':151,223,288,314 'train':320 'tri':318,396 'type':67 'uncom':212,240,284,328,360,395 'unpredict':185 'use':21,85,124,285,323 'variabl':73,100,148,179 've':230 'want':75,113,144,272 'wasn':451 'way':194,308,417 'whatev':356 'whether':206 'work':105,154,402 'would':95,138,181 'www.geany.org':9 'www.geany.org/documentation/releasenotes/)':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1699773978
+visibility: "visible "
+apId: "https://beehaw.org/post/9470604"
+editedAt: null
+createdAt: DateTimeImmutable @1699704478 {#75
date: 2023-11-11 13:07:58.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#1846
+user: Proxies\__CG__\App\Entity\User {#1899 …}
+magazine: App\Entity\Magazine {#289
+icon: Proxies\__CG__\App\Entity\Image {#270 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#297
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#261 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#257 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#246 …}
+entries: Doctrine\ORM\PersistentCollection {#204 …}
+posts: Doctrine\ORM\PersistentCollection {#162 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#224 …}
+bans: Doctrine\ORM\PersistentCollection {#141 …}
+reports: Doctrine\ORM\PersistentCollection {#127 …}
+badges: Doctrine\ORM\PersistentCollection {#105 …}
+logs: Doctrine\ORM\PersistentCollection {#95 …}
+awards: Doctrine\ORM\PersistentCollection {#84 …}
+categories: Doctrine\ORM\PersistentCollection {#71 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#298
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#292
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1911 …}
+slug: "I-remember-why-I-stopped-using-Geany-text-editor-comment"
+title: "I remember why I stopped using Geany text editor: comment toggling not as expected"
+url: null
+body: """
Since [Geany 2.0 has recently been released](https://www.geany.org/documentation/releasenotes/) I decided to switch back to it from Kate. I used to like Geany but it had some problems I couldn’t quite remember.\n
\n
So I quickly remembered the problem. I can’t figure out how to configure it to properly comment and comment blocks of code. Say you have the following in a file of type `shell script`:\n
\n
```\n
\n
<span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;"># a comment\n
</span><span style="color:#323232;">\t</span><span style="color:#62a35c;">echo </span><span style="color:#323232;">$variable\n
</span>\n
```\n
\n
I want to be able to select the above lines and use a keybinding to comment them out, so the result would be:\n
\n
```\n
\n
<span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">## a comment\n
</span><span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">#echo $variable\n
</span>\n
```\n
\n
`Edit` > `Format` > `Comment Lines` works as anticipated.\n
\n
But if I decide I want the lines back, how do that with the same keybinding? Using `Comment Lines` again adds a second level of comments, which is what I would expect (but not what I want):\n
\n
```\n
\n
<span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">### a comment\n
</span><span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">##echo $variable\n
</span>\n
```\n
\n
`Edit` > `Format` > `Toggle Line Commentation` works and the file returns to the original state. But if you reselect the original lines and run it again, you get\n
\n
```\n
\n
<span style="color:#323232;">\t a comment\n
</span><span style="color:#323232;">\t</span><span style="font-style:italic;color:#969896;">#echo $variable\n
</span>\n
```\n
\n
Which would obviously lead to unpredictable results.\n
\n
There doesn’t seem to be a way for Geany to look at the block of text and decide whether it should be *commented* or *uncommented* and act accordingly.\n
\n
Kate editor has this functionality in `Selection` > `Toggle Comment` as do other editors I’ve encountered. If there is a mix of commented and uncommented text, it will *never* remove comments. It only removes comments when the entire block has commenting, and then it removes only 1 level of comments. Perfect. Of course if you really want to force the matter, there are the more aggressive `Comment` and `Uncomment`.\n
\n
Using the Geany `Toggle Line Commentation` leads to strange results, especially if you are starting with multiple levels of comments. Is there a way to duplicate the standard comment toggle in Geany? I tried to train myself to use `Comment Line(s)` and `Uncomment Lines(s)` instead of a single command but I just made a lot of mistakes where I didn’t realize there were multiple levels of comments or whatever and things became uncommented that shouldn’t have and it created a giant mess.\n
\n
I’m not a professional IT person, just someone who enjoys text files in their spare time. I do a lot of commenting and uncommenting trying to find out how things work. I thought it was a pretty normal thing to do. There must be a way to do it right?\n
\n
I recall digging around a bunch in the Geany repo/docs and it ended up that some problem I was having was a limitation of the Scintilla lexer and there wasn’t much Geany could do about it. But I am not sure if it was this issue or something else.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 9
+favouriteCount: 17
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1699840939 {#1861
date: 2023-11-13 03:02:19.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1949 …}
+votes: Doctrine\ORM\PersistentCollection {#1894 …}
+reports: Doctrine\ORM\PersistentCollection {#2402 …}
+favourites: Doctrine\ORM\PersistentCollection {#1386 …}
+notifications: Doctrine\ORM\PersistentCollection {#1370 …}
+badges: Doctrine\ORM\PersistentCollection {#1375 …}
+children: []
-id: 11968
-titleTs: "'comment':10 'editor':9 'expect':14 'geani':7 'rememb':2 'stop':5 'text':8 'toggl':11 'use':6"
-bodyTs: "'/documentation/releasenotes/)':10 '1':262 '2.0':3 'abl':78 'accord':215 'act':214 'add':128 'aggress':281 'anticip':107 'around':425 'back':15,116 'becam':359 'block':55,201,254 'bunch':427 'code':57 'command':335 'comment':52,54,71,89,98,103,125,133,146,153,177,210,224,238,246,250,256,265,282,290,304,313,324,354,393 'configur':48 'could':455 'couldn':31 'cours':268 'creat':367 'decid':12,111,205 'didn':346 'dig':424 'doesn':188 'duplic':310 'echo':72,99,147,178 'edit':101,149 'editor':217,228 'els':471 'encount':231 'end':434 'enjoy':381 'entir':253 'especi':295 'expect':139 'figur':44 'file':65,157,383 'find':398 'follow':62 'forc':274 'format':102,150 'function':220 'geani':2,24,196,287,316,430,454 'get':175 'giant':369 'instead':331 'issu':468 'kate':19,216 'keybind':87,123 'lead':183,291 'level':131,263,302,352 'lexer':448 'like':23 'limit':444 'line':83,104,115,126,152,169,289,325,329 'look':198 'lot':341,391 'm':372 'made':339 'matter':276 'mess':370 'mistak':343 'mix':236 'much':453 'multipl':301,351 'must':414 'never':244 'normal':409 'obvious':182 'origin':161,168 'perfect':266 'person':377 'pretti':408 'problem':29,40,438 'profession':375 'proper':51 'quick':37 'quit':33 'realiz':348 'realli':271 'recal':423 'recent':5 'releas':7 'rememb':34,38 'remov':245,249,260 'repo/docs':431 'reselect':166 'result':94,186,294 'return':158 'right':421 'run':171 'say':58 'scintilla':447 'script':69 'second':130 'seem':190 'select':80,222 'shell':68 'shouldn':362 'sinc':1 'singl':334 'someon':379 'someth':470 'spare':386 'standard':312 'start':299 'state':162 'strang':293 'sure':463 'switch':14 'text':203,241,382 'thing':358,401,410 'thought':404 'time':387 'toggl':151,223,288,314 'train':320 'tri':318,396 'type':67 'uncom':212,240,284,328,360,395 'unpredict':185 'use':21,85,124,285,323 'variabl':73,100,148,179 've':230 'want':75,113,144,272 'wasn':451 'way':194,308,417 'whatev':356 'whether':206 'work':105,154,402 'would':95,138,181 'www.geany.org':9 'www.geany.org/documentation/releasenotes/)':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1699773978
+visibility: "visible "
+apId: "https://beehaw.org/post/9470604"
+editedAt: null
+createdAt: DateTimeImmutable @1699704478 {#75
date: 2023-11-11 13:07:58.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
edit
|
App\Entity\Magazine {#289
+icon: Proxies\__CG__\App\Entity\Image {#270 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#297
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#261 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#257 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#246 …}
+entries: Doctrine\ORM\PersistentCollection {#204 …}
+posts: Doctrine\ORM\PersistentCollection {#162 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#224 …}
+bans: Doctrine\ORM\PersistentCollection {#141 …}
+reports: Doctrine\ORM\PersistentCollection {#127 …}
+badges: Doctrine\ORM\PersistentCollection {#105 …}
+logs: Doctrine\ORM\PersistentCollection {#95 …}
+awards: Doctrine\ORM\PersistentCollection {#84 …}
+categories: Doctrine\ORM\PersistentCollection {#71 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#298
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#292
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|