Here are some changes to lineoperations; adding selection support.
If a selection is made in the file, the line operation will be applied to the lines within the selection, rather than the whole file.
Like usual, I'm open to hear any suggestions/improvements.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/378
-- Commit Summary --
* lineoperations: combined similar code
* lineoperations: added selection support
* lineoperations: removed unnecessary parameters
* lineoperations: added selection to documentation
* lineoperations: added some ui changes
* lineoperations: minor formatting
-- File Changes --
M lineoperations/ChangeLog (6)
M lineoperations/README (14)
M lineoperations/src/linefunctions.c (340)
M lineoperations/src/linefunctions.h (28)
M lineoperations/src/lineoperations.c (237)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/378.patchhttps://github.com/geany/geany-plugins/pull/378.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/378
A lot of words are separated using underscore in source codes and other text. Please add that to the list of characters recognized as is_word_sep
static gboolean is_word_sep(gunichar c)
{
return g_unichar_isspace(c) || g_unichar_ispunct(c);
}
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/496
We remove the underscore character temporarily from the wordchars
to make Scintilla split words on underscore.
After splitting the current line into words, we add the underscore again
to the document's wordchars setting if it was in before.
Fixes #496.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/512
-- Commit Summary --
* SpellCheck: Treat underscore as word seperator
* SpellCheck: Reset wordchars only if we modified it before
-- File Changes --
M spellcheck/src/speller.c (29)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/512.patchhttps://github.com/geany/geany-plugins/pull/512.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/512
When I get the user input and try to print it concatenated with other strings, the statement is printed out with the added string at the end showing up at the very beginning and cutting off words at the beginning. When I wrote the same exact code in IDLE, the print statement is perfectly fine.
![image](https://cloud.githubusercontent.com/assets/21274031/21480617/c65648c4-cb2c-11e6-9095-424ef9f6a822.png)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1349