Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/cpeditor/QCodeEditor

Qt Code Editor widget. Now deprecated and will no longer be maintained by the CP Editor team.
https://github.com/cpeditor/QCodeEditor

build: remove the -ansi compile option (#42)

It conflicts with -std=gnu++17 and fails to build with CMake 3.26

ed1196a91dd6415c5ad6d0e85a90630e9b3b9f6c authored almost 2 years ago by Yufan You <[email protected]>
build: update to C++17 (#37)

1. https://invent.kde.org/qt/qt/qtbase/-/commit/6e8ad7201826e75601d902eea741380e37222fc7
req...

dbf8b26defc0df249884ffb6b82c936c5e484f0f authored over 3 years ago by Yufan You <[email protected]>
refactor: small code improvements (#36)

* clazy: Fix clazy-function-args-by-ref.

* clazy: Fix clazy-qstring-arg.

* clazy: Fix claz...

ca5f949b065e23b8a0a75b06b6ffa9df3551368b authored over 3 years ago by Frank <[email protected]>
feat: Press Escape key to cancel select (#35)

* feat: Press Escape key to cancel select

* Address review comments

cf5e3e1cfc3b308045e4747c359bf121adbd20bc authored over 3 years ago by Sonu Lohani <[email protected]>
Use Q_EMIT for compatibility with codebases with QT_NO_KEYWORDS (#29)

32719697664220911921b4c9f3bb09cdb43166ce authored over 4 years ago by Jean-Michaël Celerier <[email protected]>
Merge pull request #27 from cpeditor/fix-performance

perf: fix the performance issue of the line number area

97cdee8a47a0c6d61a1587d23e6f26b870333936 authored over 4 years ago by Ashar <[email protected]>
perf: fix the performance issue of the line number area

This fixes #26.

4b981c43fa3ecc31988c08702f57993deeb4cb08 authored over 4 years ago by Yufan You <[email protected]>
feat: use mouse wheel to change the font (#24)

baf096a7f2d4898913640f9f0bc401659fe2c087 authored over 4 years ago by Yufan You <[email protected]>
Merge pull request #21 from cpeditor/use-stylesheet-instead-of-palette

Use StyleSheet instead of QPalette

ec6dad674a27071cde4e603c4e6d9afa68921ace authored over 4 years ago by Ashar <[email protected]>
refactor: remove palette change and use QString::arg for the stylesheet

1f22cfc55e3cc8a009c0fddb9c5b74e9ea97d6ab authored over 4 years ago by Yufan You <[email protected]>
style: Fix code format

b3f6437e357e7d97d34015d07a33d0fd85c2541c authored over 4 years ago by Ashar Khan <[email protected]>
Update QCodeEditor.cpp

d3881d370562c7d1e4df85cfa8583db79b0929be authored over 4 years ago by Ashar <[email protected]>
refactor: use Qt::endl instead of endl for Qt>=5.14.0 (#20)

endl is deprecated in Qt 5.15

Since QCodeEditor is a library, it's better to support Qt 5.12

2139da3b44315043877fc85ca9719f3f7eac9c86 authored over 4 years ago by Yufan You <[email protected]>
feat: settings for each parenthesis and tab jump out (#19)

* feat: add per parentheses setting and tab jump out

1. Now you can configure each parenthesi...

0b535efd010a571296f1c538003e390c1ae964bc authored over 4 years ago by Yufan You <[email protected]>
fix: fix the screen is not scrolled to the cursor in some situations (#18)

a67aa01767f0e31cad449c21b5a4ec789543a12c authored over 4 years ago by Yufan You <[email protected]>
feat: Make bottom margin customizable and change only when necessary (#15)

Because changing the text frame format affects the undo history, and we
can't access the undo s...

604eac061941bd546ce69513bcf570474688123d authored over 4 years ago by Yufan You <[email protected]>
fix: Fix the behaviour of deleting the current line (#17)

The text cursor should be in the same line and same column after the
operation if possible.

62beeb4a43fe134c4ce855bc31b02d898b39b0d1 authored over 4 years ago by Yufan You <[email protected]>
fix: Process Shift+Enter as pure Enter (#16)

Before this commit, Shift+Enter adds a new line in the same block, and
result in a wrong line n...

69503b5acdb21ecf1920edbe2b39f283a693e112 authored over 4 years ago by Yufan You <[email protected]>
feat: Add bottom margin with the height of a page (#14)

* feat: Add bottom margin with the height of a page

* fix: Fix crash when the document is empty

869eac8b3f73d01621f0f4baff331ee2a458e889 authored over 4 years ago by Yufan You <[email protected]>
fix: Fix Ctrl+Enter and Ctrl+Shift+Enter (#13)

Ctrl+Enter should be the same as End + Enter

Ctrl+Shift+Enter should be the same as Up + End ...

29e30ee30bbec6dbfba9becf906f08b4ad435380 authored over 4 years ago by Yufan You <[email protected]>
feat: Make linting color block in the line number are narrower

Now the linting color block in the line number area is of 7px width.

This also changes the name...

f57ca8a93f8f6c0f655779c58688d20e33907d8f authored over 4 years ago by ouuan <[email protected]>
fix: Delete an indentation when pressing Backspace

This closes #7.

ae5e3a8d102cf34f06c1dd4ef903193ede0ad32e authored over 4 years ago by ouuan <[email protected]>
fix: Fix indentation when pressing enter with cursor in the indentation

The bug:

When it's:

```
<space><cursor><space>
```

And you press enter, i...

fc44a0b1d0755610079118ddda7330b09c871531 authored over 4 years ago by ouuan <[email protected]>
feat: Change the background color of block numbers when squiggling

13376c5d75a47f716cd55db95dd6f14b3d2dcea0 authored over 4 years ago by ouuan <[email protected]>
Merge branch 'language-server'

7b7bf07834a23185e78a3e3582123fa6f04653b7 authored over 4 years ago by Ashar Khan <[email protected]>
refactor: Init comment sequences to silence warnings

e5d668c99537047b32b696cd6d22af1a8694d1e7 authored over 4 years ago by ouuan <[email protected]>
style & ci: Add .clang-format and Check Format workflow

4ffa7bb12543a625d118636f10fbdad610994c89 authored over 4 years ago by ouuan <[email protected]>
Add comment and block comment rules in the highlighters (#12)

This fixes #10.

b644aeb013be503fcfbb7e4d9aa5f57901df6395 authored over 4 years ago by Dmitriy <[email protected]>
feat: Add a simple JS highlighter (#9)

* Add a simple JS highlighter

* Add a JS sample code

49cf6f84ebe3253b53e47185bee303be341750da authored over 4 years ago by Dmitriy <[email protected]>
fix: Use selection background instead of underline for occurrences

This fixes #11.

This is only a workaround. The QFramedTextAttribute solution seems not
possible...

cc3d6a3a21da11de9ae15af8f4a182db5b0d3892 authored over 4 years ago by ouuan <[email protected]>
fix: Use extra selection instead of changing current format and insert

The old method moves the window to make the squiggles visible when
adding squiggles.

b09bbd3fdf84fd7102c0e807b23844d84a1b2052 authored over 4 years ago by ouuan <[email protected]>
style: Format codes and add .clang-format

f3c534fb6d4b47a2351f388133ca0dab1bfce2b1 authored over 4 years ago by ouuan <[email protected]>
feat: Add duplicate current line or selection

The behavior is the same as Sublime Text 3.2.2.

ecb2c3c289f5bcb90011e7be14c17f1e7cfc87a5 authored over 4 years ago by ouuan <[email protected]>
ci: Add GitHub Workflows

1bec856c93fe1b9ed939b58d005a6d4f4cdf7807 authored over 4 years ago by ouuan <[email protected]>
Remove debug position from cursor tracking

0c97525f3d0b625bc3d2d38f07b7230ddc4f92d1 authored over 4 years ago by Ashar Khan <[email protected]>
Fix(clearSquiggle failing on some cases)

In some cases the clear function failed because the stored start and
stop position of underline ...

0e60d616c7a3a388a9b66ad8444d4344e722287c authored over 4 years ago by Ashar Khan <[email protected]>
Improvments and enhancements to API

This commit adds following new changes to QCodeEditor API

1. Pick color for error and warning f...

8c0d19e3a33f870367fbac2eb005b0745be76c4e authored over 4 years ago by Ashar Khan <[email protected]>
ci: Add GitHub Workflows

85fd0622b223f0706eb3909b503b57846ab2e9f2 authored almost 5 years ago by ouuan <[email protected]>
refactor: Use qAbs instead of std::abs and remove std::move

See also: https://doc.qt.io/qt-5/implicit-sharing.html

The header is also formatted.

e2ead14d51872f270569c90db5e89b80689bc435 authored almost 5 years ago by ouuan <[email protected]>
fix: Use QTextCursor::NextBlock instead of QTextCursor::Down

QTextCursor::Down doesn't work as expected when text wrap is on.

e5fcc59da7df9669485634d352a27f14eb9c5aa1 authored almost 5 years ago by ouuan <[email protected]>
build(CMakeLists.txt): Not always build example

To build the example, please use `cmake .. -DBUILD_EXAMPLE=On`

0a90f8fa510c26d45bf8c2d99e8d5aba358e7f0f authored almost 5 years ago by ouuan <[email protected]>
style: Format codes

3ea0f38480938a721e76015a0d634c3724293b81 authored almost 5 years ago by ouuan <[email protected]>
Adds API for squiggle and unsquiggle in QCodeEditor

This commit adds squiggle and unsquiggle method for underlining and
un-underlining the code with...

1fd94e193885c45b2528826190176ea7f970d922 authored almost 5 years ago by Ashar Khan <[email protected]>
fix: Require no undo for auto-close parentheses

It required two undos for auto-close parentheses, now it doesn't
require any.

4bc0e8e4470a0fad3c2497ba405c51aff917a058 authored almost 5 years ago by ouuan <[email protected]>
fix: Add auto-close for quotes

Auto-completion for parentheses was checked before auto-close, because
the left quote and the ri...

d2159629d1865167bdcee20f311b4133db524e10 authored almost 5 years ago by ouuan <[email protected]>
fix: Fix wrong toggle comments, indent, etc. when text wrap is on

This is reported at cpeditor/cpeditor#213.

Qt uses "block" for a real line, and "line" for a li...

0dd0a30159476368b6d94e65fd1bbdac72a55230 authored almost 5 years ago by ouuan <[email protected]>
feat: Add Shift+Delete for deleting the current line

47ead6eff6087720576e9cdfd60df90775786eb9 authored almost 5 years ago by ouuan <[email protected]>
feat: Add toggle block comment for Java

c3128f624210ba0b993d78fc8ad25f2af0ee1787 authored almost 5 years ago by ouuan <[email protected]>
fix: Unindent when Shift+Tab but not Ctrl+Shift+Tab

This will enable Ctrl+Shift+Tab to switch to the previous tab

666b28a4c8ad74a6a5ea8d42c65402a73f3c7f1b authored almost 5 years ago by ouuan <[email protected]>
fix: Update number regex for Java

Reference:
https://docs.oracle.com/javase/specs/jls/se6/html/lexical.html#48272

Draft:

Decimal...

11f5647502e2295bd93c48c79da0e767ec16f389 authored almost 5 years ago by ouuan <[email protected]>
feat: Add toggle comments for Java

9e276cfef6afe76d3bd78996049104517311d634 authored almost 5 years ago by ouuan <[email protected]>
Add Java highlighting from Megaxela#38

58dc90e725af73140ba2ba04489e834c73b4628d authored almost 5 years ago by ouuan <[email protected]>
Added basic Java highlighting

46a56792fbedbc43eae946e3d400d1f7777478e3 authored almost 5 years ago by Taylor Holberton <[email protected]>
feat & fix: Add insert line before/after, fix auto indent

Ctrl+Enter: insert line after, like `o` in vim.

Ctrl+Shift+Enter: insert line before, like `O` ...

d5f3be3aa499b0f47e7300acd199afff3f789609 authored almost 5 years ago by ouuan <[email protected]>
fix: Use single insert for auto indent

This will prevent multiple redos for a single indent.

ddf94e2a79f1f56aef10c07ea05fee1a92970c59 authored almost 5 years ago by ouuan <[email protected]>
feat: Set tab stop distance in set tab replace size

12fc3175371d18328f781a6ad2283b6d8169ac56 authored almost 5 years ago by ouuan <[email protected]>
feat: Add auto remove parentheses

This closes ouuan#3.

6f5950cb9d3381a5b7229b6e78d1766583df53c6 authored almost 5 years ago by ouuan <[email protected]>
fix & refactor: Better auto indent

1. Replace the confusing code with a much more concise one.

2. Works with mixed spaces and tabs...

daebc1a6ec4b939c1118df69ab791ea76d5b5e93 authored almost 5 years ago by ouuan <[email protected]>
Enhance Qt backward compability. (#34)

200bf8bb952501396353b65568c963f74f228058 authored almost 5 years ago by Frank <[email protected]>
Enhance Qt backward compability. (#34)

dc644d41b68978ab9a5591ba891a223221570e74 authored almost 5 years ago by Frank <[email protected]>
fix: Auto-indent for single "{" without "}"

The bug: there was no auto-indent for a single "{" without "}".

This bug was introduced in Mega...

7ca15611da3be20c947fc471e727e56786726316 authored almost 5 years ago by ouuan <[email protected]>
fix: Fix bug of toggleComment when the line is empty

Empty lines don't match /\S/, so change the regex to /\S|^\s*$/ will
match the right place for b...

6d53f6bbe6a284b24e410769c023d23fef35cafd authored almost 5 years ago by ouuan <[email protected]>
refactor: Make shortcuts slots

These slots are added:

/**
* @brief Slot, that indent the selected lines.
*/
void indent();

...

df7a31232adcd69365a7bb7cca03afb3aaa44cf8 authored almost 5 years ago by ouuan <[email protected]>
feat: Add Shift+Ctrl+K for delete selected lines

bcc66044114421aa70d571a576d1af84295c7feb authored almost 5 years ago by ouuan <[email protected]>
feat: Shift+Ctrl+Up/Down for swapping lines

682a7b7d4ea39372bff232722f39fcbb35f0c242 authored almost 5 years ago by ouuan <[email protected]>
feat: Add toggle comments shortcut

1. Single-line comments

- shortcut: Ctrl + /

- before:
```cpp
foo
bar
...

02388936b457027d6e8204f3a68a4025cdcd4470 authored almost 5 years ago by ouuan <[email protected]>
refactor: Add functions to remove/add in each line of selection

/**
* @brief Method for remove the first group of regex
* in each line of the selection.
* @p...

7f6a6e0fc8ff80806ccb28e62790eb910f793d02 authored almost 5 years ago by ouuan <[email protected]>
feat: Add parentheses for selections

For example, if the selected text is `foo` and you press `{` and
autoParentheses is on, the text...

854dee434666fedd3855cae6ded0c78bc96ba43e authored almost 5 years ago by ouuan <[email protected]>
fix: Highlight occurrences for identifiers and numbers only

In the old version every multiple occurrence is highlighted, such as
tabs. It was very confusing...

c92c6d1702b2620eb09579e92fee10bd924e82a1 authored almost 5 years ago by ouuan <[email protected]>
style & fix: format codes & underline occurrence other than frame

The occurrences were framed, but it sometimes cost a long time which is
perceptible by the users...

2a2e66ea362cda7234e95e4e2e0b244d6303ed28 authored almost 5 years ago by ouuan <[email protected]>
feat: Add tab for multiline indent

b3e27a3a4c053e20c9a390df0f9f2dc7042fa660 authored almost 5 years ago by ouuan <[email protected]>
feat: Shift+Tab for unindent

2c145bd8293c97664bbf8632a6769194f5a1b282 authored almost 5 years ago by ouuan <[email protected]>
style: Format codes

712bc1aff311a5ac0bdc056679410da2c9e3238f authored almost 5 years ago by ouuan <[email protected]>
chore: use tabStopDistance instead of tabStopWidth (#32)

10bca37b70a23b00375878f5c3b2632048c38afe authored almost 5 years ago by ouuan <[email protected]>
Merge pull request #30 from PeterMortensen/patch-1

48e12af5eef5610b7967f6ff05b88a245435f8d3 authored almost 5 years ago by Alex <[email protected]>
C++ highlighting regex updates (#33)

53eb80396107c0f5e160d04255ac433caa9dc2c8 authored almost 5 years ago by Alex <[email protected]>
Indent with both Enter Keys (#31)

fdc5cab1e06c050038c444ba2dbacb8e52fd20b5 authored almost 5 years ago by Ashar <[email protected]>
feat: use a better regex for deftype

ead3d141557b099dfd09781a9785470625510ac2 authored almost 5 years ago by ouuan <[email protected]>
feat: use a better regex for functions

5337897cce609dad186786c0e603e983e47898aa authored almost 5 years ago by ouuan <[email protected]>
fix: use a better regex for C++ include

be4194c8e87ac096f27c317e8cb4935fd419daeb authored almost 5 years ago by ouuan <[email protected]>
Updated README.md

Copy edited (e.g. ref. <https://www.youtube.com/watch?v=1Dax90QyXgI&t=17m54s>).

e0cfb330e09c3454eaa3a123901d459ce2a6701e authored about 5 years ago by Peter Mortensen <[email protected]>
fix(QCXXHighlighter): fix highlighting for numeric literals (#28)

d7130539d6f135b1a79df917d3963f720876428a authored about 5 years ago by ouuan <[email protected]>
Use Q_SLOTS macro instead of slots for boost signals compatability. (#22)

6152b5f6ad06b3a91b3553a94d4fada59ce26d22 authored about 5 years ago by Frank <[email protected]>
Enhance Tab replace, Auto-parenthesis for single quote, better {} (#19)

4791fee3ec9e3156334f5ffb1acb492b22c8890c authored about 5 years ago by Ashar <[email protected]>
feature ci: add travis build (#5)

48873c805d071aafaf1d3295566a01498d196dd4 authored about 5 years ago by Alex <[email protected]>
bugfix editor: fix parentheses highlight (#15)

d60d6fed337e74d694b6f2eed96761dd7e927a4b authored about 5 years ago by Alex <[email protected]>
Merge pull request #12 from coder3101/coder3101-line-number-contrast

fix #11, Adds contrast for line numbers.

d18d6b1f812046817781faefd054d7690c9ca6f1 authored about 5 years ago by Alex <[email protected]>
Merge pull request #13 from coder3101/coder3101-improve-cxx-autoindent

Improving CXX Auto-Indentation

a9a8dfa15001d4f29ed4bfff45a439206c25a55d authored about 5 years ago by Alex <[email protected]>
Merge pull request #10 from coder3101/fix-comment-highlight-cxx

Fix #9 Comment highligting mistake

7a7b3f49580dfabfd2e00bc199d6785d30460d0d authored about 5 years ago by Alex <[email protected]>
Improving CXX Auto-Indentation

The above changes should only affect the C++ language (if user has set the highlighter to C++). ...

aee0836c6622de2767f54c212ac8852955d27dd0 authored about 5 years ago by Ashar <[email protected]>
fix #11, Adds contrast for line numbers.

7c52ac568709b79cb86afe26913cf5d11021ae27 authored about 5 years ago by Ashar <[email protected]>
Fix Comment highligting mistake

`/` was set as one-line comment starter. changed it to `//` the correct one-line highligher.

4280aba5f4b44b0bb1d8326b33f979102c430175 authored about 5 years ago by Ashar <[email protected]>
add license file and fix python highligher output

6c6ad9257dd11dc35f4a3bccc3ca35108305e0a7 authored about 5 years ago by Megaxela <[email protected]>
Merge pull request #4 from dov/python

Initial python completion and highlighting support

8b36df7ae1fc751511a0d93d31c30483055ff52c authored about 5 years ago by Alex <[email protected]>
Initial python completion and highlighting support

f5e4ba2725c1f4f521da147cdf5374cc4386edb7 authored about 5 years ago by Dov Grobgeld <[email protected]>
Merge pull request #1 from IMelker/master

Added Lua highlighter

e969aedf09f27f1041ece35c9b02761d3e9bca44 authored about 5 years ago by Alex <[email protected]>
Added Lua highlighter

580aaf9ce583d7c79d2759a6c1213406b4797037 authored over 5 years ago by IMelker <[email protected]>
Updated resources filename.

4026bd67ecad2be81dc5d356f5d367f21a72211d authored over 6 years ago by megaxela <[email protected]>
Fixed crash on frame selection usage.

Fixed frame selection remove from last line.

ac9d3fad186204b12d1fb20e7ea3f39bf4977c44 authored over 6 years ago by megaxela <[email protected]>
Added frame selection.

441122bc8013fd734365c1c5f5f03532484e2acd authored over 6 years ago by Megaxela <[email protected]>