Comments (32)
if we add multi-line feature, we need
- separare BG-color and font-color for all lines
- separate Tags (int) for lines
- separate removing of lines from n lines
it is hard to add. I want it simple
from cudatext.
Added.
- add: PROP_CORNER_TEXT supports multi-line text
- add: Editor.get_prop/set_prop: PROP_CORNER_FONT_NAME, PROP_CORNER_FONT_SIZE
from cudatext.
fixed now.
from cudatext.
from cudatext.
or hard-coded padding 2-3 px
from cudatext.
do you know plugins that uses this API?
none. it is very new.
that it doesn't support multiline mode.
yes it does not. LSP diagnostic is bad here - line is long, so last editor line will be overplaced. API is for SHORT lines.
from cudatext.
last editor line will be overplaced
its not a problem, diagnostic will be shown only if caret is on line with error. use case: user reads error text (no need to use mouse at all) and fixes error. and corner text is gone.
from cudatext.
then it is thje same as using embedded dialog at the bottom?
from cudatext.
dialog is for list, list can containt warnings, hints.. dialog can be hidden, Console can be opened (to read prints). so line is very convenient. don't you think? what use cases do you have in mind for this API?
from cudatext.
- show unicode-name of char there
- show 'Vim mode is active' mark
from cudatext.
i see code for displaying "R" for macro recording. is it working? i don't see "R" after using Record macro command.
Lines 3682 to 3685 in 79a98a4
what if lsp will have this feature disabled by default? one line. will it interfere with other plugins?
from cudatext.
I see 'R' after I call 'start/stop macro record' from cmd-palette.
from cudatext.
what if lsp will have this feature disabled by default? one line. will it interfere with other plugins?
it will not.
from cudatext.
I see 'R' after I call 'start/stop macro record' from cmd-palette.
try with "keep_sel_font_color" : true,
from cudatext.
what if lsp will have this feature disabled by default? one line. will it interfere with other plugins?
it will not.
but every ed.set_prop(PROP_CORNER_TEXT, '123')
will overwrite text that was already added there by another plugin.
do you think plugin devs should get existing corner text and add own text to it and the remove what was added in the end?
or API is new and will be changed?
from cudatext.
try with "keep_sel_font_color" : true
fixed.
from cudatext.
do you think plugin devs should get existing corner text and add own text to it and the remove what was added in the end?
yes, I thought that plugins can add the text, or they can restore old text when removing own text.
from cudatext.
reopened if we need to discuss it.
from cudatext.
Simpler multiline painting:
If newlines have been found just paint all lines with the same color.
and no need for tags, etc.
it's ok for plugins to overwrite each others corner text, i think. it's just temporary info. (like statusbar)
from cudatext.
another thing: make non-monospaced font available for corner text.
(this can be enough to read long lsp diagnostic message)
from cudatext.
- add: Editor.get_prop/set_prop: PROP_CORNER2_FONT_NAME
- add: Editor.get_prop/set_prop: PROP_CORNER2_FONT_SIZE
from cudatext.
@veksha if you forgot about it:
- add: Editor.decor: DECOR_GET_ALL now can return all items for given line, if "line">=0
from cudatext.
thanks for new changes!
small issue: if some lines have unicode emoji and some doesn't we will get gaps between them:
from cudatext.
paste the Console command here.
from cudatext.
ed.set_prop(PROP_CORNER_FONT_SIZE, 15); ed.set_prop(PROP_CORNER_FONT_NAME, 'default') ; ed.set_prop(PROP_CORNER_TEXT, '🙂text\n'*3 + 'text2\n'*3 + 'text3')
from cudatext.
i think the border is not working after you added multiline support.
from cudatext.
fixed it too, later. currently ok?
from cudatext.
pulled last changes. yes, now ok.
from cudatext.
good...
from cudatext.
напрашиваются еще настраиваемые интервалы внутри/вне блока
PROP_CORNER_PADDING
PROP_CORNER_MARGIN
PROP_CORNER2_PADDING
PROP_CORNER2_MARGIN
from cudatext.
not needed, IMHO.
from cudatext.
any padding >0 is bad for code: now I use TextOut which fills the BG. with padding: I will need to do additional FillRect..
from cudatext.
Related Issues (20)
- Autocomplete dialog prevents to focus find input on Ctrl+F
- `(without undo) sort` command isn't reliable when word wrap is enabled HOT 6
- Code-Tree Bookmarks plugin, bug with Markdown
- Sometimes, multi-line inputs (`+`) is suddenly enabled in find bar HOT 11
- Error in default.json on MacOS HOT 15
- Caret at wrong position after replace-all HOT 1
- tree_proc API: add node's prop "state image index"
- on_state API event: don't reuse APPSTATE_CODETREE_SET_SELECTION
- Wrapped regex back search doesn't work HOT 26
- Load new file into first instance; font ugliness HOT 7
- "Find first" doesn't work with regex enabled HOT 2
- Command line parameter to go to line does not work in v1.214.x.x HOT 1
- LSP Client not working after adding config for language server HOT 26
- Unable to open Addon Manager or Multi Installer on Windows 10 HOT 9
- Hide popup data HOT 2
- for forum user: test KeyDown, x64 Qt5 version
- "Replace All" break syntax highlighting especially comments HOT 2
- For long CJK lines (len>1024), CJK chars are rendered overlapped HOT 5
- Broken selection when you perform column selection and move mouse out of editor HOT 3
- When doing column selection, cursor shouldn't be displayed at invalid positions at right HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cudatext.