From: Jorge Alberto Garcia <jorge.garcia.gonzalez@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, Yuri Khan <yuri.v.khan@gmail.com>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: [PATCH] add emacsclient support to open with file:linum syntax
Date: Fri, 8 Jan 2016 10:13:01 -0600 [thread overview]
Message-ID: <CAPfrtUeiaqZSKMEQ6e-o-A1ARqOnqcbEi12+Pr4GSrF4nq5jbQ@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY2SN5ZPCM_14wyB4nL2s0q1CGc1+i9B4bCJx71rs61BOA@mail.gmail.com>
On Fri, Jan 8, 2016 at 9:54 AM, Kaushal Modi <kaushal.modi@gmail.com> wrote:
> As Yuri said, I just have a wrapper to provide the line number to
> emacsclient appropriately.
>
> Here's my csh alias:
>
> =====
>
> # (P)ercol $SEARCHLOG created by (AG)/ack and open emacs at matched (L)ine
> # below alias helps quickly open one of the files from the list of files
> # that matched the last 'ag'. Awesomeness is that the file opens in emacs
> # at the matched line!
> alias pagl 'cat ${SEARCHLOG} | percol --query=\!* | \\
> (e2 `awk -F: '"'"'{ if ( $2 ) {print "+" $2 " " $1} else {print}
> }'"'"'` &)'
>
> =====
>
Hi!, I think you got it right and I would like to provide this
awesomeness to all users
like us who will be happy to use it on emacsclient directly.
> (1)
>
> $SEARCHLOG is a temporary file containing the output of ag[1]
>
> Here's a sample $SEARCHLOG file:
>
> setup-misc.el:226: ("C-t" toggle-theme)
> setup-htmlize.el:23: ;; theme, the squiggly underlines can either show
> up in the html file
> setup-fci.el:66:Running this function after changing themes updates the fci
> rule color in
> setup-linum.el:41:background color to that of the theme."
> setup-visual.el:13:;; Themes
> setup-visual.el:46:(defvar dark-theme t
> setup-visual.el:47: "Variable to store the nature of theme whether it is
> light or dark.
> setup-visual.el:48:This variable is to be updated when changing themes.")
>
> (2)
>
> percol[2] is a command line utility to allow ido-vertical-like selection
> from terminal
>
> (3)
>
> e2 is my alias for "emacsclient -a '' \!* >& /dev/null"
>
> (4)
>
> That awk snippet is what rearranges the FILE:LINENUM in $SEARCHLOG to
> +LINENUM FILE when providing the arguments to e2.
>
> [1]: https://github.com/ggreer/the_silver_searcher
> [2]: https://github.com/mooz/percol
>
>
next prev parent reply other threads:[~2016-01-08 16:13 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-07 22:35 [PATCH] add emacsclient support to open with file:linum syntax Jorge Alberto Garcia
2016-01-08 7:42 ` Yuri Khan
2016-01-08 8:08 ` Jorge Alberto Garcia
2016-01-08 8:59 ` Yuri Khan
2016-01-08 14:11 ` Jorge Alberto Garcia
2016-01-08 9:03 ` Eli Zaretskii
2016-01-08 14:13 ` Jorge Alberto Garcia
2016-01-08 15:39 ` Eli Zaretskii
2016-01-08 15:54 ` Kaushal Modi
2016-01-08 16:13 ` Jorge Alberto Garcia [this message]
2016-01-08 16:38 ` Kaushal Modi
2016-01-08 16:44 ` Jorge Alberto Garcia
2016-01-08 16:54 ` Kaushal Modi
2016-01-08 17:52 ` Jorge Alberto Garcia
2016-01-08 19:06 ` Eli Zaretskii
2016-01-08 19:05 ` Eli Zaretskii
2016-01-12 21:04 ` John Wiegley
2016-01-12 21:26 ` Jorge Alberto Garcia
2016-01-13 0:10 ` John Wiegley
2016-01-13 0:46 ` Jorge Alberto Garcia
2016-03-29 16:22 ` Kaushal Modi
2016-03-29 17:30 ` Jorge Alberto Garcia
2016-03-29 21:27 ` Paul Eggert
2016-03-29 22:35 ` Kaushal Modi
2016-03-29 23:08 ` Paul Eggert
2016-03-29 23:29 ` Jorge Alberto Garcia
2016-03-30 0:37 ` Paul Eggert
2016-03-30 14:21 ` Kaushal Modi
2016-03-30 16:42 ` Jorge Alberto Garcia
2016-03-31 12:31 ` Stefan Monnier
2016-03-31 14:24 ` Jorge Alberto Garcia
2016-01-08 19:19 ` David Caldwell
2016-01-08 19:43 ` Eli Zaretskii
2016-01-08 19:52 ` David Caldwell
2016-01-08 20:33 ` Jorge Alberto Garcia
2016-01-09 22:51 ` Jorge Alberto Garcia
2016-01-10 8:22 ` Yuri Khan
2016-01-10 8:37 ` Jorge Alberto Garcia
2016-01-12 16:24 ` Jorge Alberto Garcia
2016-01-08 16:10 ` Jorge Alberto Garcia
-- strict thread matches above, loose matches on Subject: below --
2017-02-09 9:58 Toon Claes
2017-02-09 13:22 ` Stefan Monnier
2017-02-14 13:57 ` Toon Claes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPfrtUeiaqZSKMEQ6e-o-A1ARqOnqcbEi12+Pr4GSrF4nq5jbQ@mail.gmail.com \
--to=jorge.garcia.gonzalez@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=kaushal.modi@gmail.com \
--cc=yuri.v.khan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.