Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
AmericanY
@AmericanY
before i was using /root/.config/fish/functions/fish_title.fish
idk why the function changed from fish to theme because i was use the same query before and it was telling me it's /root/.config/fish/functions/fish_title.fish but now it's changed to be /root/.config/fish/functions/theme-pure/functions//fish_title.fish which i've edited it now with the title and it's works fine
Fabian Homborg
@faho
Well, because you're using the pure "theme". That apparently changes your function path.
Isaac Freund
@ifreund
hey, could someone tell me if it's possible to change the foreground color of text highlighted in vi mode? fish_color_selection sets the background correctly but the foreground stays the same
Fabian Homborg
@faho
@ifreund The selection foreground is $fish_color_normal. Which would also change a whole bunch else, so you probably don't want to change it.
Isaac Freund
@ifreund
@faho thanks, and yeah that's too bad
I assume there's something technical preventing simply using the foreground from fish_color_selection? If not I may need to try and implement that
Fabian Homborg
@faho
I don't think there is. I'm not entirely sure how the highlighting system operates, it's in reader.cpp (reader_data_t::repaint() should be of interest) and highlight.cpp if you want to take a shot.
Isaac Freund
@ifreund
Fabian Homborg
@faho
The major problem with that is the upgrading experience - if we change it, we'd have the selection color in the foreground. Which isn't an issue for new users (just define it with "--background"), but existing users would have to rewrite the variable.
Isaac Freund
@ifreund
interesting, setting it to -r does exactly what I was looking for compiled from the master branch
it sets the foreground to my terminal's background and the background to my terminal's foreground
doesn't work on 3.0.2 from the arch repos though
Isaac Freund
@ifreund
oh wait, that versions like a year old. Looks like 3.1.0 may be getting close though
Adrien D.
@dtrckd
Hello there,
Do you know how I could define this alias alias vpasteclean="xsel | sed 's/ *$//' | xsel -bi" that visibly fails on the $ symbol ?
Ok, I guess escaping the $ solved the issue :p
enzotib
@enzotib
@dtrckd probably it is enough to escape the $, as in \$
ah, sorry, you already find it
Adrien D.
@dtrckd
yes, thanks anyway :))
David Adam
@zanchey
hm, tests/checks/threads.fish and tests/checks/deep-cmdsub.fish seem to be testing the same thing?
Fabian Homborg
@faho
@zanchey Yeah, I added threads @ridiculousfish added the other one. It's fine to delete threads.fish.
Michael Jarvis
@mojoTX

Dumb question regarding the upcoming 3.1 release...

I know there's an Integration_3.1.0 branch, and of course there's still the master branch.

It is my understanding that the "Integration_3.1.0" branch is the "release branch," and will become 3.1 in the near future, while "master" continues to be the bleeding edge of development.

Is that correct? Or do I have it backwards? Mostly, I'm just curious if I should be building fish from source using the Integration_3.1.0 branch, or if I should continue building from master.

Fabian Homborg
@faho
@mojoTX Correct.
Adrien D.
@dtrckd

Hi all, I have a case where fish doesn't understand me, he thinks I am giving it an option while it's a string ! What do you think about it ?

$ string match -rqa 'doh'  '-not_an_otption'
string match: Unknown option “-not_an_option”
[...]

It is the same the other way around. Is it a know behavior ?

Fabian Homborg
@faho
@dtrckd: That "-not_an_option" looks like an option. You need to use -- to stop string looking for options:
string match -rqa doh -- -not_an_option
Yes, the quotes here do nothing, as there are no characters here that are special outside of quotes.
This is similar for most unix programs - if you want to add a file called -not_an_option to git, you'd have to use git add -- -not_an_option.
Adrien D.
@dtrckd
Ok, thank you, I was no aware about this subtility. Thanks for the great reactivity :)
Chris
@ipatch
never knew fish was a guy
Fabian Homborg
@faho
Ironically, the shell known as "fish" wasn't started by the person known as "ridiculousfish".
Nominative determinism, I guess.
Nicholas M. Glykos
@glykos
:)
Chris
@ipatch
i'd like that fish is a shell that chooses to indentify with whatever gender it prefers
ridiculousfish
@ridiculousfish
some fish change genders over their life
Fabian Homborg
@faho
Including clown fish. Finding Nemo should have been quite different.
Jason
@ohk2kt3t4

With string replace, is it possible to apply case conversion to the replacement string?

According to this: https://www.regular-expressions.info/replacecase.html
it should be possible with PCRE2 however I cannot get it to work

tried this:
echo "delthis/uppercasethis" | string replace -r '^delthis/(.)?' '\U$1'
but it does not upper case it:
uppercasethis

Found this in fish's pcre2-10.32/src/pcre2.h.in but cant tell if the value is to enable it or not

#define PCRE2_SUBSTITUTE_EXTENDED 0x00000200u

enzotib
@enzotib
@ohk2kt3t4 echo "delthis/uppercasethis" | string replace -r '^delthis/(.)?' '\\\U$1'
Jason
@ohk2kt3t4
@enzotib Thank you! Feel so dumb now
enzotib
@enzotib
I should admit that it is not completely clear to me why we need three (or four) backslashes
Jason
@ammgws
Is there a fishy way to do ... | head -n 5?
Fabian Homborg
@faho
@ammgws There's no shame in using head -n 5. Or you could use (...)[1..5].
Chris
@ipatch

some fish change genders over their life

does that mean fish will be written in rust eventually?

AmericanY
@AmericanY
good new fish has been listed under Centos 8 finally
❯ yum search fish
Last metadata expiration check: 0:12:57 ago on Thu 23 Jan 2020 12:37:30 AM EET.
===================================================================== Name Exactly Matched: fish ======================================================================
fish.x86_64 : Friendly interactive shell
Lauter Fressen
@FressenLauter_twitter
Hi I am on fish 3.0.2, I'd like to know if there is any possibility to create a keybinding using the super/mod4 key
Nicholas M. Glykos
@glykos
Have you tried fish_key_reader ?
Lauter Fressen
@FressenLauter_twitter
Thanks for the suggestion. I tried 'fish_key_reader' and it looks like super key is ignored. I guess this means it is not supported.
Nicholas M. Glykos
@glykos
Depending on your circumstances maybe you can bypass fish and use setxkbmap ?
matrixbot
@matrixbot

taigaforest > Hi I am on fish 3.0.2, I'd like to know if there is any possibility to create a keybinding using the super/mod4 key

Could you do it with your window manager/desktop environment.?