From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [RFC] org-agenda: Jump directly to line in case of a timestamp Date: Sat, 07 Oct 2017 22:23:19 -0500 Message-ID: <87a812tja0.fsf@fastmail.fm> References: <84y3onggp3.fsf@gmail.com> <87mv53gfci.fsf@nicolasgoaziou.fr> <84r2uf54fx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e12Ba-00084f-1L for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 23:23:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e12BW-0001Cv-Tb for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 23:23:26 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58835) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e12BW-0001Cl-IT for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 23:23:22 -0400 In-Reply-To: <84r2uf54fx.fsf@gmail.com> (Marco Wahl's message of "Sat, 07 Oct 2017 18:05:22 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Marco Wahl Cc: emacs-orgmode@gnu.org, Nicolas Goaziou Marco Wahl writes: > Nicolas Goaziou writes: > >> Hello, >> >> Marco Wahl writes: >> >>> >>> Pressing TAB in the agenda would jump to the respective plain list item. >>> >>> Find the concrete patch below. >>> >>> WDYT? >> >> I have the feeling that both behaviours are useful. All things being >> equal, this is the entry being displayed in the Agenda, not necessarily >> the line containing the timestamp. Moreover this feature could be less >> meaningful if `org-agenda-skip-additional-timestamps-same-entry' is >> non-nil. >> >> Maybe an optional argument could allow one to switch from one behaviour >> to the other. I have no strong opinion about this, though. > > Thanks! > > I just found function `org-agenda-switch-to' which is similar to > `org-agenda-goto' but does not the jump to the headline. > > I personally configure this function to be on shift-tab. > > (org-defkey org-agenda-mode-map [(backtab)] #'org-agenda-switch-to) And, as a bonus, org-agenda-switch-to is bound to RET by default. I've happily been hitting return since 2008 to jump directly to timestamps. :) The only difference, if I remember correctly, is that org-agenda-switch-to replaces the agenda buffer with the target org buffer, whereas org-agenda-goto shows the target org buffer in another window. Best, Matt