Comments (5)
Comment by desplesda
Sunday Feb 28, 2016 at 03:41 GMT
Apologies if you’ve already looked, but have you checked out the documentation for ACE, the code editor that Yarn is using?
https://github.com/ajaxorg/ace/
On 28 Feb 2016, at 2:32 PM, tekknobabblr [email protected] wrote:
I'm trying to implement word wrap in the editor window. Been researching for hours now and no luck lol. It seems like it should already be working, based on what I've seen, since Yarn uses "TextArea".
Here's what we're seeing now:
https://cloud.githubusercontent.com/assets/11084079/13377227/f508d8ce-dd9f-11e5-853f-528ba0e81461.jpg
And a mock-up of what I'm thinking (how word wrap works in Notepad++, for example):https://cloud.githubusercontent.com/assets/11084079/13377262/5d900498-dda1-11e5-8399-e753ec239ed8.jpg
Anyone have any ideas?—
Reply to this email directly or view it on GitHub InfiniteAmmoInc/Yarn#24.
from yarnclassic.
Comment by tekknobabblr
Sunday Feb 28, 2016 at 04:27 GMT
Ooh, no I have not! Thanks!
I got it! I added editor.getSession().setUseWrapMode(true);
to knockout.ace on line 26, and that did exactly what I was looking for!
from yarnclassic.
Comment by desplesda
Sunday Feb 28, 2016 at 13:17 GMT
Cool! You should open a pull request, so that @InfiniteAmmoInc can merge it into the main app!
from yarnclassic.
Comment by tekknobabblr
Sunday Feb 28, 2016 at 19:38 GMT
Still a noob at GitHub, but I think I did it right lol.
Not sure if this is something that would go in the main branch yet or not, though. I mean, I wanted word wrap, but is that something everyone would want? Seems like something that will need a checkbox implemented to turn it on or off.
from yarnclassic.
Comment by charblar
Tuesday Jun 12, 2018 at 14:38 GMT
Resolved in PR InfiniteAmmoInc/Yarn#25, closing.
from yarnclassic.
Related Issues (20)
- Clearing search field snaps back to origin HOT 7
- Spell check underline ignores tabs in text HOT 2
- Save doesn't save in the origin format HOT 10
- Crash after selecting language pt-BR HOT 11
- Option to choose the colors of the arrows between nodes HOT 17
- Yarn Editor cant not save file HOT 17
- Editor freezes on start/takes too long to load HOT 9
- Editor can't remember last used save format after new file HOT 7
- pwa deployment broke due to gh-pages no longer working with a password HOT 1
- Live Web APP not working. HOT 3
- new node is not created in the middle of screen on mobile/portrait mode HOT 1
- edit text body field not in focus when opening a node (desktop) HOT 1
- usability improvement: improve the order of edit node menu entries HOT 2
- try to improve PWA load time HOT 4
- Add build parameters - to reduce deploy size HOT 1
- Save (Ctrl-S) converts yarn dialogue structure into json and can't open it afterwards HOT 9
- The ink parser using wasm makes the app heavy - see if we can use just inkjs to playtest/save ink files HOT 1
- increase the 5mb local storage limit to 50mb HOT 2
- Have an option to have the Yarn Editor open with a new file each time HOT 3
- Live preview can't handle shortcut options (->) HOT 2
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 yarnclassic.