hmmm... ok,
is there a reason to use darcs for fish instead of one of the more
conventional version control systems such as SVN??
i'd never heard of darcs before this, and so far it seems like its a pain in
the arse...
anyway, here are my patches
-=Abe
On Mon, Feb 2, 2009 at 4:23 PM, James Vega <[email protected]> wrote:
> On Mon, Feb 02, 2009 at 09:57:50PM +0100, Axel Liljencrantz wrote:
> > 2009/2/2 Abe Bachrach <[email protected]>
> >
> > > I just sent you a change which ignores the ./ if the history item
> starts
> > > with a ./ but the current command does not.
> > > If they both begin with "./" then things will be matched as usual.
> > >
> > > As it stands right now, the patches I've written implement the "combo"
> > > behavior.
> > >
> > > is the "darcs send" command what I should be using??? I'm more used to
> > > using CVS/SVN...
> > >
> >
> > Embarassing truth-time. I've never actually sent a darcs-style patch to
> > anybody. Fish is the only project I've ever used that uses darcs.
> Jamessan?
>
> There's a way to have the repo configured so you can just do "darcs
> send" but I've never setup a repo so I'm not sure how to do that. What
> I've always done with Axel is "darcs send -o foo.diff" and then sent
> foo.diff via email.
>
> --
> James
> GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkmHZFYACgkQDb3UpmEybUAJuQCfYUZBOM+Nmqw4hebOTlU+Y3tv
> 3J0Ani+wGAVmWeS8lMI+3TBh8j/vocI+
> =QQmh
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
New patches:
[modified history.c such that it will return results that match the beginning of the line first.
[email protected]**20081104040733
this is similar to how matlab does things, and makes using the history much faster, as it allows you to enter a single character, and get useful search results!
unlike matlab though, once it has gone through all the lines which match the initial substring, it will use the currently default behavior and search the entire line.
] {
hunk ./history.c 111
+
+ /**
+ Boolean to indicate whether we're trying to match against the beginning of the string first
+ */
+ int search_start;
hunk ./history.c 449
+ new_mode->search_start = 1;
+
hunk ./history.c 461
- return !!wcsstr( haystack, needle );
+ /*
+ if we're in the search_start mode only check the beginning of the line, otherwise search the whole line!
+ */
+
+ if (!current_mode->search_start)
+ return !!wcsstr( haystack, needle );
+ else
+ return !wcsncmp(haystack,needle,wcslen(needle));
hunk ./history.c 861
+ if (current_mode->search_start){
+ /*
+ We found no match against the start of the line, try searching
+ the entire line
+ */
+ current_mode->search_start = 0;
+ current_mode->pos = al_get_count( ¤t_mode->item );
+ return history_prev_match( needle );
+ }
+
hunk ./history.c 944
+
+ /*
+ set the search_start mode flag back to 1
+ */
+ current_mode->search_start=1;
}
[searchstart for short strings only when the search string is <=2 characters
[email protected]**20081107003711] {
hunk ./history.c 462
- if we're in the search_start mode only check the beginning of the line, otherwise search the whole line!
+ if we're in the search_start mode AND needle is <=2 chars only check the beginning of the line, otherwise search the whole line!
hunk ./history.c 465
- if (!current_mode->search_start)
- return !!wcsstr( haystack, needle );
- else
- return !wcsncmp(haystack,needle,wcslen(needle));
+ if (current_mode->search_start && wcslen(needle)<=2)
+ return !wcsncmp(haystack,needle,wcslen(needle));
+ else
+ return !!wcsstr( haystack, needle );
+
}
[made a change such that fish will ignore a "./" when searching beginning of a line
[email protected]**20090202164305] {
hunk ./history.c 46
-typedef struct
+typedef struct
hunk ./history.c 52
-
+
hunk ./history.c 69
-
+
hunk ./history.c 74
-
+
hunk ./history.c 94
-
+
hunk ./history.c 122
-typedef struct
+typedef struct
hunk ./history.c 128
-
+
hunk ./history.c 162
- return (i1->timestamp == i2->timestamp) && (wcscmp( i1->data, i2->data )==0);
+ return (i1->timestamp == i2->timestamp) && (wcscmp( i1->data, i2->data )==0);
hunk ./history.c 206
-
+
hunk ./history.c 217
-
+
hunk ./history.c 264
-{
+{
hunk ./history.c 269
- return 1;
+ return 1;
hunk ./history.c 271
-
+
hunk ./history.c 285
-{
+{
hunk ./history.c 294
-
+
hunk ./history.c 297
-
- int was_backslash = 0;
+
+ int was_backslash = 0;
hunk ./history.c 301
- int first_char = 1;
+ int first_char = 1;
hunk ./history.c 305
-
+
hunk ./history.c 318
-
+
hunk ./history.c 324
-
+
hunk ./history.c 326
-
+
hunk ./history.c 328
-
+
hunk ./history.c 344
-
+
hunk ./history.c 353
-
+
hunk ./history.c 358
-
+
hunk ./history.c 361
-
+
hunk ./history.c 367
- }
+ }
hunk ./history.c 376
-
+
hunk ./history.c 379
- if( c == L'#' )
+ if( c == L'#' )
hunk ./history.c 382
-
+
hunk ./history.c 384
-
+
hunk ./history.c 386
-
+
hunk ./history.c 388
-
+
hunk ./history.c 390
-
+
hunk ./history.c 412
-
+
hunk ./history.c 416
- }
-
+ }
+
hunk ./history.c 429
- Create a new empty mode with the specified name.
+ Create a new empty mode with the specified name.
hunk ./history.c 433
-{
+{
hunk ./history.c 442
-
+
hunk ./history.c 445
-
+
hunk ./history.c 453
- return new_mode;
+ return new_mode;
hunk ./history.c 466
- return !wcsncmp(haystack,needle,wcslen(needle));
+ {
+ if (!wcsncmp(haystack,L"./",2) && !!wcsncmp(needle,L"./",2)) //check if haystack starts with ./ but the need does not
+ return !wcsncmp(haystack+2,needle,wcslen(needle)); //compare without the ./ if needle doesn't start with ./
+ else
+ return !wcsncmp(haystack,needle,wcslen(needle));
+ }
hunk ./history.c 487
- wchar_t *res;
+ wchar_t *res;
hunk ./history.c 491
-
+
hunk ./history.c 496
-
+
hunk ./history.c 506
-{
+{
hunk ./history.c 510
-
+
hunk ./history.c 515
-
+
hunk ./history.c 520
-
+
hunk ./history.c 523
-
+
hunk ./history.c 532
-
+
hunk ./history.c 539
- al_push( &session_item_list, i_orig );
+ al_push( &session_item_list, i_orig );
hunk ./history.c 548
-
+
hunk ./history.c 551
-
+
hunk ./history.c 559
-
+
hunk ./history.c 569
- }
+ }
hunk ./history.c 573
- }
-
+ }
+
hunk ./history.c 591
-
+
hunk ./history.c 596
- return;
-
+ return;
+
hunk ./history.c 604
-
+
hunk ./history.c 625
-
+
hunk ./history.c 656
-
+
hunk ./history.c 661
-
+
hunk ./history.c 670
-
+
hunk ./history.c 676
-
+
hunk ./history.c 680
-
+
hunk ./history.c 682
-
+
hunk ./history.c 692
-
+
hunk ./history.c 708
-
+
hunk ./history.c 710
-
+
hunk ./history.c 712
-
+
hunk ./history.c 715
- */
+ */
hunk ./history.c 723
- {
+ {
hunk ./history.c 728
-
+
hunk ./history.c 743
- }
-
+ }
+
hunk ./history.c 756
-
+
hunk ./history.c 761
-
+
hunk ./history.c 768
-
+
hunk ./history.c 772
-
+
hunk ./history.c 780
-
+
hunk ./history.c 783
-
+
hunk ./history.c 787
-
+
hunk ./history.c 790
-
+
hunk ./history.c 795
-
+
hunk ./history.c 800
-
+
hunk ./history.c 819
- break;
+ break;
hunk ./history.c 821
-
+
hunk ./history.c 836
-
+
hunk ./history.c 840
-
+
hunk ./history.c 852
-
+
hunk ./history.c 854
-
+
hunk ./history.c 856
-
+
hunk ./history.c 866
-
+
hunk ./history.c 897
-
+
hunk ./history.c 899
-
+
hunk ./history.c 910
-
+
hunk ./history.c 918
-
+
hunk ./history.c 921
-
+
hunk ./history.c 924
-
+
hunk ./history.c 936
-
+
hunk ./history.c 938
- }
+ }
hunk ./history.c 955
- }
+ }
hunk ./history.c 977
-
+
hunk ./history.c 985
- return needle;
+ return needle;
hunk ./history.c 994
- hash_init( mode_table, &hash_wcs_func, &hash_wcs_cmp );
+ hash_init( mode_table, &hash_wcs_func, &hash_wcs_cmp );
hunk ./history.c 996
-
+
hunk ./history.c 998
-
+
hunk ./history.c 1002
- hash_put( mode_table, name, current_mode );
- }
+ hash_put( mode_table, name, current_mode );
+ }
}
Context:
[Add support for completing aliases in ssh. Written by David Bronke.
[email protected]**20090201231805]
[Add effectv completions, written by Stefano Sabatini.
[email protected]**20090201225558]
[Fix color ls detection for BSD and OS X systems. Patch by Sven Axelsson.
[email protected]**20090201222410]
[Fix cd function to handle empty variables correctly. Patch by Sven Axelsson.
[email protected]**20090201222058]
[Fix user completion so it can handle comments in the passwd file. Patch by Sven Axelsson.
[email protected]**20090201221921]
[Add netcat completions, written by James Stanley
[email protected]**20090201160411]
[Better warning message when trying to exit with jobs running. PAtch and suggestion from Josef Spillner.
[email protected]**20090201151601]
[Fixed bug with configure.ac in autotools shipped with F10. This fix comes from James Reeves.
[email protected]**20090201140928]
[Add mimedb infinite loop bug fix from James Reeves
[email protected]**20090201133734]
[Switch from ARG_MAX to getting value from sysconf, glibc no longer defines the latter. This was reported from Peter Alfredsen Matthew Wesley, among other people.
[email protected]**20090201132329]
[Fix slightly wrong LD_FLAG in Makefile
[email protected]**20090201125628]
[Add missing commas, letters and \c in the documentation
Ori Avtalion <[email protected]>**20080210210053]
[Fix dumb error causing fish not to compile...
[email protected]**20080204230945]
[Fix bug causing flood of error messages in terminal when trying to highlight an invalid command, reported by Denilson F. de Sa.
[email protected]**20080204230905]
[Add quilt completions, written by Stefano Sabatini.
[email protected]**20080123000021]
[Make string handling a bit more solid be making sure sb_printf returns a null terminated string even on failiure.
[email protected]**20080120022045]
[Add completions for various user and group adding commands. Skip addgroup, since manual page was actually for adduser, most switches weren't applicable and I was too lazy to guess which ones.
[email protected]**20080120020816]
[Add completions for m4
[email protected]**20080119150149]
[Add completions for badblocks
[email protected]**20080119145849]
[Add completions for Battle of Wesnoth
[email protected]**20080119145414]
[Improve documentaion for bind builtin, clarify how to specify key sequences.
[email protected]**20080119003820]
[Add simple git completions by Diggory Hardy
[email protected]**20080118160327]
[Fix spelling in docs and add a help page for the funced builtin. These changes where suggested by Emanuele Rusconi.
[email protected]**20080118155413]
[Search for command-not-found in PATH on startup, since older implementations place it there
[email protected]**20080115122953]
[In prompt_pwd, if a directory name starts with a dot, include first two characters. This patch was written by Denilson F. de Sá
[email protected]**20080116223621]
[Remove useless stray argument in function call
[email protected]**20080116222628]
[Correct completions for the function builtin
[email protected]**20080116222602]
[Add more documentation on events
[email protected]**20080116222531]
[Fix minor bug, PWD was incorrectly set on startup
[email protected]**20080116220738]
[Drop vim feature of only completing text and gzip files
[email protected]**20080116180249]
[Improve code comment
[email protected]**20080116010601]
[Add an extra input validation check
[email protected]**20080116010548]
[Improve error messages on failed execve calls a bit more
[email protected]**20080116010454]
[Oops. Made a minor but important typo in previous cleanup patch. :-(
[email protected]**20080115004050]
[Drop minor typo, add a few code comments
[email protected]**20080114225828]
[Add support for the Ubuntu 'command-no-found' handler, which suggests a package to install in order to get a command.
[email protected]**20080114223124]
[Handle case insensitive completions of variables better
[email protected]**20080114010032]
[The max size of the string buffer was too small. Push it up a bit.
[email protected]**20080114005745]
[Fixed various spelling errors.
James Vega <[email protected]>**20080113200151]
[Add canse insensitive tilde completion
[email protected]**20080113193221]
[Improve Doxygen documentation generation a bit
[email protected]**20080113164924]
[Make sure fish_indent handles io erros
[email protected]**20080113164905]
[Add lots of new code comments.
[email protected]**20080113164747]
[TAG 1.23.0
[email protected]**20080113012506]
Patch bundle hash:
cff9c586c32d46b73d8e9f52c0547759dab8cd9e
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users