[HN Gopher] Neorg: Neovim 0.5's answer to modern life organization
___________________________________________________________________
Neorg: Neovim 0.5's answer to modern life organization
Author : bpierre
Score : 75 points
Date : 2021-07-11 16:23 UTC (6 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| zelphirkalt wrote:
| Hm looks like an interesting approach, to let the user configure
| what symbols to use for what kind of markup. However, using a
| bunch of regexes reminds me of painful regex writing for Atom,
| Sublime and GEdit (or was it Geany?) syntax highlighting. It was
| never really easy to make it work correctly, without disregarding
| some edge cases. For most users it will probably mean to use a
| popular config and that's it.
|
| EDIT: From the readme:
|
| > Let's be real here, org and markdown have several flaws -
| ambiguity (tons of it), ugly syntax and the requirement for
| complex parsers.
|
| Aside from the fact, that I do not think org has ugly syntax, I
| think an actual parser is way better than having to rely on
| putting everything into regexes. It makes the code easier to
| maintain.
| dimal wrote:
| It feels like the promise of neovim is finally being realized. So
| much good stuff in 0.5, and now we're seeing cool things being
| made with the lua integration. It's gone beyond just being a more
| maintainable fork. It's starting to really feel like the next
| generation of vim. Very exciting.
| e12e wrote:
| Looks interesting, but I'm a bit sceptical - feel a bit likes
| it's features before use-cases - ie: many features, that may or
| may not be useful, but mmaybe not a few good use-cases?
|
| I've simply changed my notes.txt to notes.md - and that handles
| most of what I need for ideas, To-do lists and such.
| oezi wrote:
| Yes, I agree. The command vocabulary needs to come first for it
| to make sense and be a sensible application which is different
| from just a text editor.
|
| I have recently developed my own terminal-based UI for day
| journalling and todo/task tracking [1] in markdown files
| because I was sick of rearranging todos in other tools and just
| needed something which provides a standard template for each
| day (journal, high priority, todos of the day).
|
| The main advantage is that you can "migrate" all unfinished
| todos to a new page/day and thus get a clean start each day.
| This idea comes from bullet journalling.
|
| Long term I would like to add generated views (for instance:
| last year this time one of your highlights was...) and support
| recurring tasks to be inserted into the daily log.
|
| [1] https://github.com/coezbek/rodo
|
| Stack: Ruby, Curses, Markdown
| CA0DA wrote:
| I'm not very familiar with VIM - could someone explain what this
| is? Seems like some settings to make NeoVIM into a note-taking
| app?
| _benj wrote:
| In my opinion is the creation of an actual alternative to
| emacs, but more modern and simpler using lua instead of
| (e)lisp.
|
| I have nothing against emacs but being a fan of vim and of
| simpler systems I'm a fan of what I'm seeing being done with
| NeoVIM!
| bloopernova wrote:
| vim is the "VIsual editor iMproved", which is an upgrade to the
| "VIsual editor". It works by having a text entry "mode" and a
| separate text manipulation mode. This is very powerful, but
| does take some getting used to.
|
| For example, let's say you want to delete 5 lines: In visual
| studio code, you'd either select all the text and hit
| backspace, or maybe hold ctrl+backspace to delete whole words
| at a time. In vim, you'd hit escape to exit "insert" mode, then
| position your cursor at the beginning of the 5 lines to be
| deleted, and type "5dd" which means "delete a whole line, 5
| times".
|
| In the hands of an experienced vim user, it can make amazing
| edits to text in fractions of a second. It's really cool! It
| also works in a terminal, so it's available to you when you SSH
| to a remote server, for instance.
|
| Org-mode is kind of like Markdown, in that it's a way for plain
| text to have structure. Something like this:
| * Birthday Party Plan ** INPROGRESS [#A] Buy cake
| Ask Jen about her baker friend's availability ** TODO
| [#B] Buy beverages Talk to Mike about his party and
| what people drank ** INPROGRESS [#A] Send invitations
| <DEADLINE 2021-08-10> *** DONE Design invites
| *** TODO Get Addresses *** TODO Mail merge ***
| TODO Print invites
|
| Lots of stuff going on there! I'm tracking the state of each
| made up todo item. I've got a priority on the main todo items,
| and a deadline for one of them.
|
| Org is note taking, scheduling, structured text, even running
| programs and scripts inside your notes and saving the results
| in the note itself. From orgmode.org: "Org mode is for keeping
| notes, maintaining to-do lists, planning projects, authoring
| documents, computational notebooks, literate programming and
| more -- in a fast and effective plain text system."
|
| So, all of that is being supported by NeoVIM now :)
|
| I hope that helped, let me know if there's anything you want
| clarified or expanded.
| crubier wrote:
| To remove 5 lines in VSCode I would just type cmd-backspace 5
| times. Don't even have to count the number of lines
| beforehand. Just delete lines until it looks as you wanted.
| Much simpler than the complex process you describe, that
| involves counting lines and moving the cursor to the exact
| correct position.
|
| As always, I am unimpressed by "vim tricks" that vim people
| always boast about. And I am yet to see a single real use
| case where vim is faster than good old basic keyboard
| shortcuts (that includes cmd-d)
| Ancapistani wrote:
| > And I am yet to see a single real use case where vim is
| faster than good old basic keyboard shortcuts (that
| includes cmd-d)
|
| I feel like I'm far from a vim "power user", but people
| regularly comment on how quickly I edit text and code when
| I'm doing a screenshare. It becomes second nature in short
| order, so I'm never thinking about some multi-step process
| to before an edit; I just "do it".
|
| As for the "5dd" example... there are multiple ways to do
| things. For me, that would likely be:
|
| * navigate to the first or last line of the block
|
| * <shift+V> to start a selection of whole lines.
|
| * navigate to the other extreme
|
| * <D>
| paraknight wrote:
| There are many ways to skin a cat. Personally, in vim, I
| would do "dj" or "dk" twice, (deletes two lines up or down
| respectively) and then dd for the 5th one. Where vim shines
| is where you can just naturally start stringing together
| "sentences" of vim vocabulary and you can do what you mean.
| The macro system allows you to store these commands on the
| fly and replay them too.
| iimblack wrote:
| In vim you would actually just do 5dk to delete 5 previous
| lines. Or just do dk to delete one line, then . to repeat
| until satisfied.
|
| So you get an easy way to repeat actions. You can make this
| into a macro easily if needed.
|
| Then, most importantly in my opinion, you keep your hands
| in the normal typing position. The command key is awkward
| for me to reach and hurts my hands.
| slightwinder wrote:
| Looks like another iteration of someones personal markup-
| flavor, aimed at task-managment for self-organization.
| Basically, a todo-list in text-form.
|
| But I don't see anything worthful yet which makes this flavor
| preferable over org-mode or markdown. Seems to be also still
| very in progress. So give it some more years to grow I would
| say.
| zelphirkalt wrote:
| Markdown and Org are not in the same league. However, the
| goal is to have something like Org in (Neo)Vim. It will take
| a while, if it ever happens to get to feature parity with Org
| though.
|
| Edit: I would welcome though, if Org was supported well in
| (Neo)Vim. Then there would be one less excuse not to use it.
| cercatrova wrote:
| org mode in emacs is a very popular note-taking tool. This
| seeks to emulate and refine it for (neo)vim.
| nynx wrote:
| This is neat! I wonder if this kind of functionality would be
| accessible through a language server, so multiple text editors
| could use it.
___________________________________________________________________
(page generated 2021-07-11 23:00 UTC)