Code Monkey home page Code Monkey logo

org-bullets.nvim's People

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  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  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  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  avatar  avatar  avatar  avatar

org-bullets.nvim's Issues

Checkbox setting not respected

Hey @akinsho, awesome plugin as always, just started using it a bit ago and I love it!

So when I use the following configuration...

require("org-bullets").setup {
  concealcursor = true,
  checkboxes = {
    half = { "-", "OrgTSCheckboxHalfChecked" },
    todo = { "×", "OrgTODO" },
  },
}

...neither the half nor the todo checkbox states get updated. Am I doing something wrong? I've confirmed that the function is being run with print function calls.

Add support for list bullets and checkboxes

I have a branch setup that supports using bullet characters for lists and checks for completed checkboxes. Before setting up a PR I wanted to get feedback on whether this should be included in this plugin or as apart of another.
screenshot

Is there a way to use this with norg-files?

First of all: thank you for creating such a nice plugin. Little goodies like these really make day-to-day editing much more enjoyable!

I haven't been able to figure out how to enable the org-bullets for norg-files. Using the default setup

use {'akinsho/org-bullets.nvim', config = function()
  require('org-bullets').setup()
end}

works fine if I manually set ft=org. This however is not a good solution, because I want the syntax support and the extra functionality that comes along with the norg filetype.

I am aware that through #25 it was possible to enable markdown support. It would be very helpful, if there were a guide on how to set this up with other filetypes (for me mainly norg and markdown), if possible. I'm sure other people would be very interested in how to set this up as well.

Otherwise, I think it would be great to have this feature, since norg files are very similar to traditional org files and readily supported by treesitter.

orgmode with org-bullets.nvim

Hi, just a quick question, I was using orgmode with org-bullet, headline works before. After yesterday's update the headline is not displaying properly, I noticed you just updated something, I changed the setup but my headline is still not displaying properly, do I need to change any other settings please?
image

image

[Request] for help in development of similiar plugin for markdown

Hi i hope you are enjoying good health i am using this plugin from quite a while and it is amazing. for some requirements i also manage a large database of notes in markdown format and it will be really cool if we have something similar for markdown in neovim before posting i have tried my best to make this plugin work with markdown but am i really noob in this side and cant make it work. can you please give me some tips on how should i approach this problem of modifying this to make it work for markdown or may be if its not much for you then let the word have https://github.com/akinsho/md-bullets.nvim/

Replace with conceal queries

I'm not a hundred sure if this is possible for the org TS parser but since I initially created this plugin conceal is now supported for treesitter, so I think this plugin can largely be replaced with conceal queries either upstream or maybe just converting this plugin to a README showing how to do this, but first I'd have to get it working

`rightleft` support

Currently, if one sets the rightleft option (:set rl) lines which are affected by org-bullets.nvim disappear. I’m not sure if it is a bug in NeoVim or the plugin.

This have the same symptoms as this bug with nvim-ufo.

Re-editing an .org file invalidates ts-parser

When I :edit an .org file for the first time then the org-bullets are applied. However, if I :edit the same file again then the org-bullets are not applied.

I guess the ts-parser is no longer valid when this happens. Adding the following code in get_mark_positions() fixes this for me:

  if not parser:is_valid() then
    parser:parse()
  end

Move Subtree Up/Down not working well when subtrees are collapsed

If the subtrees are collapsed, after moving a subtree up or down, I have to save the buffer, close it and reopen my org file in order to see the changes.

To Reproduce:

  1. Create three or four subtrees that also have nestled subtrees
  2. Make sure all subtrees are collapsed
  3. Select the third main tree and do K

Expected behavior:
I would expect to see the main tree in its new position without having to expand all the subtrees above.

How it works in Emacs:
In Emacs Orgmode, all subtrees can be repositioned when items are collapsed, as long as the subtree group is visible that is being rearranged.

Also, in Emacs Orgmode, the cursor remains on the subtree that is being moved. This allows the user to repeatedly move the subtree up and down with ease.

OS: Ubuntu 20.04
Neovim: v.10.0-dev

Please add minimal install config for

Always got errors by using this config

require("org-bullets").setup({
    concealcursor = false, -- If false then when the cursor is on a line underlying characters are visible
    symbols = {
      -- headlines can be a list
      headlines = { "", "", "", "" },
      -- or a function that receives the defaults and returns a list
      headlines = function(default_list)
        table.insert(default_list, "")
        return default_list
      end,
      checkboxes = {
        cancelled = { "", "OrgCancelled" },
        done = { "", "OrgDone" },
        todo = { "˟", "OrgTODO" },
      },
    }
  })

Error is

Error detected while processing /home/volk/.config/nvim/after/plugin/bullets.rc.vim:
line   19:
E5108: Error executing lua ...config/nvim/plugged/org-bullets.nvim/lua/org-bullets.lua:43: atte
mpt to call field 'symbols' (a table value)
stack traceback:
        ...config/nvim/plugged/org-bullets.nvim/lua/org-bullets.lua:43: in function 'set_config
'
        ...config/nvim/plugged/org-bullets.nvim/lua/org-bullets.lua:273: in function 'setup'
        [string ":lua"]:1: in main chunk

Markdown support

Hi,

Would you be interested in adding markdown support for list items? I have tweaked your plugin to use it in markdown files, which looks something like this:

image

Since the name is org-bullets, I understand if you wouldn't want to add markdown support.

Thanks in advance!

Toggle bullets

Hi, is there a function to toggle the visibility of the bullets? It would be useful to toggle the highlight when I need to edit the raw file (e.g. for alignment purposes).

List item overrides header item

The new addition of symbols for list items overrides "level 1" headers (in the image below the level 1 headline bullet should be much larger):

image

Creating an issue to see whether or not this was intentional first, but would it be ideal to have configuration to setup what list items users want to support? For example, I only ever use - for lists. Happy to look into opening a PR for this.

Using decoration provider

Hi,

today while debugging some things I checked source code here to see what's happening, and I noticed that you are setting these exmarks via autocmd, and managing them via internal state.

I think using nvim_set_decoration_provider + ephermal option should help you clean things up a bit and have less code to manage. I just pushed a fix for hide leading stars option on tree-sitter branch that is using this provider, and it seems it's working fine. I think same thing is used internally for treesitter highlights.

I'm pretty sure using the same chunk of code with addition to the virtual text instead of hl group should do the trick.

This is just a suggestion of course.

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.