On Wed, May 7, 2014 at 9:03 PM, Michai Ramakers <m.ramak...@gmail.com>wrote:

> I've been thinking about this a bit as well. Perhaps a nice idea would
> be to fire up $EDITOR like with 'commit', and allow the user to prefix
> wanted files with some char (i.e.   grep -v '^ '   on the resulting
> tempfile would yield the list of desired files). One benefit would be
> avoiding console screen-handling, and consistency with the 'commit'
> command.
>

That's a nice idea, and simplifies a great deal b/c we already have code to
do that (via commit). Maybe just delete the lines you don't want? That
would be relatively easy to implement, as we'd just read back the processed
list from the editor. If the user does something like mangle a name,
downstream checking for that name will fail.


> One drawback of using explicit screendrawing like you suggested might
> be long lists (when implementing 'diff-interactive' for instance). Or
> perhaps lists are typically not long, I don't know. One idea there
> might be an interface like GDBs '+' and '-' (scroll page
> forward/backward), using simple screen output followed by a prompt.
>

For diff i was thinking first show the list of all names, select one or
more files, then show the diff. Maybe repeat the list/input after that,
allowing views of multiple individual files. Pipe them through the $PAGER,
maybe. Or: diff --interactive (to select the files) --tk (to show them).


> FWIW, the only 2 things I would like to do interactively is 'commit'
> and 'diff'.


me... commit (sometimes), occasionally add. rm/mv is so rare. But once such
an infrastructure is in place, it can potentially be used for any commands
for which it "makes some sense" to do so. Once it's there, i might use it.

Interactive cherry-pick, showing a list of recent commits from other
branches, from which the user may choose one or more?

(I use 'rm' mostly only with single-file argument.)
>

A wise choice, indeed, IMO.

Thanks for the feedback!

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to