Branch: refs/heads/master
Author: LukeLR <LukeLR(a)github.com>
Committer: LukeLR <LukeLR(a)github.com>
Date: Sat, 08 Feb 2020 15:01:47 UTC
Commit: f615e672e852861a6ecb032a5bced2af04e78f78
https://github.com/geany/geany-plugins/commit/f615e672e852861a6ecb032a5bced…
Log Message:
-----------
latex: added feature: indent line in new environment (fixes #950)
Modified Paths:
--------------
latex/src/latex.c
Modified: latex/src/latex.c
12 lines changed, 11 insertions(+), 1 deletions(-)
===================================================================
@@ -604,6 +604,7 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *object, GeanyEditor *edi
gint line_len = sci_get_line_length(sci, line);
gint i, start;
gint indent;
+ GeanyIndentPrefs* indent_prefs = editor_get_indent_prefs(editor);
/* get the line */
buf = sci_get_line(sci, line);
@@ -683,6 +684,15 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *object, GeanyEditor *edi
editor_insert_text_block(editor, construct, pos,
1, -1, TRUE);
/* ... and setting the indention */
+ /* If user pressed carriage return, we end up in a new line. This line
+ * should be indented one level further than the previous indentation */
+ sci_set_line_indentation(sci, sci_get_current_line(sci),
+ indent + indent_prefs->width);
+ /* Set the cursor position to the end of the new line we're in which
+ * has just been indented */
+ sci_set_current_position(sci, sci_get_line_end_position(sci, sci_get_current_line(sci)), 1);
+ /* Indentation of the \end{} command, which is now in the next line,
+ * should be the same as the previous indentation */
sci_set_line_indentation(sci, sci_get_current_line(sci) + 1,
indent);
g_free(construct);
@@ -727,7 +737,7 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *object, GeanyEditor *edi
/* Else we want to stop once we found a space,
* some closing braces somewhere before as we
* are assuming, manipulating something here
- * would cause a bigger mass. */
+ * would cause a bigger mess. */
else if (buf[i] == ' ' ||
buf[i] == '}' ||
buf[i] == '{' ||
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Frank Lanitz <frank(a)frank.uvena.de>
Committer: GitHub <noreply(a)github.com>
Date: Thu, 27 Feb 2020 07:51:32 UTC
Commit: 2d3d877c8d6facfc3ec0476a43a37939d1475de4
https://github.com/geany/geany-plugins/commit/2d3d877c8d6facfc3ec0476a43a37…
Log Message:
-----------
Merge pull request #951 from LukeLR/master
latex: added feature: indent line in new environment (fixes #950)
Modified Paths:
--------------
latex/src/latex.c
Modified: latex/src/latex.c
12 lines changed, 11 insertions(+), 1 deletions(-)
===================================================================
@@ -604,6 +604,7 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *object, GeanyEditor *edi
gint line_len = sci_get_line_length(sci, line);
gint i, start;
gint indent;
+ GeanyIndentPrefs* indent_prefs = editor_get_indent_prefs(editor);
/* get the line */
buf = sci_get_line(sci, line);
@@ -683,6 +684,15 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *object, GeanyEditor *edi
editor_insert_text_block(editor, construct, pos,
1, -1, TRUE);
/* ... and setting the indention */
+ /* If user pressed carriage return, we end up in a new line. This line
+ * should be indented one level further than the previous indentation */
+ sci_set_line_indentation(sci, sci_get_current_line(sci),
+ indent + indent_prefs->width);
+ /* Set the cursor position to the end of the new line we're in which
+ * has just been indented */
+ sci_set_current_position(sci, sci_get_line_end_position(sci, sci_get_current_line(sci)), 1);
+ /* Indentation of the \end{} command, which is now in the next line,
+ * should be the same as the previous indentation */
sci_set_line_indentation(sci, sci_get_current_line(sci) + 1,
indent);
g_free(construct);
@@ -727,7 +737,7 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *object, GeanyEditor *edi
/* Else we want to stop once we found a space,
* some closing braces somewhere before as we
* are assuming, manipulating something here
- * would cause a bigger mass. */
+ * would cause a bigger mess. */
else if (buf[i] == ' ' ||
buf[i] == '}' ||
buf[i] == '{' ||
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Frank Lanitz <frank(a)frank.uvena.de>
Committer: Frank Lanitz <frank(a)frank.uvena.de>
Date: Tue, 25 Feb 2020 19:51:17 UTC
Commit: faf6ab38b2a4a94512f3d082b6a24618b2c0d9ca
https://github.com/geany/geany-plugins/commit/faf6ab38b2a4a94512f3d082b6a24…
Log Message:
-----------
Debugger: Update description of dependencies a little
Modified Paths:
--------------
debugger/README
Modified: debugger/README
5 lines changed, 3 insertions(+), 2 deletions(-)
===================================================================
@@ -43,13 +43,14 @@ Debug control buttons also reside on the right end of a panel as well as plugin
A user can also control debug process using hotkeys that are configurable through Geany hotkeys dialog.
When exploring children of a watch or an auto variable user can double click any of them to create a distinct
-watch item containing the corresponding expression.
+watch item containing the corresponding expression.
Requirements
------------
* Geany >= 0.21
-* GTK 2
+* libvte
+* GTK 3
* POSIX API
Contact developers
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).