Git Product home page Git Product logo

telescope-orgmode.nvim's People

Contributors

joaomsa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

telescope-orgmode.nvim's Issues

Is the project still maintained?

There has not been any activity in the repository for a while. I've tried contacting the developer personally and got no answer.

Thus I'm creating a fork to keep the package maintained.

If the dev ever comes back I wouldn't mind using the original repo as it looks he is more used to write lua code than me

Refile to archive

Hi @joaomsa thanks for your wonderful plugin. I'm trying to improve my workflow of archiving, the problem comes when I archive a subtask, the parent is not tracked on the archive thus loosing the context.

I've seen that the refiling only allows you to move stuff around agenda files (which makes a lot of sense!), will you evaluate creating a new command something like :Telescope orgmode archive_heading that lets you archive to a specific heading?

Thanks!

Refile Heading or TODO doesn't adapt the heading level

When refiling a level 3 heading or TODO item to a level 1 heading or TODO the level of the heading is not transformed to a level 2 heading or TODO.

The other way around does work, when refiling a level 1 element to a level 3 element, the refiled element level is transformed from level 1 to level 4.

Steps to reproduce

  1. Open the next file called test.org with the minimal configuration below:
* Heading 1
** Subheading 1
** Subheading 2
* Heading 2
*** SubSubheading 1
  1. Hover with your cursor the SubSubheading 1 section and use the refile method
  2. In the Destination enter test.org/Heading 1 and press Enter.
  3. The result of the refile is the following.
* Heading 1
** Subheading 1
** Subheading 2
*** SubSubheading 1
* Heading 2

As you can see now instead of belonging to Heading 1 it is listed under Subheading 2 which is not desirable. When working with TODO items is awful because you may loose the context of what the task is about as it's listed as a subtask of the task you want it to be.

Expected behavior

The level of the SubSubheading is updated to match the first level children of the target of the refile. In this case the result file would be:

* Heading 1
** Subheading 1
** Subheading 2
** SubSubheading 1
* Heading 2

Note that it is ** SubSubheading 1 instead of *** SubSubheading 1

Additional context

This has been solved at nvim-orgmode/orgmode on this commit, but it doesn't work when using telescope-orgmode.

An example that the other way around works as expected is the following:

  1. From the original file:
* Heading 1
** Subheading 1
** Subheading 2
* Heading 2
*** SubSubheading 1
  1. If you refile the Subheading 1 into SubSubheading 1 the result file is
* Heading 1
** Subheading 2
* Heading 2    
*** SubSubheading 1
**** Subheading 1  

Refile from capture doesn't close the capture window

When I refile a task from the capture window, the task is well refiled but the capture window with the task to capture is still open.

This is not the behaviour shown in the readme

My configuration is:

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

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>r', require('telescope').extensions.orgmode.refile_heading)
    vim.keymap.set('n', '<leader>g', require('telescope').extensions.orgmode.search_headings)
  end,
})

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.