by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
crespyl
@crespyl
I'm running it on a debian VPS atm, but everything else behaves normally. I've have to see if it's any different locally when I get a chance.
*I'll
Greg Chapple
@gchp
considering removing the whole "mode" thing from Iota...
I think the modal editing thing is something that could be implemented as a plugin, and doesn't necessarily need to be built-in
And a good key binding/resolver system would help, so plugins can hook into that
I've been using Atom a lot recently, and I really like how they've approached it
crespyl
@crespyl
That would be interesting. Do you still envision modal/vi-like interaction as the default behavior, just with a "user-space" implementation?
Greg Chapple
@gchp
Yeah, exactly!
How's your rope stuff going?
crespyl
@crespyl
I actually haven't done much with it lately
:(
I need to spend some time tidying things up and adding some real docs
As far as functionality, I need to consider mutability (is it desirable at all, if so, what does it look like), API ergonomics, different types of iterators (grapheme clusters, chars, maybe u8s, starting from different places in the rope), and maybe investigate what it would take to have mmap backed leaf nodes
Greg Chapple
@gchp
Cool!
Adrian
@orangea
Would it be a good idea to temporarily start using GapBuffer<char> or String instead of GapBuffer<u8> until crespyl's rope library (or anything) is ready so that unicode compatibility can start to be implemented? I think it would make things easier
Greg Chapple
@gchp
Yeah, that sounds like a good idea!
Adrian
@orangea
This might be a dumb question, but what's the point of Mark? It looks like it's just supposed to represent a byte index into a buffer, and is only used to keep track of the top-left character position and the cursor position. If that's true, what is the usize for and why is it always 0? I'm confused in part because the mark hashmap is a property of a buffer, rather than a view.
Greg Chapple
@gchp
Marks are used for storing references to places in the buffer. Things like cursor position. Also used for marking the first line the editor should draw to the screen. This is 0 when the first line of the. Buffer is the first line the editor should draw. Say you scroll down a large file though, that number will increase to be the index of the start of the line at the top of the view. Does that make sense?
I think the idea is to also use them for text selection and things too...
Saying that though, not sure why it would be 0 for cursor position? Is that the case when you scroll around too?
And I think my original reasoning for having them on the buffer was that when you switch buffers, you could restore cursor position and stuff to what it was before you switched.
Open to suggestions on all this BTW!
Adrian
@orangea

Thanks for the explanation :)

The reason I said that "the usize is always 0" is that Mark is defined like enum Mark { Cursor(usize), DisplayMark(usize) }, and I looked through the code, and found several places where Marks are constructed, and they are all instantiated with a value of zero. I just don't understand what that number is supposed to mean.

What's the advantage of a Mark over a usize that represents a byte index into the buffer?

Also, was iota designed to be able to have multiple views into the same buffer? It seems like it was because of the Arc<Mutex<Buffer>>

Greg Chapple
@gchp
Hmm, to be honest, off the top of my head I can't remember what the advantage is :) I'll go back through the commit history and see if something sparks my memory!
Yeah, you can have multiple views for a buffer
At least, that's the plan!
Adrian
@orangea
Here's an idea that I want to put out there: when both an operation and a text object are given, is performing the operation from the cursor to that object ever really useful? For example, are there many instances in vi where one might want to use dw instead of daw or diw?
Greg Chapple
@gchp
What does dw do at the moment? I think the text object system was meant to be pretty open ended, so you could basically jump to any point in the document, from any other arbitrary point. Like "the second line down from the cursor" or "the fifth character from the start of the fifth line above the cursor". That sort of thing. The cursor is just one of the positions that can be used as the starting point for a movement. Does that answer your question?
Adrian
@orangea
dw deletes from the cursor to the start of the next word. I was just thinking out loud. A text object at the moment represents a mapping from a buffer to a particular character, and I've been playing around with changing it so that it represents a mapping from a buffer to a range of characters like in vim.
pentlander
@pentlander
Hey I was wonder if there was any consideration for using mio for the main event loop
Greg Chapple
@gchp
@pentlander I looked at it ages ago, but never got around to actually trying it out. Do you think it could work? What would it give us?
pentlander
@pentlander
My thought process was that an event loop could be used for the backend, which could be accessed by either an RPC interface or rust code to make the frontend.
The advantage is that mio is already pretty quick and that there are some async libraries built ontop of it, which would make the async calls a bit simpler to use
Greg Chapple
@gchp
Yeah, that sounds nice!
Unfortunately I've not had much time to give to iota recently, just hacking randomly on a few experimental branches every now and again.
If you want to take a swing at working mio in though, that would be amazing!
Vinícius dos Santos Oliveira
@vinipsmaker
are there plans for something like org-mode in iota?
using the same markup language or something else (like rst or asciidoc)?
slack has a "search button", but I don't see one in gitter. Sorry if this topic is well know already and I should RTFM
Dom Rodriguez
@shymega
vinipsmaker: that would be cool, i agree (org-mode)
Vinícius dos Santos Oliveira
@vinipsmaker
@shymega: I got my eye set on asciidoc. After using for a few days and after spending still more days reading about it and its competitors, I fell in love with it. The only one I didn't look was org-mode. And people use it more because Emacs support than syntax I guess.
Dom Rodriguez
@shymega
vinipsmaker: I want to put something like org-mode in my text editor, but i've not heard of asciidoc much before.
i think it's used for books, or at least, that's what i've heard
both work well
Vinícius dos Santos Oliveira
@vinipsmaker
Well, I've downloaded org-mode manual. I'll check myself if asciidoc would be a good replacement or if it'd be an inconvenient "trying-too-hard" adaptation
Christian Dywan
@kalikiana
Hey
I've made a PR for snap packaging gchp/iota#131 so one could install iota more easily.
You could also enable automatic builds for that, to get new commits pushed to the store, if you're happy with having that
Satish Kumar
@SatishK89340184_twitter
hi guys I had iota token at 5 different addresses. I created new seed , downloaded 2.5 wallet used both seed . published proof. attatced to tangle.. but still 0 balace.. can anyone help please old address where iota was at TSXDLNVGFVGNWXL9AMJYMAPLDUKMV9ABARXW9XKXGZZHVEDLVQEOYJBZHUVAAQCYCDNRSZRWIPRZLGAYCYYHOJBWIW
Satish Kumar
@SatishK89340184_twitter
a m i at a wrong channel ?