Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 15 23:41
    krader1961 commented #1338
  • Jun 15 23:12
    kolbycrouch opened #1338
  • Jun 15 22:41
    krader1961 opened #1337
  • Jun 15 19:29

    xiaq on master

    Add appropriate build tag on te… (compare)

  • Jun 15 19:22

    xiaq on master

    Test the exec builtin command. (compare)

  • Jun 15 18:23

    xiaq on master

    Increase coverage of pkg/eval/v… pkg/eval/vals: Test expected pa… Make the kind of int, *big.Int … and 1 more (compare)

  • Jun 15 16:58

    xiaq on master

    Remove pkg/eval/vals/testutils.… (compare)

  • Jun 15 16:47

    xiaq on master

    Bump the version of prettier to… Fix unused symbols found by sta… (compare)

  • Jun 15 15:24
    xiaq closed #1336
  • Jun 15 15:24
    xiaq commented #1336
  • Jun 15 15:22

    xiaq on master

    website/ref: Update docset URL … (compare)

  • Jun 15 15:01

    xiaq on master

    Fix coverage fluctuation. A te… (compare)

  • Jun 14 23:22

    xiaq on master

    Link to docset feed. (compare)

  • Jun 14 23:11

    xiaq on master

    Convert mkdocset to POSIX sh sc… (compare)

  • Jun 14 21:50

    xiaq on master

    Add scripts for generating Docs… Remove navbar and hide ToC in d… Don't remove language.html; som… and 8 more (compare)

  • Jun 14 21:49

    xiaq on docset

    Replace the @elvdoc macro with … Fix the file module's elvdoc. … Remove the -dir flag of elvdoc.… and 2 more (compare)

  • Jun 14 20:58

    xiaq on master

    Fix elvdoc for file:close and p… (compare)

  • Jun 14 14:20

    xiaq on b1220

    (compare)

  • Jun 14 14:20

    xiaq on gitlab-ci

    (compare)

  • Jun 14 14:20

    xiaq on num

    (compare)

xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
I keep putting off making that change - the change itself is not hard, but since I don’t want to break existing working code, I want to provide an auto-migration tool for it, which is much more work
2 replies
shomodj (Telegram)
@telegram_12713069:elv.sh
[m]
maybe a feature flag to turn it on? so that the code written now can be validated?
zzamboni (Telegram)
@telegram_278300093:elv.sh
[m]
Agree, that would be quite a lot of manual work, particularly since it would not be trivial to do it correctly by textual search/replace, so working from Elvish's internal representation would be the way to go I guess.
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
Exactly - deciding whether “foo = bar” should be converted to “var foo = bar” or “set foo = bar” requires knowledge of the scope, which can’t be done just by text processing, but it is some information that the Elvish compiler knows
zzamboni (Telegram)
@telegram_278300093:elv.sh
[m]
👍
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
19
ilyashe (Telegram)
@telegram_262639202:elv.sh
[m]
I see... Tough situation
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
I am using github.com/zzamboni/elvish-modules/terminal-title but it seems not working. My tmux pane name is stuck to be elvish. Will really appreciate if anyone could give me a pointer of how to troubleshoot :-) Thanks
it works for Terminal.app but not for tmux. I guess it's the control chars?
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
:point_up: Edit: I am using github.com/zzamboni/elvish-modules/terminal-title but it seems not working. My tmux window name is stuck to be elvish. Will really appreciate if anyone could give me a pointer of how to troubleshoot :-) Thanks
nvm i am working around using tmux rename-pane
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
I think tmux uses a different escape sequence: https://stackoverflow.com/questions/9747952/pane-title-in-tmux
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
i tried \033]2; with \033\ but no luck
i guess that is because it sets the pane name
and what i want to do is to set the window name
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
Right. I think this is what you need:
allow-rename [on | off]
Allow programs in the pane to change the window name using
a terminal escape sequence (\ek...\e\).
You need to do a "set -g allow-rename on", and use that escape sequence
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
hmm still not working
let me try another escape sequence
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
But the problem is that the name will stick even if you switch to another pane
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
right...
that's fine for most cases though...
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
I remember I tried getting tmux's window title to work a long time ago and eventually gave up :)
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
the thing is automatic-rename does not work as in other shells... i have no idea why
haha maybe i would just use tmux rename-window for now
i tried other sequences but still not working
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
What makes Elvish special is that it doesn't have job control - so it always runs in the foreground, and this breaks tmux's automatic detection of which program you're running
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
i see
btw is there a way to support Ctrl-Z?
i guess no because there is no job control?
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
Correct
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
got it, thanks haha
that is a little bit inconvenient 🙈
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
I’m open to adding job control, but it’s quite low-priority for me since I personally never use it
Since you already use tmux, is there a particular workflow that you can’t do by opening another pane in tmux?
dotkrnl (Telegram)
@telegram_71033232:elv.sh
[m]
no really. it is just a habit bc sometime i do not have tmux running
like a muscle memory and sometimes just would not think if i have tmux now
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
I see. You'll have to manage without job control, unfortunately. Contribution is welcome too. :)
kolbycrouch
@kolbycrouch
Hi all. I've got an experimental fork of elvish with use supporting go plugins. I'd like people to look at it before a PR since it might be a breaking change. Check it out at https://github.com/kolbycrouch/elvish-plugins
kolbycrouch
@kolbycrouch
I should elaborate. That repo has a script and some plugins I had messed around with for the last year or so. The actual elvish fork is a submodule in that repo. It changes the use keyword to check the extension of the module argument, if it's ".so" it loads the plugin and returns the Ns symbol from it.
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
Neat. AFAICT the change is pretty small, so feel free to open a PR directly
One thing I realized is that plugins require cgo, which breaks reproducible build and cross-compilation, and introduces a dependency on libc (which is primarily a problem on Linux)
pontaoski (Telegram)
@telegram_765890046:elv.sh
[m]
it's common to fork a process and do IPC with it for plugins on go to bypass the limitations of the native plugin system
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
So I won’t provide prebuilt binaries that have plugin support, and interested users will have to build Elvish from source. This is still better than you having to maintain a fork though
pontaoski (Telegram)
@telegram_765890046:elv.sh
[m]
there's some libraries that make that easier
xiaqqaix (Telegram)
@telegram_84517825:elv.sh
[m]
@pontaoski I’m aware of that approach, but it’s both more complicated and has limitations like you can’t introduce new data types
It also requires copying the data back and forth, which is probably not going to be a serious constraint for anything people do with Elvish though
zzamboni (Telegram)
@telegram_278300093:elv.sh
[m]
Anyone has some code for integration of conda with Elvish?