Comments (17)
The reason is because I refill every toot by default. Obviously in this case it'll give a bad output. Maybe we could have a refill option. And if you ask, the reason for the refill is to be able to add box around retoot. Else, very long lines are weird. Maybe I can also have my own refill function only for this case.
from mastodon-alt.
Same here. I had to change 2 to 5, for some reason, in this line
Line 526 in ca70d48
from mastodon-alt.
@csantosb But this does not fix the alignment issue, does it?
from mastodon-alt.
Yes, it does for me.
from mastodon-alt.
The alignment issue is not fixed but the status line is displayed in a single line when i use 6 or 5 instead of 2 as indicated in #10 (comment)
from mastodon-alt.
I think the alignment issue might be linked to the presence of a fringe on the left. I shoud align to the the right fringe (which is equal to right when no fringe I think)
from mastodon-alt.
I've noticed the same issue and find that it's most annoying when the
toot contains bullet-pointed/enumerated lists, which each item in the list separated by a single line-break.
@rougier you mentioned this is to do with refilling the toot body – is there not a way to parse the text before refilling and add an extra line-break where the original text had one? I.e. \n
-> \n\n
first, and then after refilling, long-lines are truncated by a single-line break.
from mastodon-alt.
I suspect Emacs has certainly a function to do that but I don't know the name. For example, visual mode might be an option but I do not know the exact algorithm. Any suggestions welcome.
from mastodon-alt.
I tried a few things, but I actually find that simply replacing
(string-fill content (min (- (window-width) 2) fill-column))
with just
content
seems to fix this, with few ill effects compared to the prior situation. Of course, it persists inside boosted toots, but that seems reasonable enough for me at the moment.
from mastodon-alt.
I tried a few things, but I actually find that simply replacing
(string-fill content (min (- (window-width) 2) fill-column))
with just
content
seems to fix this, with few ill effects compared to the prior situation. Of course, it persists inside boosted toots, but that seems reasonable enough for me at the moment.
I can confirm the same.
from mastodon-alt.
What do you mean by "it persists inside boosted toots"?
from mastodon-alt.
from mastodon-alt.
So maybe an option that points on refill, no-refill or user defined function might be the easiest, what do you think?
from mastodon-alt.
So maybe an option that points on refill, no-refill or user defined
function might be the easiest, what do you think?
If you mean that there should be some (defvar mastodon-alt--toot-refill-p t)
, where we modify the code above so that we have
(if mastodon-alt--toot-refill-p
(string-fill content (min (- (window-width) 2) fill-column))
(content) )
then I am inclined to agree. Maybe there are still some bugs in the (content)
fix that haven't cropped up for me but will crop up for others.
from mastodon-alt.
Exactly. Care to make a PR?
from mastodon-alt.
OK, see the following (which includes a fix for the status line issue too): #23
from mastodon-alt.
Same here. I had to change 2 to 5, for some reason, in this line
Line 526 in ca70d48
this does for me
from mastodon-alt.
Related Issues (9)
- Seems to be a mismatch with `mastodon-alt` vs `mastodon-alt-tl` HOT 1
- Colour of box borders HOT 2
- Compute right-aligned status indicators not in characters, but pixels? HOT 4
- Counters and Indicator for Boost, Favourite and Bookmark HOT 14
- Difference in display from Codeberg Readme HOT 2
- Fixing spillover of toot status HOT 5
- Toggle folding of content warnings by default? HOT 5
- Renamed defuns in latest matodon 1.0.13 HOT 4
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 mastodon-alt.