Martin Bähr | 18 Apr 07:40 2014
Picon

wishlist history and search

hi,

quite often i want to search for multiple terms in the history when those terms
are not in a sequence.

currently typing
foo bar<up-arrow>

will search for exactly "foo bar",
but i'd also like to see any results that contain "foo" and "bar" with other
stuff in between.

maybe exact matches first, then matches with "foo" and "bar" in order followed
by matches with them in any order.

btw, i saw someone suggesting to search based on the directory, that's a nice
idea too, moreover, i am occasionally browsing the history to reconstruct what
i did in a certain directory.

occasionally i am then coming across commands where i wonder in which directory
i was running them. so if the history could be augmented with the working
directory of each entry, even if it doesn't get used in search, just having
that information would be of great help.

greetings, martin.

-- 
eKita                   -   the online platform for your entire academic life
hackerspace beijing     -                                    http://qike.info
--

-- 
(Continue reading)

Martin Bähr | 18 Apr 07:33 2014
Picon

subshell sort of

hi,

i have been struggling with this recently:

how do i run a sequence of commands in a loop without affecting the
environment, most notably the working directory:

in bash i can run this:

for i in */; do (cd $i; echo "i am at $i"); done

in fish it seems i need to remember where i was and make sure i get back to that.
sometimes though it would be nice not to have to worry about that

greetings, martin.

-- 
eKita                   -   the online platform for your entire academic life
hackerspace beijing     -                                    http://qike.info
--

-- 
chief engineer                                                       eKita.co
pike programmer      pike.lysator.liu.se    caudium.net     societyserver.org
BLUG secretary                                                 beijinglug.org
foresight developer  foresightlinux.org                            realss.com
unix sysadmin
Martin Bähr          working in china        http://societyserver.org/mbaehr/

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
(Continue reading)

Maxim Jankov | 13 Apr 21:17 2014
Picon

How can I setup fish shell prompt to be in a different color?

I've seen a screenshot of zsh configured to have prompt with a
different color and background, and it looks like a very usable tweak:

http://i.stack.imgur.com/DUqIh.png

How can I set up something like that?

(Sorry if that's not an appropriate place for this kind of questions).

--

-- 

Best regards,

Max Yankov

Phone: +7 903 155-75-14
Email: golergka@...
Skype: golergka

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Alan Schmitt | 10 Apr 08:42 2014

fish and emacs

Hello,

I really like fish, and I also really like emacs. So I'm looking into
using fish in a terminal running inside emacs. Most things work well,
with a few caveats. For instance, I have an extra character each time
I enter a command:

,--------------------------------
| schmitta <at> top-wifi ~/D/Inbox> cd
| ⏎
| schmitta <at> top-wifi ~> 
`--------------------------------

I'm using `ansi-term' as terminal emulation.

I was wondering if someone knows where this extra character comes from.
If you have any tip on making emacs and fish work better together, I'd
gladly take them.

Thanks,

Alan

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
(Continue reading)

Martin Cigorraga | 10 Apr 04:49 2014
Picon

[ Idea ] Use a modifier together with UP/DOWN arrows to browse local directory history

Hi again, this is another trick I've been looking for since ever:

To start browsing global history you press the UP arrow; sometimes -  well, many, many times I would dare to say - what you really want/need is to browse the *LOCAL* history.

Modifying the scope of the history browsing with a modifier key (like SHIFT + UP for local history browsing) will be a great thing!

Is it even possible to configure Fish this way?
If not, would you please consider adding this feature?

Many thanks!
--
/Martin
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Martin Cigorraga | 10 Apr 04:41 2014
Picon

[ Idea ] Command suggestions based on path's history

Hello all, a Fish n00b and -already a- worshipper here.

I would like to know your opinion about presenting suggestions based on path's history in contrast to global suggestions - as we are commonly used to.

As I often find myself doing the same repetitive stuff at the same places all over again (a good part of systems' administration is quite repetitive) a really nice feature for me would be that the shell suggests me completions to the commands I issue based on the history of the path I'm standing at - the "local" history in contrast with the "global" history.

Please take a look at this example:

~> mkdir a; and cd a
~/a> ls -lah
total 8,0K
drwxr-xr-x 2 user users 4,0K Apr  9 20:08 ./
drwxr-xr-x 4 user users 4,0K Apr  9 20:08 ../
~/a> ..
~> ls -rtF
a/
~> cd a
l~/a> ls -rtF <-- with ls arguments grayed out.

For me it would be really useful that once again in "a" I am offered with "ls -lah" instead ls -rtF as in this example ls -lah "takes relevance" over ls -rtF.

*Note: the way Fish actually shows suggestions when browsing history, first the ones relevant to the local path and then completing with the global history is just perfect.

//
On a side note I would like to thank everyone involved with Fish's development as I've been using it as my main shell since a month or so and I already know I can never look back to other traditional shells.
Fish is one of those apps that you don't realize how desperately you need it until you start using it, just like tmux or GNU Screen, Emacs or Vim.
Since I started using Fish I _barely_ miss the 138 aliases I used everyday on Bash as Fish's voodoo black magic powers take care of almost every aspect of my fishing :D
(Silly pun, I know, but this shell it's just too fishy to hold them)
(Recursive puns rules).

Cheers.
--
/Martin
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Mike Miller | 9 Apr 13:32 2014
Picon

Re: history search bg color


On 04/09/2014 10:40 AM, fish-users-request@... wrote:
> Message: 2 Date: Thu, 3 Apr 2014 22:03:34 +0200
 > From: SanskritFritz <sanskritfritz@...>
 > Subject: Re: [Fish-users] history search bg color To:
 >
>> >Hi,
>> >
>> >One of tiny features of fish 1.x that I liked was when searching through history
>> >with the up arrow, the part of each command that was matched was highlighted.  I
>> >remember it as being a dark blue background.
>> >
>> >Does this feature still exist?  I've looked in the color chooser in fish_config
>> >several times but can't seem to find it.
 >
> $fish_color_search_match variable is your friend.

Thanks for the reply.  Strangely enough I still had that set from the old days. 
  However, it doesn't seem to work.  I tried setting it again a few times, but 
it didn't work, i.e.:

     set -g fish_color_search_match blue --background
     set -u fish_color_search_match blue --background

Any tips?  Version 2.1.0.

-Mike

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
glphvgacs | 8 Apr 20:05 2014
Picon

accept auto autosuggestions with <Enter>, Categorise suggestions


hello,

so is there a way to have suggestions categorised? that way one could
say ok i was history *hits* first then whatever tab-completion would do
in other shells, like command/path completion and then other stuff. this
like the way vimperator and friends do it.

now since that's should result in closer results for each user, is there
a way to accept the suggestion by default. meaning hitting <Enter> will
not just accept the suggestion but also execute it. that would be like
apple's Safari's (and webkit derivatives in general)  address bar
behaviour.
the idea is that user
1. exhausts suggestions [let him type]
2. finds a close suggestion and wants to modify/edit it
3. suggestion is good and wants it executed right away

so i would argue 3 is the majority of the cases _if_ history is included
in suggestions (which i don't have it at the moment, will have to read
the man).

for 2 <backspace> should clear the suggestion off the line and stay off.

i can expalin more if need be, just let me know.

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
Mike Miller | 3 Apr 21:13 2014
Picon

Re: history search bg color

Hi,

One of tiny features of fish 1.x that I liked was when searching through history 
with the up arrow, the part of each command that was matched was highlighted.  I 
remember it as being a dark blue background.

Does this feature still exist?  I've looked in the color chooser in fish_config 
several times but can't seem to find it.

--

-- 
-Mike

  -------------------------------------------------------------
  Mike Miller             Earth, Sol, Orion Arm, Milky Way, VSC

------------------------------------------------------------------------------
Kevin Ballard | 2 Apr 19:10 2014

Restarting fishd after rebuilding?

What's the correct way to restart fishd after building and installing a new version of fish? If I `killall
fishd` all my terminal windows start spewing data about not being able to connect, and also emit 2 lines
about attempting to restart fishd and not having it work. I also tried `killall fishd; and fishd` and that
didn't work either. In the end I've been quitting and relaunching Terminal.app after installing a new
fish just to ensure all my shells are properly connected back to fishd.

But surely the active developers don't restart every instance of fish on their system when installing a new
version, right?

-Kevin
------------------------------------------------------------------------------
Ben Tebulin | 31 Mar 22:35 2014

Process substitution in fish


Hi list!

Inspired by http://www.reddit.com/r/linux/comments/21rm3o/_/cgfwp4c I
wondered my self: What's the equivalent of

    diff <(date) <(sleep 1s; date)

in fish? I tried

    diff (date|psub) (sleep 1; date|psub)

but this blurbs also a set of error messages. Bug?

Thanks
- Ben

------------------------------------------------------------------------------

Gmane