From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: [FR] Allow flattened imenu index Date: Mon, 11 Dec 2023 17:40:07 +0000 Message-ID: References: <87plzgbalt.fsf@localhost> <87msujskxg.fsf@localhost> <835y17y5qu.fsf@gnu.org> <874jgrsiyy.fsf@localhost> <86r0jv8efr.fsf@mail.linkov.net> <86zfyg3jgs.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30221"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ihor Radchenko , Eli Zaretskii , Morgan.J.Smith@outlook.com, emacs-orgmode@gnu.org, 58131@debbugs.gnu.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Mon Dec 11 18:38:14 2023 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rCkEQ-0007fQ-Hd for geo-emacs-orgmode@m.gmane-mx.org; Mon, 11 Dec 2023 18:38:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCkDM-00027p-Uf; Mon, 11 Dec 2023 12:37:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCkDL-00026N-4q; Mon, 11 Dec 2023 12:37:07 -0500 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCkDI-0006Ae-Dx; Mon, 11 Dec 2023 12:37:06 -0500 Original-Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2c9ea37ac87so65286021fa.3; Mon, 11 Dec 2023 09:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702316221; x=1702921021; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YaM5DJhdTdYp/o3Zs9IyydAsVyUuRzPzsC6c07mNK2s=; b=h5/kEqQQio1gXfOSIsb47M/AESE5rD+Cz4Rmf1XF5ncxeEaFXi16DwVP+Hzy5cQb2I uZidepCvbB08Uf5wmoG7s9LfkiYz3I7TejFbqEqvN5fBmZ0wOqny4cWb1Xkd/EErSTZ1 N3M92n/LQDOAkoMp7//R5yk5tVtXVun9bxU3y9nMsoaf3M+VKPLn9q7e2wADcounltQf TLoyDh8K6wNCWul5SpZfv4wY/03rvH5FOfx8037rfgkyDf/Qv6GtHrMTjtDfaJ9AEN4W 1Ap6yWMB3f6hecyAK4+IrbyMIAachzQppQr7pBvn3zGShaXl/SUsnZCrrOLrL2ci87JF DjiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702316221; x=1702921021; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YaM5DJhdTdYp/o3Zs9IyydAsVyUuRzPzsC6c07mNK2s=; b=OimLFuCt3PKbfWyoLSIMjLvGsrfUdgnaAs2YFpQgi48hxvTv9HmuoVt8ZcLE/quXZ1 EQMEmXHSb/yYrxdwNDGZ6yPScYzwxgOZaHDChmNT/pwap5GcxwrsPx/A+ROjG8djfapq r0C9VxDZA67Y/JsMIqitpt8LN5FMHhgD9Jj9KkHJJ7rlgiaY/duEZJnnzn55R0CuJnep dE0a4fBIVBLUSXSoTFbBPhblItam1OR45CegbkqfgWhQj+Vuibc7HXuvO80q7Rnm0Bfp q8kH66ScJTUC6UgOsbRO7f7GfNy72gVuV46gwWNlfPgh4w3LjVNr3s7SHTmHSiAkRAq2 So5A== X-Gm-Message-State: AOJu0Yw+o1+ydaUARx3LSjVYwprOEOVE9GznaLRywd/mcrKF7IQznSKe jTwloEnQVI1WxQvLYwY70CoYtzJ8A+/T9HCa4YI= X-Google-Smtp-Source: AGHT+IE3pA7PT+AUPrQPUW1FBjkVDf1wC4/W+cxkQmF7cw/dyy3UX7C14d8OfhoPqvMqxvUlZaUpua/A1MUxXcDIVDQ= X-Received: by 2002:a05:6512:2385:b0:50d:1a7e:ac7d with SMTP id c5-20020a056512238500b0050d1a7eac7dmr2495101lfv.38.1702316220593; Mon, 11 Dec 2023 09:37:00 -0800 (PST) In-Reply-To: <86zfyg3jgs.fsf@mail.linkov.net> Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=joaotavora@gmail.com; helo=mail-lj1-x234.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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-mx.org@gnu.org Original-Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.orgmode:158546 gmane.emacs.devel:313707 Archived-At: On Mon, Dec 11, 2023 at 5:21=E2=80=AFPM Juri Linkov wrote= : > > By the way, this seems to be exactly what the breadcrumb-jump command > > in my breadcrumb.el package does. Goes reasonably well with a flex/fuz= zy > > completion style. > > It would be great to have some form of breadcrumb-jump in imenu.el > since it's useful on its own even for someone who doesn't use breadcrumbs= . You can copy it over, it doesn't really need breadcrumbs, though, it just needs imenu. The only things I'm seeing in its implementation in a penchant for a particular text property `breadcrumb-region`, which has information that imenu's structure didn't have a good place to place. But it's not required, as you noticed, I suppose it just gives it increased accuracy. > When eglot is enabled then imenu-create-index-function returns a tree. > > What is interesting is that breadcrumb-jump already correctly handles bot= h > a flat list and a tree: Yes, that's the point. Though when using Eglot, the exact tree structure -- of any -- depends on the language server. Jo=C3=A3o