profile
viewpoint
Trevoke Trevoke New York, USA http://blog.trevoke.net/ Pattern finder. Martial arts, game of go, music playing/composing/theory, free software, humane value delivery, product building.

firestormforum/firestorm 968

An open-source forum engine, with an Elixir+Phoenix backend and an Elm frontend.

elixir-lsp/elixir-ls 805

A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol"

elixir-editors/emacs-elixir 404

Emacs major mode for Elixir

elixir-lsp/elixir_sense 196

Provides context-aware information for code completion, documentation, go/jump to definition, signature info and more

fweep/vim-tabber 46

A Vim plugin for labeling tabs, styled after Powerline, with additional tab management utilities.

ecstatic-framework/ecstatic 35

An ECS (Entity-Component-System) framework in Elixir

elixir-lsp/lsp-elixir.el 16

Emacs minor mode to interact with elixir buffers by using LSP

amikula/promotego-org 15

An open source web app for arranging public games of Go

apetresc/Lecons-Sur-La-Theorie-Generale-Des-Surfaces 6

A collaborative effort to produce an English translation of Darboux's seminal 1887 text "Leçons Sur La Théorie Générale Des Surfaces Et Les Applications Géométriques Du Calcul Infinitésimal"

Trevoke/alchemist.el 5

Elixir Tooling Integration Into Emacs

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha 49f3e949197242a47f82d4ca047a627ad07be52c

remove print statement

view details

push time in 5 hours

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha 4a48f90dca46c10ed7eb788e1cbaf7f5c0da52cd

test passes with some manual work

view details

push time in 5 hours

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha ef7c873d8f585dadd6e83d67456c28cdf3d57e31

one failing test when entire suite is running

view details

push time in 8 hours

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha a0289ba1870641f7123b9aff0f2c74b4f2d1ee28

WIP - only create one default file, not many

view details

push time in 2 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha 0c607def5199361ab94795ae243779eba453070f

add option to auto-refile

view details

push time in 5 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha c48dbc0500dfe2ff20e2e4cc9f9988f0c29bf0bb

broken test - flag to refile without a prompt

view details

push time in 7 days

push eventTrevoke/org-gtd.el

Trevoke

commit sha 46b6cd7e33e2dee4078102706043f9b4083980f8

test only on emacs 27

view details

push time in 7 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha 2e71aeb5aa794df95f35b0b742159f88d0d9dd41

basic-save-buffer is a good function to know

view details

push time in 7 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha 4f3713d3702efe1ea59f9a7f2b51d1a8276f32ac

update dev .emacs, still weird but good enough

view details

push time in 7 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha b38adac7b91eb2999d5f99a645146647e765df66

allow the dev directory

view details

Aldric Giacomoni

commit sha 69ea9f2a62c3e03d38a5bf958d7c10afb92effe4

commit .emacs file for dev env

view details

push time in 7 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha 38792ad3fd46e2f41ecdefa7082ffbd4b5b7cb09

tests pass gotta take a look at the multi-element processing test

view details

push time in 7 days

issue commentDarwinAwardWinner/with-simulated-input

with-simulated input doesn't work with transient.el

Makes perfect sense, thanks!

Trevoke

comment created time in 7 days

issue commentDarwinAwardWinner/with-simulated-input

interaction with transient.el

That makes sense. Thanks for exploring so quickly. And I think you're right, I was looking at the source for transient.el and https://github.com/magit/transient/blob/master/lisp/transient.el#L1893 adds pre-command hooks and post-command hooks, so I guess it's working at a very low level of emacs.

For the short term, thank you for helping me find a way to get unblocked with my tests - and for the long term, do let me know how I can help further, and whether you think this is outside of the scope of with-simulated-input to handle or not :)

Trevoke

comment created time in 7 days

issue commentDarwinAwardWinner/with-simulated-input

interaction with transient.el

I did the following to bind ogt-transient to a key, which also worked:

(defvar stag-transient-test-mode-keymap (make-sparse-keymap))

(define-minor-mode stag-transient-test-mode "" :keymap stag-transient-test-mode-keymap)

(define-key stag-transient-test-mode-keymap (kbd "C-c d j") #'ogt-transient)

(stag-transient-test-mode 1)

(execute-kbd-macro (kbd "C-c d j f"))
Trevoke

comment created time in 7 days

issue commentDarwinAwardWinner/with-simulated-input

interaction with transient.el

If you mean doing this (same code as before except for actual execution):

(ogt-transient)
(execute-kbd-macro "f")

then when I use eval-buffer on this, it properly inserts the a.

Trevoke

comment created time in 7 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha e1db3193ceb6ac0ab091da40c972468ab8595f37

new flow using transient, broken tests

view details

push time in 7 days

issue openedDarwinAwardWinner/with-simulated-input

interaction with transient.el

Hi and thank you for this package! it's a lifesaver when working with code that doesn't separate UI from logic well, which is most of org-mode code :D

I'm trying to write an acceptance test around my package. with-simulated-input was perfect when I had read-multiple-choice but I am trying to use transient.el and it seems to not register input in a way that's friendly with your package. I asked a question here - https://emacs.stackexchange.com/questions/69534/acceptance-test-for-a-flow-that-uses-the-transient-package

but then I figured you might have a unique understanding of the situation and it might be faster to reach out to you -- it might be something that with-simulated-input is currently not equipped to handle?

sample code:

(require 'transient)
(require 'with-simulated-input)

(defun ogt-print-a () (interactive) (insert "a"))
(defun ogt-print-b () (interactive) (insert "b"))

(transient-define-prefix ogt-transient ()
  ["X"
   ("f" "test f" ogt-print-a)
   ("g" "test g" ogt-print-b)])

(with-simulated-input "f"
  (ogt-transient))

When I run this code, it displays the transient, and if I try to hit f myself, the transient says it's in an inconsistent state :/

created time in 8 days

startedbard/emacs-director

started time in 8 days

issue commentTrevoke/org-gtd.el

`org-gtd-process-inbox` skipping every other item

(alternatively you can just download the most recent version when it hits melpa, I just pushed that change, I couldn't see what it would break, the tests still passed)

jlcolbert

comment created time in 11 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha ca5b19dcfd3af5c5222654b2c12ce7bd6f3667c7

simple effort to fix inbox heading skip when processing

view details

push time in 11 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha ca5b19dcfd3af5c5222654b2c12ce7bd6f3667c7

simple effort to fix inbox heading skip when processing

view details

Aldric Giacomoni

commit sha 049a088870b3e37b9fe79352933f641a4aba7d86

Merge branch 'master' into 2.0.0 * master: simple effort to fix inbox heading skip when processing

view details

push time in 11 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha c59b735de6c33311170625f49e3b4ab024a46d2c

add command for daily view agenda

view details

Aldric Giacomoni

commit sha 61c9c5ac7666c495832407d12025d0697b62b08b

add a test for processing multiple items in the inbox in a row

view details

push time in 11 days

issue commentTrevoke/org-gtd.el

`org-gtd-process-inbox` skipping every other item

Hmm.. Okay. Thanks, that's pretty informative. org is a bit of a complex beast, so there's a lot of possibilities.

I would like you to try one more thing, now that we've established this is broken this way.

TLDR I would like you to edit the code and try something. Don't worry, it's a little bit easier than it may seem, if you're not familiar with coding. All it is is: finding the source code, making the change, and making emacs process the change.

If you're familiar with coding / emacs lisp:

I want you to edit the code for org-gtd-process-inbox and make the following change:

FROM

     (setq org-map-continue-from (org-element-property
                                  :begin
                                  (org-element-at-point)))

TO

     (setq org-map-continue-from (point-min))

if you're not familiar with coding/emacs

Get to the source code of the package

  1. C-h f org-gtd-process-inbox RET -- this opens a help buffer
  2. you'll see org-gtd-process-inbox is an interactive Lisp closure in ‘org-gtd.el’. - click on org-gtd.el
  3. You might need to scroll up to bring the code of the function into view

Find the code to edit

The function will have a chunk of code that looks like this:

  (org-map-entries
   (lambda ()
     (setq org-map-continue-from (org-element-property
                                  :begin
                                  (org-element-at-point)))
     (org-narrow-to-element)
     (org-show-subtree)
     (org-gtd--process-inbox-element)

We will want to focus on setting the variable org-map-continue-from which spans three lines. We will change the code from:

     (setq org-map-continue-from (org-element-property
                                  :begin
                                  (org-element-at-point)))

from

     (setq org-map-continue-from (point-min))

Once that is done, save the file.

When the file is saved, put the point (the cursor) right after the last parens of the function:

(org-gtd-find-or-create-and-save-files))| where the | is where you should put the point

And finally hit C-x C-e -- this will make emacs evaluate the function and load the new definition in memory.

Once the change is processes

Now.. Try to add a few things to the inbox and process the inbox again.

If this doesn't make the problem go away, then I'm afraid I really need to start from scratch and put together a different solution entirely.

jlcolbert

comment created time in 11 days

issue commentTrevoke/org-gtd.el

`org-gtd-process-inbox` skipping every other item

@jlcolbert Okay, I'd like you to try something:

  1. make sure your inbox is empty
  2. quit emacs
  3. start emacs
  4. add four or five things to the inbox
  5. process the inbox [ I expect this will be processed normally ]
  6. without saving the inbox buffer, add four or five things to the inbox
  7. process the inbox [ I don't think this will be processed normally ]

Let me know if this works that way?

jlcolbert

comment created time in 13 days

issue commentTrevoke/org-gtd.el

`org-gtd-process-inbox` skipping every other item

I think I know what's happening.

Given the following inbox:

* 1
* 2
* 3
* 4

When you process the inbox, you will go through 1 and 3, and it will leave 2 and 4 in the inbox.

Here's why I think this shouldn't be happening (obviously this reasoning is off somewhere):

  1. I am using org-map-entries, which goes from heading to heading
  2. The documentation clearly states that if I want to preserve continuity despite possibly moving (e.g. archiving, refiling) headings, I need to set org-map-continue-from properly - and I stole the snippet from https://stackoverflow.com/a/27043756/234025 , which I thought was meaningfully enough the same thing that I was doing

So what is necessarily happening is that there's something in the way it stores the point (the cursor) to decide how to resume that isn't quite correct.

jlcolbert

comment created time in 13 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha f56044e30b2c28ccb028d65bebbf91ac87a0653c

archiving now leaves alone things that aren't done

view details

Aldric Giacomoni

commit sha 274abef980a9ce8fb92deae310da379f8bd4f0ae

gitignore clean emacs dev dir

view details

Aldric Giacomoni

commit sha c2a583fed7bc4fc2c8c0566ae0d0320322b99883

remove interactive from a function

view details

push time in 14 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha d504f6c6c897a18149068f7846a7884d591cfa0e

depend on emacs 27.1 for now

view details

push time in 14 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha 8004be12e9c865c5245c29a973558625eb822885

add transient, prepare to adjust processing interface

view details

push time in 14 days

push eventTrevoke/org-gtd.el

Aldric Giacomoni

commit sha 1db4a2f5200cdcca421ed341b6518e4dc94eddf4

no item decorations by default, for simpler tests We already have one test that checks we can change hooks

view details

Aldric Giacomoni

commit sha a54f08aea00b527bb9ba5625b1af4ea89d6d6e8f

add a tests for 'archive done items' unfortunately they fail

view details

push time in 15 days

issue openedThomasFKJorna/org-roam-timestamps

When stable, please consider adding a version tag to a stable commit to add to melpa stable

I like to know the code I use is stable, so I would like to use a known stable version of org-roam-ui. Adding a version tag (git tag 1.0.0) to a stable commit would do the trick :D

created time in 16 days

more