Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev fixes #1055

Closed
wants to merge 175 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
4007fb4
experimenting with diff line numbers
Jun 25, 2020
a6e68a9
Saving progress sgr
Jun 26, 2020
d873d29
Gutter is colored more or less well enough
Jun 27, 2020
59e6c8d
Fixed bug in colors
Jun 27, 2020
1ad3695
Reload when switching between different files
Jun 27, 2020
17fd558
Some cleanup of class properties
Jun 27, 2020
6f6e535
Cleanup + color improvements
Jun 27, 2020
41ecf9b
Renamed the class
Jun 27, 2020
e825f6c
Cleaning up the renderer
Jun 28, 2020
528f6e5
Merge branch 'master' into gtkSourceGutterRenderer
cassidyjames Jun 30, 2020
9f4c403
Merge branch 'master' into gtkSourceGutterRenderer
Jul 22, 2020
27b385d
Merge branch 'master' into git-diff
Dec 3, 2020
f240b56
Get repo from sidebar for each document
Dec 10, 2020
802ae95
Merge branch 'master' into git-diff
Dec 10, 2020
101adb2
Fix construct Document
Dec 10, 2020
97bedfe
Code-style improvement
Dec 11, 2020
c533334
Merge branch 'master' into git-diff
cassidyjames Jan 19, 2021
7c3e5f5
Merge branch 'master' into git-diff
Feb 16, 2021
7354c5c
Merge branch 'master' into git-diff
May 2, 2021
67c842a
Merge branch 'master' into git-diff
May 2, 2021
b024a6e
Move git stuff to MonitoredRepository
May 3, 2021
88a323b
Improve diff parsing; add OTHER VCStatus
May 3, 2021
1be91ea
Fix lint
May 3, 2021
c4d71fb
Fix process_diff_line; only refresh when file content changes
May 3, 2021
4aa6767
Reinstate some needed code and other improvements
May 3, 2021
008fe6a
Merge branch 'master' into git-diff
May 3, 2021
376d54a
Minor code cleanup
May 3, 2021
a74aa95
Fix showing modified block
May 3, 2021
92f3371
No need to recreate Ggit.Diff object each time
May 4, 2021
9bd426c
Fix long line
May 4, 2021
3122248
Show unmodified lines that replace a deleted line with blue
May 4, 2021
3d0b154
Looks like we do need to recreate Diff object
May 4, 2021
70844b0
Fix whitespace. Only redraw gutter when diff refreshes
May 4, 2021
7dc5037
Merge branch 'master' into git-diff
May 4, 2021
53a4432
Revert making source_view a property
May 5, 2021
3a5f483
Merge branch 'master' into git-diff
May 5, 2021
1de07e4
Merge branch 'master' into git-diff
May 5, 2021
ddf78bf
Merge branch 'master' into git-diff
cassidyjames May 5, 2021
8331bcf
Merge branch 'master' into git-diff
May 6, 2021
74c653e
Merge branch 'git-diff' of https://github.com/elementary/code into gi…
May 6, 2021
9222d05
Initial implementation of project-diff action.
May 7, 2021
b63ab4b
Switch only if no uncommitted, force checkout
May 8, 2021
5076dba
Remove outdated comment
May 8, 2021
ebb176f
Merge branch 'master' into git-diff
May 19, 2021
d3d14ed
Merge branch 'master' into git-diff
May 20, 2021
91bc194
Make background actually transparent as intended
May 21, 2021
abe8b6b
Show outline in document not sidebar
May 22, 2021
2b9bd7b
Use paned; fix activate/deactivate
May 22, 2021
ad910d0
Set outline object as doc data
May 22, 2021
39fc0c5
Use selected or searchentry text for global search
May 23, 2021
fa81ddf
Add global search button to search bar
May 23, 2021
e9ab5c2
Search term from focused widget
May 23, 2021
0317472
Fallback to searchentry when no focused selected text
May 23, 2021
e87114a
Merge branch 'master' into git-diff
danirabbit May 25, 2021
862af65
src/Widgets/SourceGutterRenderer.vala: Inline namespace
May 26, 2021
5da86c6
Merge branch 'master' into git-diff
May 26, 2021
c1d326f
Minor cleanups
May 26, 2021
f5e3bfa
Merge branch 'master' into git-diff
May 26, 2021
69f9e9d
Merge branch 'show-diff-action' into merge-dev-fixes
May 31, 2021
44caddf
Merge branch 'fix-switch-branch-simple' into merge-dev-fixes
May 31, 2021
6c26923
Merge branch 'global-search-selected' into merge-dev-fixes
May 31, 2021
b9c5fe1
Merge branch 'symbolpane-on-right' into merge-dev-fixes
May 31, 2021
7b8460c
add custom elementary syntax styles
micahilbery Jul 1, 2021
76dc80b
color adjustments
micahilbery Jul 1, 2021
7a87e36
Merge branch 'master' into merge-dev-fixes
Jul 18, 2021
18da7dd
Merge branch 'master' into merge-dev-fixes
Sep 7, 2021
0104c15
Snippets plugin: initial version.
igordsm Sep 22, 2021
93fb328
Merge branch 'master' into elementary-styles
cassidyjames Sep 28, 2021
63e3694
Merge branch 'master' into elementary-styles
danirabbit Oct 5, 2021
1919300
Merge branch 'master' into elementary-styles
danirabbit Oct 5, 2021
a1c907b
Timeout for editing.
igordsm Oct 6, 2021
53081ae
Merge branch 'master' into snippets
igordsm Oct 6, 2021
3aff2cc
Hide non-active documents when project manually chosen
jeremypw Oct 9, 2021
4086f72
Use MainWindow action, add context menu items
jeremypw Oct 11, 2021
3df2c57
Add DocumentManager service; add close project docs action
jeremypw Oct 11, 2021
6bfdf8a
Show number of restorable docs in context menu
jeremypw Oct 11, 2021
5b9c7f7
Add indication of open docs in project context menu
jeremypw Oct 11, 2021
9041a32
Fix close other projects
jeremypw Oct 11, 2021
2cdd453
Merge branch 'master' into hide-docs-when-not-active
Oct 11, 2021
919dd61
FileView: Replace signals with activate_action
jeremypw Oct 11, 2021
e8abafa
Merge branch 'master' into elementary-styles
Oct 12, 2021
7cacb42
Merge branch 'master' into merge-dev-fixes
Oct 12, 2021
2a979dc
Merge branch 'hide-docs-when-not-active' into merge-dev-fixes
jeremypw Oct 12, 2021
63c2a59
Merge branch 'master' into merge-dev-fixes
jeremypw Oct 13, 2021
2534a6f
Code quality fixes.
igordsm Oct 16, 2021
d4b8cab
Merge branch 'snippets' of github.com:igordsm/code into snippets
igordsm Oct 16, 2021
b6f7028
Merge branch 'master' into elementary-styles
meisenzahl Oct 17, 2021
6c58f5e
Merge branch 'master' into snippets
igordsm Oct 18, 2021
bb4fd20
Install snippets.json
igordsm Oct 18, 2021
9296953
Add Vala snippets and respect indent.
igordsm Oct 18, 2021
0b50718
Merge branch 'snippets' of github.com:igordsm/code into snippets
igordsm Oct 18, 2021
9a96bc6
lint
igordsm Oct 18, 2021
7708635
Update snippets
igordsm Oct 18, 2021
8223d30
Merge branch 'master' into snippets
igordsm Oct 28, 2021
94e994b
Merge branch 'master' into merge-dev-fixes
Nov 3, 2021
7914d3d
Merge branch 'master' into elementary-styles
Nov 3, 2021
f6327b6
Merge branch 'master' into snippets
Nov 3, 2021
a6e70db
Avoid crashing when used with WordCompletion. Add Details to each sni…
igordsm Nov 7, 2021
9c23279
Merge branch 'master' into snippets
igordsm Nov 7, 2021
0993491
Merge branch 'snippets' of github.com:igordsm/code into snippets
igordsm Nov 7, 2021
a1b13d3
vala lint
igordsm Nov 7, 2021
3809a80
Merge branch 'master' into snippets
Nov 10, 2021
3ac6694
Merge branch 'master' into elementary-styles
micahilbery Nov 10, 2021
bd817d9
match classic
micahilbery Nov 10, 2021
1f54046
Merge branch 'master' into merge-dev-fixes
jeremypw Nov 10, 2021
02fb9ae
Merge branch 'elementary-styles' into merge-dev-fixes
jeremypw Nov 10, 2021
4d3ad4b
Rewrite word completion to play nice with other completion providers.
igordsm Nov 13, 2021
0f08c24
Do not suggest snippets if editing placeholders.
igordsm Nov 13, 2021
695431f
Merge branch 'snippets' of github.com:igordsm/code into snippets
igordsm Nov 13, 2021
04758c8
lint
igordsm Nov 13, 2021
52d37a0
lint 2
igordsm Nov 13, 2021
cfc7868
Merge branch 'master' into word-completion-improvements
Nov 17, 2021
88ab611
Merge branch 'master' into snippets
Nov 17, 2021
c9e2a79
Merge branch 'word-completion-improvements' of https://github.com/igo…
jeremypw Nov 17, 2021
019c6f9
Merge branch 'snippets' of https://github.com/igordsm/code into merge…
jeremypw Nov 17, 2021
9be778d
Check commandline files, do not allow docs with null file
jeremypw Nov 17, 2021
900d2d3
Fix problem with extra space in words.
igordsm Nov 18, 2021
d15acae
remove print
igordsm Nov 18, 2021
70fd567
Merge branch 'word-completion-improvements' of github.com:igordsm/cod…
igordsm Nov 18, 2021
cda19c2
Merge branch 'master' into word-completion-improvements
Nov 18, 2021
86fd680
Merge branch 'word-completion-improvements' of https://github.com/igo…
jeremypw Nov 18, 2021
81d005c
Merge branch 'master' into merge-dev-fixes
jeremypw Dec 2, 2021
4e61dd0
Fix logic for duplicating unselected line.
jeremypw Dec 4, 2021
28a60a1
Implement edit point navigation with actions
jeremypw Dec 4, 2021
05cee1c
Add edit point navigation action to context menu
jeremypw Dec 4, 2021
e58425a
Merge branch 'edit-point-history' into merge-dev-fixes
jeremypw Dec 5, 2021
f95bf25
Fix Open New Window behaviout
jeremypw Dec 6, 2021
73540ee
Do not add duplicate projects to project_liststore
jeremypw Dec 6, 2021
b867a9a
Merge branch 'fix-new-window' into merge-dev-fixes
jeremypw Dec 6, 2021
c5d322a
Make settings source of truth for indent-width etc
jeremypw Dec 7, 2021
c295a5a
Code style
jeremypw Dec 7, 2021
51a9e02
Strip whitespace on every saving
jeremypw Dec 8, 2021
dae2b9c
Add strip-trailing-spaces controls to Preferences Dialog
jeremypw Dec 8, 2021
8feff67
Strip trailing space when setting turned on
jeremypw Dec 8, 2021
b50be9d
Remove strip-trailing-save plugin
jeremypw Dec 8, 2021
1a16d9c
Fix some regressions
jeremypw Dec 8, 2021
71ebe43
Merge branch 'master' into merge-dev-fixes
Dec 8, 2021
e4774b4
Merge branch 'fix-duplicate-first-line' into merge-dev-fixes
jeremypw Dec 8, 2021
33e4090
Merge branch 'check-commandline-files' into merge-dev-fixes
jeremypw Dec 8, 2021
ad6b2fe
Merge branch 'fix-tab-label' into merge-dev-fixes
jeremypw Dec 8, 2021
818cd10
Ignore flatpak related files
jeremypw Dec 8, 2021
dcd9b5b
Provide all callbacks to Ggit.Diff.foreach ()
jeremypw Dec 8, 2021
1a208ca
Merge branch 'fix-flatpak-git' into merge-dev-fixes
jeremypw Dec 8, 2021
0cad84e
Refactor loading plugins
jeremypw Dec 8, 2021
ed3dd8c
Strip whitespace on every saving
jeremypw Dec 8, 2021
af5431e
Add strip-trailing-spaces controls to Preferences Dialog
jeremypw Dec 8, 2021
eb96932
Strip trailing space when setting turned on
jeremypw Dec 8, 2021
7074c82
Remove strip-trailing-save plugin
jeremypw Dec 8, 2021
b3af601
Fix some regressions
jeremypw Dec 8, 2021
c50f03e
Merge branch 'strip-trailing-refactor' into merge-dev-fixes
jeremypw Dec 8, 2021
a04e97b
Remove commented out code
jeremypw Dec 8, 2021
e9a810f
Only strip Vala for now
jeremypw Dec 8, 2021
8e0e35c
Merge branch 'strip-trailing-refactor' into merge-dev-fixes
jeremypw Dec 8, 2021
6efe71d
Do not strip trailing spaces on save while completion showing
jeremypw Dec 13, 2021
c5fe56c
Merge branch 'strip-trailing-refactor' into merge-dev-fixes
jeremypw Dec 13, 2021
5e6bb15
Merge branch 'master' into edit-point-history
Dec 13, 2021
534fd37
First commit implementing edited doc navigation
jeremypw Dec 13, 2021
c1cba5b
Ignore changes during loading file
jeremypw Dec 15, 2021
54744a9
Only push edited doc to queue
jeremypw Dec 15, 2021
7812f64
Remove temp comment
jeremypw Dec 15, 2021
ba56f0e
Merge branch 'master' into merge-dev-fixes
jeremypw Dec 15, 2021
b90f749
Merge branch 'edit-doc-history' into merge-dev-fixes
jeremypw Dec 15, 2021
91f6b56
Merge branch 'master' into merge-dev-fixes
jeremypw Dec 15, 2021
590afcf
Include hyphen and underscore in word to match
jeremypw Dec 15, 2021
58b812e
Merge branch 'completion-include-hyphen-underscore' into merge-dev-fixes
jeremypw Dec 15, 2021
840e1bd
Check for null language
jeremypw Dec 16, 2021
c0a13c8
Check for null language
jeremypw Dec 16, 2021
e87d753
Remove unused widget
jeremypw Dec 16, 2021
970d899
Merge branch 'master' into merge-dev-fixes
Dec 16, 2021
95a4b4f
Merge branch 'strip-trailing-refactor' into merge-dev-fixes
jeremypw Dec 16, 2021
7b758b7
Merge branch 'master' into merge-dev-fixes
Dec 29, 2021
c075cca
Merge branch 'master' into merge-dev-fixes
jeremypw Jan 5, 2022
df663c3
Merge branch 'master' into merge-dev-fixes
Jan 5, 2022
e2e8624
Merge branch 'merge-dev-fixes' of https://github.com/elementary/code …
jeremypw Jan 5, 2022
d510b84
Merge changes to symboloutline-on-right - memory leaks
jeremypw Jan 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build
src/config.vala
*flatpak*
*~

8 changes: 8 additions & 0 deletions data/io.elementary.code.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
</ul>
</description>
<releases>
<release version="6.1.1" date="2021-11-23" urgency="medium">
<description>
<p>Improvements:</p>
<ul>
<li>Show symbol list on the right of the document instead of as a tab in the sidebar</li>
</ul>
</description>
</release>
<release version="6.1.0" date="2021-11-23" urgency="medium">
<description>
<p>Improvements:</p>
Expand Down
7 changes: 6 additions & 1 deletion data/io.elementary.code.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<description>Set the preferred font.</description>
</key>
<key name="style-scheme" type="s">
<default>'solarized-light'</default>
<default>'elementary-light'</default>
<summary>Preferred Style Scheme</summary>
<description>Set the preferred style scheme.</description>
</key>
Expand All @@ -140,6 +140,11 @@
<summary>Whether search is cyclic</summary>
<description>Whether text searching should cycle back to the beginning of the document after reaching the end of the document.</description>
</key>
<key name="strip-trailing-on-save" type="b">
<default>false</default>
<summary>Whether to automatically remove trailing whitespace on saving</summary>
<description>Whether trailing whitespace should be removed from a document whenever it is saved, including on autosave.</description>
</key>
</schema>

<schema path="/io/elementary/code/services/" id="io.elementary.code.services" gettext-domain="io.elementary.code">
Expand Down
5 changes: 5 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ foreach i : icon_sizes
)
endforeach

install_data([
'styles/elementary-dark.xml',
'styles/elementary-light.xml',
], install_dir: join_paths(get_option('datadir'), 'gtksourceview-4', 'styles'))

install_data([
'fonts/BuilderBlocks.ttf',
], install_dir: join_paths(get_option('datadir'), meson.project_name(), 'fonts'))
Expand Down
113 changes: 113 additions & 0 deletions data/styles/elementary-dark.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>

<style-scheme id="elementary-dark" _name="elementary Dark" version="1.0">
<author>Micah Ilbery</author>
<_description>Color scheme using the elementary color palette</_description>

<!-- Background Colors Palette -->
<color name="bg-0" value="#485a6c"/> <!-- SLATE500 -->
<color name="bg-1" value="#2a3441"/> <!-- SLATE700 BLACK500 MIX 75% -->
<color name="bg-2" value="#212730"/> <!-- SLATE700 BLACK700 MIX 50% -->
<color name="bg-3" value="#1d2125"/> <!-- SLATE700 BLACK700 MIX 25% -->
<color name="bg-4" value="#0e141f"/> <!-- SLATE900 -->

<color name="fg-0" value="#d4d4d4"/> <!-- SILVER300 -->
<color name="fg-1" value="#abacae"/> <!-- SILVER500 -->
<color name="fg-2" value="#667885"/> <!-- SLATE300 -->

<color name="yellow" value="#ffe16b"/> <!-- BANANA -->
<color name="orange" value="#ffa154"/> <!-- ORANGE -->
<color name="red" value="#ed5353"/> <!-- STRAWBERRY -->
<color name="pink" value="#f4679d"/> <!-- BUBBLEGUM -->
<color name="purple" value="#cd9ef7"/> <!-- GRAPE -->
<color name="blue" value="#64baff"/> <!-- BLUEBERRY -->
<color name="cyan" value="#28bca3"/> <!-- MINT -->
<color name="green" value="#9bdb4d"/> <!-- LIME -->

<!-- Global Settings -->
<style name="text" foreground="fg-0" background="bg-2"/>
<style name="selection" foreground="bg-4" background="bg-0"/>
<style name="cursor" foreground="fg-0"/>
<style name="secondary-cursor" foreground="fg-1"/>
<style name="current-line" background="bg-1"/>
<style name="line-numbers" foreground="fg-2" background="bg-3"/>
<style name="background-pattern" background="bg-4"/>
<style name="draw-spaces" foreground="fg-2"/>

<!-- Bracket Matching -->
<style name="bracket-match" foreground="bg-4" background="fg-0"/>
<style name="bracket-mismatch" foreground="red" background="fg-2"/>

<!-- Right Margin -->
<style name="right-margin" foreground="bg-2" background="fg-1"/>

<!-- Search Matching -->
<style name="search-match" foreground="bg-4" background="yellow"/>

<!-- Comments -->
<style name="def:comment" foreground="fg-2"/>
<style name="def:shebang" foreground="fg-2" bold="true"/>
<style name="def:doc-comment-element" italic="true"/>

<!-- Constants -->
<style name="def:constant" foreground="cyan"/>
<style name="def:special-char" foreground="green"/>

<!-- Identifiers -->
<style name="def:identifier" foreground="blue"/>

<!-- Statements -->
<style name="def:statement" foreground="orange"/>

<!-- Types -->
<style name="def:type" foreground="yellow"/>

<!-- Markup -->
<style name="def:emphasis" italic="true"/>
<style name="def:strong-emphasis" foreground="orange"/>
<style name="def:inline-code" foreground="blue"/>
<style name="def:insertion" underline="single"/>
<style name="def:deletion" strikethrough="true"/>
<style name="def:link-text" foreground="fg-2"/>
<style name="def:link-symbol" foreground="fg-2" bold="true"/>
<style name="def:link-destination" italic="true" underline="single"/>
<style name="def:heading" foreground="yellow"/>
<style name="def:thematic-break" foreground="yellow"/>
<style name="def:preformatted-section" foreground="blue"/>
<style name="def:list-marker" foreground="orange"/>

<!-- Operators -->
<style name="def:operator" foreground="green"/>

<!-- Others -->
<style name="def:preprocessor" foreground="purple"/>
<style name="def:error" foreground="red" bold="true"/>
<style name="def:note" foreground="pink" bold="true"/>
<style name="def:net-address" italic="true" underline="single"/>

<!-- Language specific styles -->
<style name="diff:added-line" foreground="green"/>
<style name="diff:removed-line" foreground="red"/>
<style name="diff:changed-line" foreground="yellow"/>
<style name="diff:special-case" use-style="def:constant"/>
<style name="diff:location" use-style="def:statement"/>
<style name="diff:diff-file" use-style="def:type"/>

<style name="xml:tags" foreground="cyan"/>
<style name="xml:attribute-name" foreground="purple"/>
<style name="xml:namespace" foreground="green" bold="true"/>

<style name="js:built-in-constructor" use-style="def:identifier"/>

<style name="latex:display-math" foreground="purple"/>
<style name="latex:command" foreground="green" bold="true"/>
<style name="latex:include" use-style="def:preprocessor"/>

<style name="sh:variable" foreground="purple"/>

<!-- legacy styles for old lang files -->
<style name="Others" foreground="green" bold="true"/>
<style name="Others 2" foreground="cyan"/>
<style name="Others 3" foreground="purple"/>

</style-scheme>
113 changes: 113 additions & 0 deletions data/styles/elementary-light.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>

<style-scheme id="elementary-light" _name="elementary Light" version="1.0">
<author>Micah Ilbery</author>
<_description>Color scheme using the elementary color palette</_description>

<!-- Background Colors Palette -->
<color name="bg-0" value="#f7f3ed"/> <!-- LATTE100 SILVER100 MIX 25% -->
<color name="bg-1" value="#f5eddf"/> <!-- LATTE100 SILVER100 MIX 50% -->
<color name="bg-2" value="#f2e6d2"/> <!-- LATTE100 SILVER100 MIX 75% -->
<color name="bg-3" value="#f0e2c9"/> <!-- LATTE100 SILVER100 MIX 90% -->
<color name="bg-4" value="#efdfc4"/> <!-- LATTE100 -->

<color name="fg-0" value="#555761"/> <!-- SILVER900 -->
<color name="fg-1" value="#7e8087"/> <!-- SILVER700 -->
<color name="fg-2" value="#abacae"/> <!-- SILVER300 -->

<color name="yellow" value="#d48e15"/> <!-- BANANA700 -->
<color name="orange" value="#cc3b02"/> <!-- ORANGE700 -->
<color name="red" value="#c6262e"/> <!-- STRAWBERRY500 -->
<color name="pink" value="#bc245d"/> <!-- BUBBLEGUM700 -->
<color name="purple" value="#a56de2"/> <!-- GRAPE500 -->
<color name="blue" value="#3689e6"/> <!-- BLUEBERRY500 -->
<color name="cyan" value="#0e9a83"/> <!-- MINT700 -->
<color name="green" value="#68b723"/> <!-- LIME500 -->

<!-- Global Settings -->
<style name="text" foreground="fg-0" background="bg-1"/>
<style name="selection" foreground="fg-1" background="bg-4"/>
<style name="cursor" foreground="fg-0"/>
<style name="secondary-cursor" foreground="fg-1"/>
<style name="current-line" background="bg-1"/>
<style name="line-numbers" foreground="fg-1" background="bg-2"/>
<style name="background-pattern" background="bg-4"/>
<style name="draw-spaces" foreground="fg-1"/>

<!-- Bracket Matching -->
<style name="bracket-match" foreground="bg-4" background="fg-2"/>
<style name="bracket-mismatch" foreground="red" background="fg-2"/>

<!-- Right Margin -->
<style name="right-margin" foreground="bg-3" background="fg-1"/>

<!-- Search Matching -->
<style name="search-match" foreground="bg-4" background="yellow"/>

<!-- Comments -->
<style name="def:comment" foreground="fg-1"/>
<style name="def:shebang" foreground="fg-1" bold="true"/>
<style name="def:doc-comment-element" italic="true"/>

<!-- Constants -->
<style name="def:constant" foreground="cyan"/>
<style name="def:special-char" foreground="green"/>

<!-- Identifiers -->
<style name="def:identifier" foreground="blue"/>

<!-- Statements -->
<style name="def:statement" foreground="orange"/>

<!-- Types -->
<style name="def:type" foreground="yellow"/>

<!-- Markup -->
<style name="def:emphasis" italic="true"/>
<style name="def:strong-emphasis" foreground="orange"/>
<style name="def:inline-code" foreground="blue"/>
<style name="def:insertion" underline="single"/>
<style name="def:deletion" strikethrough="true"/>
<style name="def:link-text" foreground="fg-1"/>
<style name="def:link-symbol" foreground="fg-1" bold="true"/>
<style name="def:link-destination" italic="true" underline="single"/>
<style name="def:heading" foreground="yellow"/>
<style name="def:thematic-break" foreground="yellow"/>
<style name="def:preformatted-section" foreground="blue"/>
<style name="def:list-marker" foreground="orange"/>

<!-- Operators -->
<style name="def:operator" foreground="green"/>

<!-- Others -->
<style name="def:preprocessor" foreground="purple"/>
<style name="def:error" foreground="red" bold="true"/>
<style name="def:note" foreground="pink" bold="true"/>
<style name="def:net-address" italic="true" underline="single"/>

<!-- Language specific styles -->
<style name="diff:added-line" foreground="green"/>
<style name="diff:removed-line" foreground="red"/>
<style name="diff:changed-line" foreground="yellow"/>
<style name="diff:special-case" use-style="def:constant"/>
<style name="diff:location" use-style="def:statement"/>
<style name="diff:diff-file" use-style="def:type"/>

<style name="xml:tags" foreground="cyan"/>
<style name="xml:attribute-name" foreground="purple"/>
<style name="xml:namespace" foreground="green" bold="true"/>

<style name="js:built-in-constructor" use-style="def:identifier"/>

<style name="latex:display-math" foreground="purple"/>
<style name="latex:command" foreground="green" bold="true"/>
<style name="latex:include" use-style="def:preprocessor"/>

<style name="sh:variable" foreground="purple"/>

<!-- legacy styles for old lang files -->
<style name="Others" foreground="green" bold="true"/>
<style name="Others 2" foreground="cyan"/>
<style name="Others 3" foreground="purple"/>

</style-scheme>
3 changes: 2 additions & 1 deletion plugins/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ subdir('outline')
subdir('pastebin')
subdir('preserve-indent')
subdir('spell')
subdir('strip-trailing-save')
subdir('snippets')
subdir('terminal')
subdir('vim-emulation')
subdir('word-completion')

26 changes: 17 additions & 9 deletions plugins/outline/C/CtagsSymbolOutline.vala
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@

public class Code.Plugins.CtagsSymbolOutline : Object, Code.Plugins.SymbolOutline {
public const string OUTLINE_RESOURCE_URI = "resource:///io/elementary/code/plugin/outline/";
public Scratch.Services.Document doc { get; protected set; }
Granite.Widgets.SourceList store;
Granite.Widgets.SourceList.ExpandableItem root;
GLib.Subprocess current_subprocess;
public Scratch.Services.Document doc { get; construct; }
private Granite.Widgets.SourceList store;
private Granite.Widgets.SourceList.ExpandableItem root;
private GLib.Subprocess current_subprocess;

public CtagsSymbolOutline (Scratch.Services.Document _doc) {
doc = _doc;
doc.doc_saved.connect (() => {parse_symbols ();});
Object (
doc: _doc
);
}

construct {
doc.doc_saved.connect (parse_symbols);
doc.doc_closed.connect (doc_closed);

root = new Granite.Widgets.SourceList.ExpandableItem (_("Symbols"));
Expand All @@ -43,13 +48,16 @@ public class Code.Plugins.CtagsSymbolOutline : Object, Code.Plugins.SymbolOutlin
}

~CtagsSymbolOutline () {
doc.doc_closed.disconnect (doc_closed);
debug ("Destroy Ctags outline");
}

void doc_closed (Scratch.Services.Document doc) {
closed ();
}
doc.doc_closed.disconnect (doc_closed);
doc.doc_saved.disconnect (parse_symbols);

doc.remove_outline_widget ();
doc.steal_data<SymbolOutline> ("SymbolOutline");
}
public void parse_symbols () {
if (current_subprocess != null)
current_subprocess.force_exit ();
Expand Down
Loading