From 92d9f99c0600afcf6192a56ef3a9c8c33cc03924 Mon Sep 17 00:00:00 2001 From: Sim Kah Hong Date: Mon, 21 Sep 2026 08:50:01 +0800 Subject: [PATCH 1/9] Remove search count badges from sidebar when searched text changes (#1672) --- src/Widgets/SearchBar.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Widgets/SearchBar.vala b/src/Widgets/SearchBar.vala index 583bb9e6b..a0905788d 100644 --- a/src/Widgets/SearchBar.vala +++ b/src/Widgets/SearchBar.vala @@ -251,7 +251,10 @@ public class Scratch.Widgets.SearchBar : Gtk.Box { //TODO In Gtk4 use a BinLayou // Connecting to some signals search_entry.bind_property ("text", search_settings, "search-text", SYNC_CREATE); - search_entry.changed.connect (update_search_widgets); + search_entry.changed.connect (() => { + update_search_widgets (); + this.window.folder_manager_view.clear_badges (); + }); search_entry.notify["is-focus"].connect (() => { if (search_entry.is_focus && text_buffer != null) { Idle.add (() => { From 5aeee4d46af33f81cfb2e7de1564471ab6df93db Mon Sep 17 00:00:00 2001 From: Ihor Hordiichuk Date: Mon, 21 Sep 2026 00:02:02 +0000 Subject: [PATCH 2/9] Translated using Weblate (Ukrainian) Currently translated at 96.7% (265 of 274 strings) Translation: Code/Code Translate-URL: https://l10n.elementaryos.org/projects/code/code/uk/ --- po/uk.po | 50 +++++++++++++++++--------------------------------- 1 file changed, 17 insertions(+), 33 deletions(-) diff --git a/po/uk.po b/po/uk.po index d85027a08..70e4cc39a 100644 --- a/po/uk.po +++ b/po/uk.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: scratch\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-06 19:03+0000\n" -"PO-Revision-Date: 2026-09-11 22:01+0000\n" +"PO-Revision-Date: 2026-09-22 00:03+0000\n" "Last-Translator: Ihor Hordiichuk \n" "Language-Team: Ukrainian \n" @@ -113,17 +113,15 @@ msgstr "%s - завершення слів" #: src/Dialogs/BranchActions/BranchActionDialog.vala:61 #, c-format msgid "Perform branch action on project '%s'" -msgstr "" +msgstr "Виконати дію з гілкою у проєкті «%s»" #: src/Dialogs/BranchActions/BranchActionDialog.vala:68 msgid "Apply" msgstr "Застосувати" #: src/Dialogs/BranchActions/BranchActionDialog.vala:75 -#, fuzzy -#| msgid "Do not Checkout" msgid "Checkout" -msgstr "Не вивантажувати" +msgstr "Виконати Checkout" #. scan all children #. No need to show status when children shown @@ -137,43 +135,35 @@ msgstr "Нова" #: src/Dialogs/BranchActions/BranchActionDialog.vala:89 #, c-format msgid "'%s' is not a git repository" -msgstr "" +msgstr "«%s» не є репозиторієм Git" #: src/Dialogs/BranchActions/BranchActionDialog.vala:92 msgid "Unable to perform branch actions" -msgstr "" +msgstr "Неможливо виконати дії з гілками" #: src/Dialogs/BranchActions/BranchCreatePage.vala:44 msgid "Name of branch to create" -msgstr "" +msgstr "Назва гілки, яку потрібно створити" #: src/Dialogs/BranchActions/BranchCreatePage.vala:47 msgid "Enter new branch name" -msgstr "" +msgstr "Введіть назву нової гілки" #: src/Dialogs/BranchActions/BranchListBox.vala:50 -#, fuzzy -#| msgid "Hide search bar" msgid "Enter search term" -msgstr "Сховати панель пошуку" +msgstr "Введіть запит" #: src/Dialogs/BranchActions/BranchListBox.vala:53 -#, fuzzy -#| msgid "Create Branch" msgid "Recent Branches" -msgstr "Створити гілку" +msgstr "Недавні гілки" #: src/Dialogs/BranchActions/BranchListBox.vala:54 -#, fuzzy -#| msgid "Branch" msgid "Local Branches" -msgstr "Гілка" +msgstr "Локальні гілки" #: src/Dialogs/BranchActions/BranchListBox.vala:55 -#, fuzzy -#| msgid "Create Branch" msgid "Remote Branches" -msgstr "Створити гілку" +msgstr "Віддалені гілки" #. /TRANSLATORS "Git" is a proper name and must not be translated #: src/Dialogs/CloneRepositoryDialog.vala:55 @@ -263,15 +253,15 @@ msgstr "Пошуковий термін розглядатиметься як в #: src/Dialogs/GlobalSearchDialog.vala:65 msgid "Search will be case sensitive" -msgstr "" +msgstr "Під час пошуку враховуватиметься регістр символів" #: src/Dialogs/GlobalSearchDialog.vala:65 msgid "Search will be case insensitive" -msgstr "" +msgstr "Під час пошуку не враховуватиметься регістр символів" #: src/Dialogs/GlobalSearchDialog.vala:66 msgid "Search will match only whole words" -msgstr "" +msgstr "Пошук буде знаходити лише цілі слова" #: src/Dialogs/GlobalSearchDialog.vala:69 #, c-format @@ -332,7 +322,7 @@ msgstr "Вилучати пробіли в кінці рядків під час #: src/Dialogs/PreferencesDialog.vala:29 msgid "Except Plain Text, Markdown and YAML" -msgstr "" +msgstr "За винятком простого тексту, Markdown та YAML" #: src/Dialogs/PreferencesDialog.vala:32 msgid "Smart cut/copy lines" @@ -395,8 +385,6 @@ msgid "Highlight matching brackets" msgstr "Виділяти відповідні дужки" #: src/Dialogs/PreferencesDialog.vala:118 -#, fuzzy -#| msgid "Syntax Highlighting" msgid "Syntax highlighting" msgstr "Підсвічування синтаксису" @@ -905,10 +893,8 @@ msgid "Plain Text" msgstr "Звичайний текст" #: src/Widgets/FormatBar.vala:148 -#, fuzzy -#| msgid "Filter languages" msgid "Document language" -msgstr "Фільтрувати мови" +msgstr "Мова документа" #: src/Widgets/FormatBar.vala:153 msgid "Go To Line:" @@ -991,10 +977,8 @@ msgid "Dark" msgstr "Темна" #: src/Widgets/HeaderBar.vala:393 -#, fuzzy -#| msgid "High Contrast" msgid "Contrast" -msgstr "Висококонтрастна" +msgstr "Контраст" #: src/Widgets/SearchBar.vala:117 msgid "Find" From 6dbaa44744f1678ecd77e1c2233132d47322bb10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BA=D1=83=D0=B1=D0=B8=D0=BA=20=D0=BA=D1=80=D1=83=D0=B3?= =?UTF-8?q?=D0=BB=D1=8B=D0=B9?= Date: Mon, 21 Sep 2026 22:20:44 +0000 Subject: [PATCH 3/9] Translated using Weblate (Russian) Currently translated at 100.0% (136 of 136 strings) Translation: Code/Extra Translate-URL: https://l10n.elementaryos.org/projects/code/extra/ru/ --- po/extra/ru.po | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/po/extra/ru.po b/po/extra/ru.po index 6c312c9e3..151448101 100644 --- a/po/extra/ru.po +++ b/po/extra/ru.po @@ -8,10 +8,10 @@ msgstr "" "Project-Id-Version: scratch\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-06 19:03+0000\n" -"PO-Revision-Date: 2026-08-14 08:01+0000\n" +"PO-Revision-Date: 2026-09-22 00:03+0000\n" "Last-Translator: кубик круглый \n" -"Language-Team: Russian \n" +"Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -150,16 +150,22 @@ msgid "" "The font size in the terminal pane can now be changed independently of the " "document font size" msgstr "" +"Размер шрифта панели терминала теперь можно изменять независимо от размера " +"шрифта документа" #: data/code.metainfo.xml.in:76 msgid "The Close Other Tabs action now has the shortcut Shift + Ctrl + W" msgstr "" +"Действие «Закрыть остальные вкладки» получило сочетание клавиш Shift + Ctrl " +"+ W" #: data/code.metainfo.xml.in:77 msgid "" "A Find Matching Bracket action that works over the whole document is " "introduced, with the shortcut Shift + Ctrl + I" msgstr "" +"Добавлено действие «Найти парную скобку», работающее по всему документу и " +"доступное по сочетанию клавиш Shift + Ctrl + I" #: data/code.metainfo.xml.in:79 data/code.metainfo.xml.in:100 #: data/code.metainfo.xml.in:122 data/code.metainfo.xml.in:153 @@ -177,24 +183,32 @@ msgid "" "The syntax is now correctly displayed in the format bar when the document is " "first opened" msgstr "" +"Корректное отображение синтаксиса в шкале форматирования при первом открытии " +"документа" #: data/code.metainfo.xml.in:82 msgid "" "Opening a document from the command line with the `-g` option now scrolls to " "the selected range" msgstr "" +"Открытие документа из командной строки с опцией `-g` теперь выполняет " +"прокрутку до указанного диапазона" #: data/code.metainfo.xml.in:83 msgid "" "When entering an ordered list in markdown mode, inserted lines are now " "indented and numbered correctly" msgstr "" +"Корректные отступы и нумерация при написании упорядоченного списка в режиме " +"Markdown" #: data/code.metainfo.xml.in:84 msgid "" "Several shortcuts are no longer intercepted by the main window when the " "terminal is focused" msgstr "" +"Несколько сочетаний клавиш больше не перехватываются основным окном, если " +"выполнена фокусировка на панели терминала" #: data/code.metainfo.xml.in:85 data/code.metainfo.xml.in:102 #: data/code.metainfo.xml.in:128 data/code.metainfo.xml.in:156 From 7dab0186b8bb8409c488565406c4c4040445ceef Mon Sep 17 00:00:00 2001 From: Ihor Hordiichuk Date: Wed, 23 Sep 2026 00:43:55 +0000 Subject: [PATCH 4/9] Translated using Weblate (Ukrainian) Currently translated at 100.0% (274 of 274 strings) Translation: Code/Code Translate-URL: https://l10n.elementaryos.org/projects/code/code/uk/ --- po/uk.po | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/po/uk.po b/po/uk.po index 70e4cc39a..8eafb5247 100644 --- a/po/uk.po +++ b/po/uk.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: scratch\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-06 19:03+0000\n" -"PO-Revision-Date: 2026-09-22 00:03+0000\n" +"PO-Revision-Date: 2026-09-24 01:03+0000\n" "Last-Translator: Ihor Hordiichuk \n" "Language-Team: Ukrainian \n" @@ -1055,64 +1055,50 @@ msgstr "Згорнути все" #: src/Widgets/Sidebar.vala:91 msgid "Keep Sorted" -msgstr "" +msgstr "Лишити відсортованим" #: src/Widgets/Sidebar.vala:100 msgid "Manage project folders…" msgstr "Керувати теками проєкту…" #: src/Widgets/SourceView.vala:216 -#, fuzzy -#| msgid "Sort Selected Lines" msgid "Sort Lines" -msgstr "Впорядкувати вибрані рядки" +msgstr "Відсортувати рядки" #: src/Widgets/SourceView.vala:217 -#, fuzzy -#| msgid "Mark Current Line" msgid "Mark Line" -msgstr "Позначити поточний рядок" +msgstr "Позначити рядок" #: src/Widgets/SourceView.vala:218 -#, fuzzy -#| msgid "Previous Tab" msgid "Previous Mark" -msgstr "Попередня вкладка" +msgstr "Попередня позначка" #: src/Widgets/SourceView.vala:219 -#, fuzzy -#| msgid "Next Tab" msgid "Next Mark" -msgstr "Наступна вкладка" +msgstr "Наступна позначка" #: src/Widgets/SourceView.vala:220 msgid "Toggle Comment" msgstr "Закоментувати/розкоментувати" #: src/Widgets/SourceView.vala:221 -#, fuzzy -#| msgid "Highlight matching brackets" msgid "Goto Matching Bracket" -msgstr "Виділяти відповідні дужки" +msgstr "Перейти до відповідної дужки" #: src/Widgets/SourceView.vala:905 #, c-format msgid "" "A required bracket is missing or there is an extra bracket between lines %i " "and %i" -msgstr "" +msgstr "Відсутня необхідна дужка або між рядками %i та %i є зайва дужка" #: src/Widgets/SourceView.vala:907 -#, fuzzy -#| msgid "Save this file with a different name" msgid "Matching bracket has different indent" -msgstr "Зберегти цей файл під іншою назвою" +msgstr "Відповідна дужка має інший рівень вкладеності" #: src/Widgets/SourceView.vala:907 -#, fuzzy -#| msgid "Highlight matching brackets" msgid "No matching bracket found" -msgstr "Виділяти відповідні дужки" +msgstr "Відповідної дужки не знайдено" #: src/Widgets/SourceView.vala:908 msgid "You may need to adjust the indents" From a66b36ccab9e1860a70412abd9294bfda0d24474 Mon Sep 17 00:00:00 2001 From: Ihor Hordiichuk Date: Wed, 23 Sep 2026 00:46:34 +0000 Subject: [PATCH 5/9] Translated using Weblate (Ukrainian) Currently translated at 75.7% (103 of 136 strings) Translation: Code/Extra Translate-URL: https://l10n.elementaryos.org/projects/code/extra/uk/ --- po/extra/uk.po | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/po/extra/uk.po b/po/extra/uk.po index 5f97b8361..b96adb820 100644 --- a/po/extra/uk.po +++ b/po/extra/uk.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: scratch\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-06 19:03+0000\n" -"PO-Revision-Date: 2025-08-01 07:55+0000\n" +"PO-Revision-Date: 2026-09-24 01:03+0000\n" "Last-Translator: Ihor Hordiichuk \n" "Language-Team: Ukrainian \n" @@ -18,7 +18,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -"X-Generator: Weblate 5.11.4\n" +"X-Generator: Weblate 2026.5\n" "X-Launchpad-Export-Date: 2017-05-03 06:04+0000\n" #: data/code.metainfo.xml.in:9 @@ -148,16 +148,22 @@ msgid "" "The font size in the terminal pane can now be changed independently of the " "document font size" msgstr "" +"Тепер розмір шрифту в панелі терміналу можна змінювати незалежно від розміру " +"шрифту в документі" #: data/code.metainfo.xml.in:76 msgid "The Close Other Tabs action now has the shortcut Shift + Ctrl + W" msgstr "" +"Для дії Закрити інші вкладки тепер призначено комбінацію клавіш Shift + Ctrl " +"+ W" #: data/code.metainfo.xml.in:77 msgid "" "A Find Matching Bracket action that works over the whole document is " "introduced, with the shortcut Shift + Ctrl + I" msgstr "" +"Введено дію Знайти відповідну дужку, яка діє на весь документ, з комбінацією " +"клавіш Shift + Ctrl + I" #: data/code.metainfo.xml.in:79 data/code.metainfo.xml.in:100 #: data/code.metainfo.xml.in:122 data/code.metainfo.xml.in:153 From a5470e4991f1738685fae5817f432a3612c6bb1c Mon Sep 17 00:00:00 2001 From: Ihor Hordiichuk Date: Thu, 24 Sep 2026 13:15:29 +0000 Subject: [PATCH 6/9] Translated using Weblate (Ukrainian) Currently translated at 81.6% (111 of 136 strings) Translation: Code/Extra Translate-URL: https://l10n.elementaryos.org/projects/code/extra/uk/ --- po/extra/uk.po | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/po/extra/uk.po b/po/extra/uk.po index b96adb820..37af6064c 100644 --- a/po/extra/uk.po +++ b/po/extra/uk.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: scratch\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-06 19:03+0000\n" -"PO-Revision-Date: 2026-09-24 01:03+0000\n" +"PO-Revision-Date: 2026-09-24 22:44+0000\n" "Last-Translator: Ihor Hordiichuk \n" "Language-Team: Ukrainian \n" @@ -181,24 +181,32 @@ msgid "" "The syntax is now correctly displayed in the format bar when the document is " "first opened" msgstr "" +"Тепер синтаксис правильно показується у панелі форматування під час першого " +"відкриття документа" #: data/code.metainfo.xml.in:82 msgid "" "Opening a document from the command line with the `-g` option now scrolls to " "the selected range" msgstr "" +"При відкритті документа з командного рядка з опцією `-g` тепер відбувається " +"прокрутка до вибраного діапазону" #: data/code.metainfo.xml.in:83 msgid "" "When entering an ordered list in markdown mode, inserted lines are now " "indented and numbered correctly" msgstr "" +"Під час введення нумерованого списку в режимі Markdown вставлені рядки тепер " +"правильно відступають і нумеруються" #: data/code.metainfo.xml.in:84 msgid "" "Several shortcuts are no longer intercepted by the main window when the " "terminal is focused" msgstr "" +"Деякі комбінації клавіш більше не перехоплюються головним вікном, коли фокус " +"на терміналі" #: data/code.metainfo.xml.in:85 data/code.metainfo.xml.in:102 #: data/code.metainfo.xml.in:128 data/code.metainfo.xml.in:156 @@ -221,23 +229,29 @@ msgstr "Удосконалення:" #: data/code.metainfo.xml.in:117 msgid "The sidebar can now be focused using a keyboard shortcut" -msgstr "" +msgstr "Тепер можна активувати бічну панель за допомогою комбінації клавіш" #: data/code.metainfo.xml.in:118 msgid "" "Closing a second window by headerbar or shortcut only closes that window, " "saving its documents" msgstr "" +"Закриття другого вікна за допомогою панелі заголовка або комбінації клавіш " +"призводить лише до закриття цього вікна, зберігаючи його документи" #: data/code.metainfo.xml.in:119 msgid "The system font is shown and can be selected in the Preferences dialog" msgstr "" +"Системний шрифт показано і його можна вибрати у діалоговому вікні " +"Налаштування" #: data/code.metainfo.xml.in:120 msgid "" "Improved desktop consistency and contrast by using user accent color for " "selections" msgstr "" +"Покращено узгодженість та контрастність робочого столу завдяки використанню " +"кольору, обраного користувачем, для виділення елементів" #: data/code.metainfo.xml.in:124 msgid "Closing all windows by shortcut now correctly saves all documents" From 8a91be1a3c948a49f2f14286c98b20962b30dc2a Mon Sep 17 00:00:00 2001 From: Jeremy Wootten Date: Thu, 24 Sep 2026 23:47:58 +0100 Subject: [PATCH 7/9] Release 8.4.0 (#1821) --- data/code.metainfo.xml.in | 6 +++--- meson.build | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/code.metainfo.xml.in b/data/code.metainfo.xml.in index 32e7d7e31..338ba97cf 100644 --- a/data/code.metainfo.xml.in +++ b/data/code.metainfo.xml.in @@ -29,10 +29,10 @@ - https://raw.githubusercontent.com/elementary/code/8.3.1/data/screenshot.png + https://raw.githubusercontent.com/elementary/code/8.4.0/data/screenshot.png - https://raw.githubusercontent.com/elementary/code/8.3.1/data/screenshot-dark.png + https://raw.githubusercontent.com/elementary/code/8.4.0/data/screenshot-dark.png @@ -68,7 +68,7 @@ contact_AT_elementary.io - +

New features:

    diff --git a/meson.build b/meson.build index 9b52aef1e..39bdf28ea 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ project( 'io.elementary.code', 'vala', 'c', meson_version: '>= 0.58.0', - version: '8.3.2' + version: '8.4.0' ) add_project_arguments([ From c3a9d6d58541bb959252315804f684425e18f7fa Mon Sep 17 00:00:00 2001 From: Jeremy Wootten Date: Mon, 28 Sep 2026 14:22:43 +0100 Subject: [PATCH 8/9] Lose unused signal, whitespace (#1823) --- src/Services/GitManager.vala | 4 ---- src/Widgets/ChooseProjectButton.vala | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/Services/GitManager.vala b/src/Services/GitManager.vala index 10dd8acf2..831e10518 100644 --- a/src/Services/GitManager.vala +++ b/src/Services/GitManager.vala @@ -26,10 +26,6 @@ namespace Scratch.Services { private static Once instance; private Gee.HashMap project_gitrepo_map; - - - - construct { // Used to populate the ChooseProject popover in sorted order Ggit.init (); diff --git a/src/Widgets/ChooseProjectButton.vala b/src/Widgets/ChooseProjectButton.vala index ff6fb175a..0d36e7691 100644 --- a/src/Widgets/ChooseProjectButton.vala +++ b/src/Widgets/ChooseProjectButton.vala @@ -11,8 +11,6 @@ public class Code.ChooseProjectButton : Gtk.Bin { private Gtk.Label label_widget; private Gtk.ListBox project_listbox; - public signal void project_chosen (); - construct { var img = new Gtk.Image.from_icon_name ("git-symbolic", SMALL_TOOLBAR); From 1c4c29c15d9a89f24ddeb7a6d98387c2d383643b Mon Sep 17 00:00:00 2001 From: Jeremy Wootten Date: Wed, 30 Sep 2026 10:18:34 +0100 Subject: [PATCH 9/9] Simplify search function (#1803) * Simply search function * Lose unused has_matches () --------- Co-authored-by: Ryan Kornheisl --- src/Widgets/SearchBar.vala | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/Widgets/SearchBar.vala b/src/Widgets/SearchBar.vala index a0905788d..bd475a5f1 100644 --- a/src/Widgets/SearchBar.vala +++ b/src/Widgets/SearchBar.vala @@ -316,19 +316,10 @@ public class Scratch.Widgets.SearchBar : Gtk.Box { //TODO In Gtk4 use a BinLayou public bool search () { search_entry.grab_focus (); - if (search_context == null) { + if (search_context == null || text_buffer == null || search_entry.text == "") { return false; } - search_context.highlight = false; - - if (!has_matches ()) { - debug ("Can't search anything in a non-existent buffer and/or without anything to search."); - return false; - } - - search_context.highlight = true; - Gtk.TextIter? start_iter, end_iter; text_buffer.get_iter_at_offset (out start_iter, text_buffer.cursor_position); @@ -463,17 +454,6 @@ public class Scratch.Widgets.SearchBar : Gtk.Box { //TODO In Gtk4 use a BinLayou } } - private bool has_matches () { - if (text_buffer == null || search_entry.text == "") { - return false; - } - - bool has_wrapped_around; - Gtk.TextIter? start_iter, end_iter; - text_buffer.get_start_iter (out start_iter); - return search_context.forward (start_iter, out start_iter, out end_iter, out has_wrapped_around); - } - private bool search_for_iter (Gtk.TextIter? start_iter, out Gtk.TextIter? end_iter) { end_iter = start_iter;