Git Product home page Git Product logo

telescope-orgmode.nvim's Introduction

telescope-orgmode.nvim

Integration for orgmode with telescope.nvim.

Demo

Jump to to any heading in org_agenda_files with :Telescope orgmode search_headings

asciicast

Refile heading from capture or current file under destination with :Telescope orgmode refile_heading

asciicast

Installation

With lazyvim

  {
    "lyz-code/telescope-orgmode.nvim",
    event = "VeryLazy",
    dependencies = {
      "nvim-orgmode/orgmode",
      "nvim-telescope/telescope.nvim",
    },
    config = function()
      require("telescope").load_extension("orgmode")

      vim.keymap.set("n", "<leader>r", require("telescope").extensions.orgmode.refile_heading)
      vim.keymap.set("n", "<leader>fh", require("telescope").extensions.orgmode.search_headings)
    end,
  }

Without lazyvim

You can setup the extension by doing:

require('telescope').load_extension('orgmode')

To replace the default refile prompt:

vim.api.nvim_create_autocmd('FileType', {
  pattern = 'org',
  group = vim.api.nvim_create_augroup('orgmode_telescope_nvim', { clear = true }),
  callback = function()
    vim.keymap.set('n', '<leader>or', require('telescope').extensions.orgmode.refile_heading)
  end,
})

Available commands

:Telescope orgmode search_headings
:Telescope orgmode refile_heading

Available functions

require('telescope').extensions.orgmode.search_headings
require('telescope').extensions.orgmode.refile_heading

telescope-orgmode.nvim's People

Contributors

joaomsa avatar lyz-code avatar seflue avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

seflue

telescope-orgmode.nvim's Issues

Just wanted to say thank you for the fork!

I know this is not appropriate for a gh issue but I just wanted to say THANK YOU! for making this fork and maintaining it! I was growing so frustrated trying to get the original repo to work.

The core configuration of this Telescope extension is setup incorrectly

@lyz-code fyi the actual core structure and architecture of this telescope extension is setup in correctly in several ways. Maybe a couple years ago things were done differently but it definitely does not adhere to the specs of today for creating telescope extensions.

This issue will represent re-structuring the extension to today's standards / requirements for the telescope extensions API.

I will try to do a PR this weekend when I have some time.

Add telescope picker to show all org files to pick from to open

@lyz-code one feature I was thinking of implementing is an option to view all org files in a Telescope picker to choose from to open. Basically just like core telescope find files but for your org files. I find most of the time I actually end up using the search headlines feature just so I can do this when it would be cleaner to just have a simple picker with a simple list of org file names with the benefit of using telescopes fuzzy find.

Thoughts?

FEAT: Add Clock In / Clock Out picker to track time

Add telescope picker to choose to start a new clock timer. Lets you choose from headlines to quickly start a timer. If you already have a timer / clock running it will first stop your other timer to start the new one (orgmode may do this automatically, i am not sure).

@lyz-code if any of these features I start proposing adding become out of scope to what you want this plugin to be, just let me know... i will not take any offense to it, haha ;-)

Add tests

I have absolutely no idea of lua, I'm learning as I debug this plugin.

It may come the day that I'm able to write tests, if you're reading this and feel sorry for me and want to give your 2 cents, please make a PR with some tests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.