This is awesome. Haven't tested it yet, but I noticed:
On Wed, May 03, 2023 at 10:40:40PM -0700, gehn wrote:
>-# If it's already open, switch to it.>-if [ "$SXMO_WM" = "sway" ] && [ -z "$SSH_CLIENT" ]; then>- regesc_termname="$(echo "$TERMNAME" | sed 's|+|\\+|g')">- swaymsg "[title=\"^$regesc_termname\$\"]" focus && exit 0>-fi
Why did you comment these lines out?
--
sic dicit magister P
https://phartman.sites.luc.edu/
GPG keyID 0xE0DBD3D6 (CAE6 3A6F 755F 7BC3 36CA 330D B3E6 39C6 E0DB D3D6)
On Thu, May 04, 2023 at 11:36:39AM +0000, Hartman, Peter wrote:
> This is awesome. Haven't tested it yet, but I noticed:> > On Wed, May 03, 2023 at 10:40:40PM -0700, gehn wrote:> >-# If it's already open, switch to it.> >-if [ "$SXMO_WM" = "sway" ] && [ -z "$SSH_CLIENT" ]; then> >- regesc_termname="$(echo "$TERMNAME" | sed 's|+|\\+|g')"> >- swaymsg "[title=\"^$regesc_termname\$\"]" focus && exit 0> >-fi> > > Why did you comment these lines out?
They are still there, they are below all the new lines.
> > > --> sic dicit magister P> https://phartman.sites.luc.edu/> GPG keyID 0xE0DBD3D6 (CAE6 3A6F 755F 7BC3 36CA 330D B3E6 39C6 E0DB D3D6)
On Mon, May 08, 2023 at 04:55:37AM -0500, Peter John Hartman wrote:
>Thanks, testing locally. Note sure we'd go with this as a default >(resizing windows and edge cases have caused problems with alignments >before), but we might have a 'commented out' version in the hook for >users to try out if they want... or maybe an SXMO_SMS_ALIGNMENT=1?>
Noticed that if I have a text message like this:
Hi, here are some things to be done:
- First, open the door.
- Then, close the door.
- Then, open the door.
This will align everything to the right which breaks up the nice ordered
list I have made in the text. I wonder if we should instead keep align
left but just give it a larger indentation? Not sure if this is
possible though with different screen sizes.
--
sic dicit magister P
https://phartman.sites.luc.edu/
GPG keyID 0xE0DBD3D6 (CAE6 3A6F 755F 7BC3 36CA 330D B3E6 39C6 E0DB D3D6)
On Mon, May 08, 2023 at 12:57:59PM +0000, Hartman, Peter wrote:
> On Mon, May 08, 2023 at 04:55:37AM -0500, Peter John Hartman wrote:> >Thanks, testing locally. Note sure we'd go with this as a default > >(resizing windows and edge cases have caused problems with alignments > >before), but we might have a 'commented out' version in the hook for > >users to try out if they want... or maybe an SXMO_SMS_ALIGNMENT=1?> >
I like this idea a lot. Will work on this.
> > Noticed that if I have a text message like this:> > Hi, here are some things to be done:> - First, open the door.> - Then, close the door.> - Then, open the door.> > This will align everything to the right which breaks up the nice ordered > list I have made in the text. I wonder if we should instead keep align > left but just give it a larger indentation? Not sure if this is > possible though with different screen sizes.
The right alignment is wildly imperfect for sure. In addition to the variable switch for the alignment, i may add an indent variable, which can be 0 or whatever. Ill see what i can do over the next few days.
Thanks for testing this Hartman.
> > --> sic dicit magister P> https://phartman.sites.luc.edu/> GPG keyID 0xE0DBD3D6 (CAE6 3A6F 755F 7BC3 36CA 330D B3E6 39C6 E0DB D3D6)
On Mon, May 08, 2023 at 07:09:25AM -0700, jeff wrote:
>>On Mon, May 08, 2023 at 12:57:59PM +0000, Hartman, Peter wrote:>> On Mon, May 08, 2023 at 04:55:37AM -0500, Peter John Hartman wrote:>> >Thanks, testing locally. Note sure we'd go with this as a default>> >(resizing windows and edge cases have caused problems with alignments>> >before), but we might have a 'commented out' version in the hook for>> >users to try out if they want... or maybe an SXMO_SMS_ALIGNMENT=1?>> >>I like this idea a lot. Will work on this.>>>> Noticed that if I have a text message like this:>>>> Hi, here are some things to be done:>> - First, open the door.>> - Then, close the door.>> - Then, open the door.>>>> This will align everything to the right which breaks up the nice ordered>> list I have made in the text. I wonder if we should instead keep align>> left but just give it a larger indentation? Not sure if this is>> possible though with different screen sizes.>>The right alignment is wildly imperfect for sure. In addition to the variable switch for the alignment, i may add an indent variable, which can be 0 or whatever. Ill see what i can do over the next few days.>>Thanks for testing this Hartman.>>
A couple further observations:
1. It is pretty slow on big sms.txt files. Might look to see if you can
optimize.
2. A couple lines in the patch have extra tabs. Please remove those :)
3. If Group Chat it only moves me to the right. I'd have to check what
other UIs do with group chats, but I'd expect it alternates right / left
every other participant?
4. One idea for the alignment problem discussed above: Can we assume
we'll always have 80 characters? Or can we check that? If < 80 chars
then revert back to a "basic" view without alignment. If 80 chars, then
split at 40 chars: sender align left breaking at 40chars and then
receive align left starting at 40 chars and breaking at 80chars. Maybe?
So:
Hi this is an important message.
I see.
--
sic dicit magister P
https://phartman.sites.luc.edu/
GPG keyID 0xE0DBD3D6 (CAE6 3A6F 755F 7BC3 36CA 330D B3E6 39C6 E0DB D3D6)