YEEESSS!! I finally fixed this weird #CSS overflow bug I had with #CodeMirror, where the surrounding container always expanded in it's width, when passing a certain char count on a line.
I've tried everything: max-width, flex: 0 yada yada, nothing helped.
Until I stumbled across this innocent looking thread:
https://discuss.codemirror.net/t/size-inside-flexbox/1359
The trick:
1. `position: relative` for the surrounding container
2. `position: absolute !important` for CodeMirror itself
Very happy right now!😊
#CSS #codemirror #fixed #webdev
@janriemer #Codemirror 6 by @marijn is great! Used it for my master thesis (https://github.com/niklaskorz/puredit)
𝗦𝗲𝗺𝗮𝗻𝘁𝗶𝗰𝗙𝗶𝗻𝗱𝗲𝗿 - A browser-based semantic search engine you can use to query your own texts!
Demo: https://geo.rocks/semanticfinder/
Blog Post: https://geo.rocks/post/semanticfinder-semantic-search-frontend-only/
GitHub: https://github.com/do-me/SemanticFinder/
Built with amazing open-source software: #SentenceTransformers (all-MiniLM-L6-v2), #transformers.js, #CodeMirror and #Bootstrap. #SemanticFinder
#sentencetransformers #transformers #codemirror #bootstrap #semanticfinder
Doesn't implement many Ex commands, but enough for daily use - :sort and :%s/// for example. Search works, with regex, and navigating search results functions. Etc.
Seems weird that #CodeMirror's README (#Obsidian uses that JS lib for the #vim support) doesn't document a lot of this, but maybe I'm missing a real doc somewhere.
While not entirely certain... i think I've stumbled across something important:
Most people do work using other peoples' applications which don't necessarily map 1:1 to their domain. In my case: I code, but also do a fair amount of product-manager style work. I want to be as productive in my job as when I'm pure coding.
'm making an editor (using #deno, #codemirror) which is super minimal, but is extensible through react components.
Imagine obsidian but open source. #basb #secondbrain
#deno #codemirror #basb #secondbrain
Happy to see you here @marijn! #CodeMirror 6 helped me greatly in implementing the concepts of my master thesis (https://github.com/niklaskorz/puredit), it's an amazing project.
Codemirror ist irgendwie das am schlimmsten dokumentierte Stück Software oder? Kennt sich jemand… damit aus? #codemirror
[[Silver Bullet]], a backlink enabled #opensource #ToolsForThought app https://silverbullet.md/
#TypeScript, #React, uses #CodeMirror as editing interface, #Markdown native, supports Jekyll-style front matter for custom attributes.
Experimental “Google Doc style” real time collab using #Yjs and a central #WebSocket server.
via @walkah
#opensource #ToolsForThought #typescript #react #codemirror #markdown #yjs #websocket