* forms and org-mode
@ 2021-08-21 2:50 Jude DaShiell
2021-08-21 3:51 ` Ihor Radchenko
0 siblings, 1 reply; 13+ messages in thread
From: Jude DaShiell @ 2021-08-21 2:50 UTC (permalink / raw)
To: emacs-orgmode
Would it even be useful to write a set of forms files and use those to
populate an org-mode table?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 2:50 forms and org-mode Jude DaShiell
@ 2021-08-21 3:51 ` Ihor Radchenko
2021-08-21 4:41 ` Jude DaShiell
0 siblings, 1 reply; 13+ messages in thread
From: Ihor Radchenko @ 2021-08-21 3:51 UTC (permalink / raw)
To: Jude DaShiell; +Cc: emacs-orgmode
Can you elaborate?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 3:51 ` Ihor Radchenko
@ 2021-08-21 4:41 ` Jude DaShiell
2021-08-21 5:00 ` Tim Cross
2021-08-21 5:02 ` Ihor Radchenko
0 siblings, 2 replies; 13+ messages in thread
From: Jude DaShiell @ 2021-08-21 4:41 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
A table with a time stamp column, a text column for notes and an interval
column rounded to nearest hour. Any statistics to be calculated on that
intervals column.
On Sat, 21 Aug 2021, Ihor Radchenko wrote:
> Can you elaborate?
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 4:41 ` Jude DaShiell
@ 2021-08-21 5:00 ` Tim Cross
2021-08-21 7:54 ` Jude DaShiell
2021-08-21 5:02 ` Ihor Radchenko
1 sibling, 1 reply; 13+ messages in thread
From: Tim Cross @ 2021-08-21 5:00 UTC (permalink / raw)
To: emacs-orgmode
So you are asking about using Emacs forms for data input into an org
table?
Just not clear on what exactly your asking about.
Jude DaShiell <jdashiel@panix.com> writes:
> A table with a time stamp column, a text column for notes and an interval
> column rounded to nearest hour. Any statistics to be calculated on that
> intervals column.
>
>
> On Sat, 21 Aug 2021, Ihor Radchenko wrote:
>
>> Can you elaborate?
>>
>>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 4:41 ` Jude DaShiell
2021-08-21 5:00 ` Tim Cross
@ 2021-08-21 5:02 ` Ihor Radchenko
1 sibling, 0 replies; 13+ messages in thread
From: Ihor Radchenko @ 2021-08-21 5:02 UTC (permalink / raw)
To: Jude DaShiell; +Cc: emacs-orgmode
Jude DaShiell <jdashiel@panix.com> writes:
> A table with a time stamp column, a text column for notes and an interval
> column rounded to nearest hour. Any statistics to be calculated on that
> intervals column.
I am still not sure if I understand you clearly. Does clocktable do what
you want?
Best,
Ihor
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 5:00 ` Tim Cross
@ 2021-08-21 7:54 ` Jude DaShiell
2021-08-21 8:33 ` Tim Cross
0 siblings, 1 reply; 13+ messages in thread
From: Jude DaShiell @ 2021-08-21 7:54 UTC (permalink / raw)
To: Tim Cross, emacs-orgmode
My reason for using forms to do data input into org tables is to minimize
errors in the data input to the org tables.
On Sat, 21 Aug 2021, Tim Cross wrote:
>
> So you are asking about using Emacs forms for data input into an org
> table?
>
> Just not clear on what exactly your asking about.
>
> Jude DaShiell <jdashiel@panix.com> writes:
>
> > A table with a time stamp column, a text column for notes and an interval
> > column rounded to nearest hour. Any statistics to be calculated on that
> > intervals column.
> >
> >
> > On Sat, 21 Aug 2021, Ihor Radchenko wrote:
> >
> >> Can you elaborate?
> >>
> >>
>
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 7:54 ` Jude DaShiell
@ 2021-08-21 8:33 ` Tim Cross
2021-08-21 8:55 ` Jude DaShiell
0 siblings, 1 reply; 13+ messages in thread
From: Tim Cross @ 2021-08-21 8:33 UTC (permalink / raw)
To: Jude DaShiell; +Cc: emacs-orgmode
OK, but I'm still a little unclear exactly what you are asking about.
If it is just a general question about whether Emacs Forms could be used
for data input into an org table, the basic answer is yes, I think so.
If your asking if anyone has done this - not that I'm aware of.
If your asking how hard it would be to do, well that depends.
The biggest challenge I can see is that Emacs forms expects a data file
which just consists of one record per line where each record is
separated by a specific character. That part is not too hard. However,
where things might get tricky is if you want to keep the data in an org
file with other org data.
I imagine you could maintain a table in a data file fairly easily. You
can use the org '|' as the field separators and you would likely need to
write an input and output filter function to remove white space and add
it back on writing. None of this would be too hard.
However, if you wanted an emacs forms interface to one or more tables
inside a normal org file, it might be more tricky. You would need a far
more sophisticated input/output filters and possibly need to narrow the
file or do something else to help the filter functions target the data.
It has been many years since I used Emacs Forms. From memory, I gave up
on them as the level of maintenance exceeded the usefulness. I guess it
all really depends on how much data you need to edit and how predictable
the target data files are.
.
Jude DaShiell <jdashiel@panix.com> writes:
> My reason for using forms to do data input into org tables is to minimize
> errors in the data input to the org tables.
>
> On Sat, 21 Aug 2021, Tim Cross wrote:
>
>>
>> So you are asking about using Emacs forms for data input into an org
>> table?
>>
>> Just not clear on what exactly your asking about.
>>
>> Jude DaShiell <jdashiel@panix.com> writes:
>>
>> > A table with a time stamp column, a text column for notes and an interval
>> > column rounded to nearest hour. Any statistics to be calculated on that
>> > intervals column.
>> >
>> >
>> > On Sat, 21 Aug 2021, Ihor Radchenko wrote:
>> >
>> >> Can you elaborate?
>> >>
>> >>
>>
>>
>>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 8:33 ` Tim Cross
@ 2021-08-21 8:55 ` Jude DaShiell
2021-08-21 10:14 ` Ihor Radchenko
0 siblings, 1 reply; 13+ messages in thread
From: Jude DaShiell @ 2021-08-21 8:55 UTC (permalink / raw)
To: Tim Cross; +Cc: emacs-orgmode
Interesting, thanks for your response. I keep tables in their own files,
one table per file to minimize complexity.
On Sat, 21 Aug 2021, Tim Cross wrote:
>
> OK, but I'm still a little unclear exactly what you are asking about.
>
> If it is just a general question about whether Emacs Forms could be used
> for data input into an org table, the basic answer is yes, I think so.
>
> If your asking if anyone has done this - not that I'm aware of.
>
> If your asking how hard it would be to do, well that depends.
>
> The biggest challenge I can see is that Emacs forms expects a data file
> which just consists of one record per line where each record is
> separated by a specific character. That part is not too hard. However,
> where things might get tricky is if you want to keep the data in an org
> file with other org data.
>
> I imagine you could maintain a table in a data file fairly easily. You
> can use the org '|' as the field separators and you would likely need to
> write an input and output filter function to remove white space and add
> it back on writing. None of this would be too hard.
>
> However, if you wanted an emacs forms interface to one or more tables
> inside a normal org file, it might be more tricky. You would need a far
> more sophisticated input/output filters and possibly need to narrow the
> file or do something else to help the filter functions target the data.
>
> It has been many years since I used Emacs Forms. From memory, I gave up
> on them as the level of maintenance exceeded the usefulness. I guess it
> all really depends on how much data you need to edit and how predictable
> the target data files are.
>
> .
> Jude DaShiell <jdashiel@panix.com> writes:
>
> > My reason for using forms to do data input into org tables is to minimize
> > errors in the data input to the org tables.
> >
> > On Sat, 21 Aug 2021, Tim Cross wrote:
> >
> >>
> >> So you are asking about using Emacs forms for data input into an org
> >> table?
> >>
> >> Just not clear on what exactly your asking about.
> >>
> >> Jude DaShiell <jdashiel@panix.com> writes:
> >>
> >> > A table with a time stamp column, a text column for notes and an interval
> >> > column rounded to nearest hour. Any statistics to be calculated on that
> >> > intervals column.
> >> >
> >> >
> >> > On Sat, 21 Aug 2021, Ihor Radchenko wrote:
> >> >
> >> >> Can you elaborate?
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 8:55 ` Jude DaShiell
@ 2021-08-21 10:14 ` Ihor Radchenko
2021-08-21 10:26 ` Greg Minshall
0 siblings, 1 reply; 13+ messages in thread
From: Ihor Radchenko @ 2021-08-21 10:14 UTC (permalink / raw)
To: Jude DaShiell; +Cc: Tim Cross, emacs-orgmode
Jude DaShiell <jdashiel@panix.com> writes:
> Interesting, thanks for your response. I keep tables in their own files,
> one table per file to minimize complexity.
A possible alternative to forms could be using custom capture templates
for table lines. You can restrict the captured information to a specific
list or a function (like org-read-date).
Best,
Ihor
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 10:14 ` Ihor Radchenko
@ 2021-08-21 10:26 ` Greg Minshall
2021-08-21 10:39 ` Ihor Radchenko
0 siblings, 1 reply; 13+ messages in thread
From: Greg Minshall @ 2021-08-21 10:26 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Jude DaShiell, Tim Cross, emacs-orgmode
Ihor,
> A possible alternative to forms could be using custom capture templates
> for table lines. You can restrict the captured information to a specific
> list or a function (like org-read-date).
wasn't there also some talk a while back about whatever form'ish
technology "magit" uses? my sense was it provides something similar to
Emacs forms.
cheers, Greg
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 10:26 ` Greg Minshall
@ 2021-08-21 10:39 ` Ihor Radchenko
2021-08-21 11:41 ` Tim Cross
0 siblings, 1 reply; 13+ messages in thread
From: Ihor Radchenko @ 2021-08-21 10:39 UTC (permalink / raw)
To: Greg Minshall; +Cc: Jude DaShiell, Tim Cross, emacs-orgmode
Greg Minshall <minshall@umich.edu> writes:
> wasn't there also some talk a while back about whatever form'ish
> technology "magit" uses? my sense was it provides something similar to
> Emacs forms.
To clarify, I am not aware about Emacs forms (unless you refer to
widgets used in customize interface). Magit uses transient which is one
of the possible completion interfaces in Emacs.
Best,
Ihor
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 10:39 ` Ihor Radchenko
@ 2021-08-21 11:41 ` Tim Cross
2021-08-21 12:45 ` Ihor Radchenko
0 siblings, 1 reply; 13+ messages in thread
From: Tim Cross @ 2021-08-21 11:41 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Greg Minshall, Jude DaShiell, emacs-orgmode
Ihor Radchenko <yantar92@gmail.com> writes:
> Greg Minshall <minshall@umich.edu> writes:
>
>> wasn't there also some talk a while back about whatever form'ish
>> technology "magit" uses? my sense was it provides something similar to
>> Emacs forms.
>
> To clarify, I am not aware about Emacs forms (unless you refer to
> widgets used in customize interface). Magit uses transient which is one
> of the possible completion interfaces in Emacs.
>
Yes, Emacs Forms is part of Emacs and provides an interface for
collecting data - either it is based on Emacs widgets or something very
similar. Very much like old 'form' data entry interfaces we use to see
on terminals in the 80s. A bit like ncurses with a little 'window'
decoration.
Transient on the other hand is a UI library for getting user input where
the options are a little too complex/large for the more common input
methods - for example, it could be a good candidate for the export
'menu'. which I find can be very frustrating on a smaller screen when
you have lots of defined export back-ends.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: forms and org-mode
2021-08-21 11:41 ` Tim Cross
@ 2021-08-21 12:45 ` Ihor Radchenko
0 siblings, 0 replies; 13+ messages in thread
From: Ihor Radchenko @ 2021-08-21 12:45 UTC (permalink / raw)
To: Tim Cross; +Cc: Greg Minshall, Jude DaShiell, emacs-orgmode
Tim Cross <theophilusx@gmail.com> writes:
> Transient on the other hand is a UI library for getting user input where
> the options are a little too complex/large for the more common input
> methods - for example, it could be a good candidate for the export
> 'menu'. which I find can be very frustrating on a smaller screen when
> you have lots of defined export back-ends.
I agree. Other good candidates are org-agenda dispatcher and org-attach
dispatcher.
Best,
Ihor
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2021-08-21 12:46 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-21 2:50 forms and org-mode Jude DaShiell
2021-08-21 3:51 ` Ihor Radchenko
2021-08-21 4:41 ` Jude DaShiell
2021-08-21 5:00 ` Tim Cross
2021-08-21 7:54 ` Jude DaShiell
2021-08-21 8:33 ` Tim Cross
2021-08-21 8:55 ` Jude DaShiell
2021-08-21 10:14 ` Ihor Radchenko
2021-08-21 10:26 ` Greg Minshall
2021-08-21 10:39 ` Ihor Radchenko
2021-08-21 11:41 ` Tim Cross
2021-08-21 12:45 ` Ihor Radchenko
2021-08-21 5:02 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.