summaryrefslogtreecommitdiff
path: root/FAST-DEMO
blob: 010df27b27b4e2abc2cadcf6d0c4dec8c30e5b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
* GNU Hyperbole Fast Demo by Bob Weiner

  Send an email or a testimonial if you like Hyperbole to <rsw@gnu.org>.

  This demo is the fast way to get started with Hyperbole after installation.
  The prior, lengthier Hyperbole demo/tutorial can be found in this file: "DEMO".

* Introductory Videos

  If you prefer video introductions, visit the videos linked to in the tables below;
  otherwise, skip to the next section.  The first table is an overview talk of
  Hyperbole broken into few minute sections that you can watch individually.  The
  second table has links to separate videos covering aspects of Hyperbole.

  Hyperbole video demos start with 'section 06 - Hyperbole Buttons' in this first
  table.  Press {M-RET} either in the first column <[button name]> or in the second
  column video link to watch each section.
  
  |--------------------------------------+-----------------------------------------|
  | Hyperbole Video Overview Sections    | Video Snippets                          |
  |--------------------------------------+-----------------------------------------|
  |--------------------------------------+-----------------------------------------|
  | 01. <[Introduction]>                 | <yt-play "WKwZHSbHmPg" "0:01" "1:38">   |
  | 02. <[Hyperbole Mission]>            | <yt-play "WKwZHSbHmPg" "1:39" "2:43">   |
  | 03. <[Why Use Hyperbole]>            | <yt-play "WKwZHSbHmPg" "2:44" "4:34">   |
  | 04. <[Components]>                   | <yt-play "WKwZHSbHmPg" "4:35" "7:30">   |
  | 05. <[Installation & Use]>           | <yt-play "WKwZHSbHmPg" "7:31" "8:35">   |
  | 06. <[Hyperbole Buttons]>            | <yt-play "WKwZHSbHmPg" "8:36" "10:03">  |
  | 07. <[Button Categories & Files]>    | <yt-play "WKwZHSbHmPg" "10:04" "12:25"> |
  | 08. <[Implicit Buttons]>             | <yt-play "WKwZHSbHmPg" "12:26" "20:03"> |
  | 09. <[Implicit Button Types]>        | <yt-play "WKwZHSbHmPg" "20:04" "21:47"> |
  | 10. <[Explicit Buttons]>             | <yt-play "WKwZHSbHmPg" "21:48" "33:28"> |
  | 11. <[Global Buttons]>               | <yt-play "WKwZHSbHmPg" "33:29" "36:08"> |
  | 12. <[Mouse Keys/Buttons]>           | <yt-play "WKwZHSbHmPg" "36:09" "36:55"> |
  | 13. <[Mouse Drags & Treemacs]>       | <yt-play "WKwZHSbHmPg" "36:56" "38:00"> |
  | 14. <[Window Grids & Throws]>        | <yt-play "WKwZHSbHmPg" "38:01" "39:45"> |
  | 15. <[The Find Menu]>                | <yt-play "WKwZHSbHmPg" "39:46" "41:14"> |
  | 16. <[The Koutliner]>                | <yt-play "WKwZHSbHmPg" "41:15" "47:09"> |
  | 17. <[HyRolo]>                       | <yt-play "WKwZHSbHmPg" "47:10" "49:04"> |
  | 18. <[HyControl & Org Mode]>         | <yt-play "WKwZHSbHmPg" "49:05" "50:33"> |
  | 19. <[Integrations]>                 | <yt-play "WKwZHSbHmPg" "50:34" "50:58"> |
  | 20. <[Hyperbole History]>            | <yt-play "WKwZHSbHmPg" "50:59" "53:28"> |
  | 21. <[Acknowledgements & Resources]> | <yt-play "WKwZHSbHmPg" "53:29" "54:24"> |
  | 22. <[The Big Picture]>              | <yt-play "WKwZHSbHmPg" "54:25" "56:44"> |
  |--------------------------------------+-----------------------------------------|

  |-----------------------------------------------------+------------------------------|
  | GNU Hyperbole Videos                                | Web Link                     |
  |-----------------------------------------------------+------------------------------|
  |-----------------------------------------------------+------------------------------|
  | <[Overview and Demo]>                               | https://youtu.be/WKwZHSbHmPg |
  |     Sections broken out in the prior table          |                              |
  |-----------------------------------------------------+------------------------------|
  | <[Quick Introduction]>                              | https://youtu.be/K1MNUctggwI |
  |-----------------------------------------------------+------------------------------|
  | <[Introduction to Buttons]>                         | https://youtu.be/zoEht66N2PI |
  |-----------------------------------------------------+------------------------------|
  | <[Linking Personal Info with Implicit Buttons]>     | https://youtu.be/TQ_fG7b1iHI |
  |-----------------------------------------------------+------------------------------|
  | <[Powerful Productivity with Hyperbole and Org]>    | https://youtu.be/BrTpTNEXMyY |
  |-----------------------------------------------------+------------------------------|
  | <[HyRolo, fast contact/hierarchical record viewer]> | https://youtu.be/xdJGFdgKPFY |
  |-----------------------------------------------------+------------------------------|
  | <[Build a Zettelkasten with HyRolo]>                | https://youtu.be/HdlCK9w-LyQ |
  |-----------------------------------------------------+------------------------------|
  | <[HyControl, fast Emacs frame and window manager]>  | https://youtu.be/M3-aMh1ccJk |
  |-----------------------------------------------------+------------------------------|
  | <[Find/Web Search]>                                 | https://youtu.be/8lMlJed0-OM |
  |-----------------------------------------------------+------------------------------|


* Introduction

  Welcome to GNU Hyperbole.  Hyperbole will super-charge your GNU Emacs
  experience, allowing you to work faster, utilize fewer key bindings, recall
  more information and link it all together by learning just a few concepts
  and keys.  Invest an hour learning Hyperbole now and speed your daily
  information management for years to come.

  If you simply want to know what Hyperbole is, see the file "HY-ABOUT".
  Hyperbole displays that file when you press {C-h h d a}.  Hyperbole assumes
  you know how to use Emacs.  Otherwise, run the Emacs tutorial by pressing
  {C-h t} first.

  You should be looking at this file within Emacs and Hyperbole should
  already be installed within your copy of Emacs.  To be sure, press 'C-h h'
  and you should see the Hyperbole menu in your minibuffer window at the
  bottom of your current Emacs frame.  Press 'q' to quit out of this menu and
  we can begin.  If Hyperbole is not installed, see the "INSTALL" file, in
  the same directory as this file, for instructions on installing it.


* Implicit Buttons

  Hyperbole automatically recognizes many common and complex patterns within
  Emacs buffers and turns them into hyperbuttons that either link to other
  things or perform a set of actions.  No need for markup, simply press on a
  button in any kind of Emacs buffer to activate it.

  These patterns are called `implicit buttons' and are activated by pressing
  {M-RET} (ESC RETURN, ALT-RETURN, or CMD-RETURN) or SHIFT-MIDDLE-MOUSE
  anywhere within them (this is known as the Action Key).  Hyperbole
  recognizes these buttons using its predefined implicit button types that
  specify how to recognize each type of button and what action it performs.
  (For example, the web links in the table above are implicit buttons that
  display web pages).  You can also add your own button and action types.

  Try pressing {M-RET} or SHIFT-MIDDLE-MOUSE on some of the implicit buttons
  in double quotes below to activate them and see how they behave.  Press
  {C-h A} (the A must be capitalized) on any Hyperbole button to see exactly
  what it does prior to activating it.

  You can simply type implicit buttons into a buffer or you can use {C-h h i
  c} to create them and give them names.  To create an implicit link button
  from a buffer in one window to another, simply depress the Assist Mouse
  Key where you want the new button (but not within a draggable item), drag
  to a point in another Emacs window and release.  An implicit link button
  of an appropriate type for the release context will be inserted at the
  original depress point.

* Pathname Implicit Buttons

    "HY-NEWS#ORG MODE:2:6"   - outline section anchor & relative line number

       Display the file, "HY-NEWS", go to the star-outline section 'ORG
       MODE', move 2 lines into that section and then move 6 characters
       forward.

       Existing files and pathnames are recognized without double quotes as
       well.

       The variable, <hpath:display-where>, determines where Hyperbole
       displays all button referents, whether in another window or frame.

    "#Key Series Implicit Buttons"

       Display at the top of another window the named section from the
       current buffer.

    <[comp]>: "README.md#Hyperbole Components" - Markdown anchor with spaces intact

       Display the file, "README.md", scrolled to it outline section,
       "Hyperbole Components".  Name this button, 'comp'.  Then you can link
       to it elsewhere in the buffer with <ilink: comp>.  {M-RET} on the
       ilink to activates the button it links to.

    "${hyperb:dir}/HY-NEWS"          - Elisp or environment variables; $VAR
                                       shell vars work too


    "subr.el"                        - edit any Elisp library in load-path

       The variable, hpath:auto-variable-alist, determines which file
       suffixes are looked up using variables containing multiple search
       directories. By default, Org files, Python files and Elisp files are
       handled.

    "(hyperbole)action-key-modeline-function" 

       Double quoted Info manual references are also implicit buttons.  You
       can link to both nodes/sections in GNU Info manuals as well as to
       specific lines referenced by an index entry, as shown above, providing
       fine-grained structured document linking.  Remember this as there will
       be more Info links below.


* Key Series Implicit Buttons

    A key series is an arbitrary length set of Emacs keystrokes surrounded by
    braces, like a visual keyboard macro.  RET, SPC and ESC are translated
    into their respective keys.  Activate them with {M-RET} or
    SHIFT-MIDDLE-MOUSE.

    {C-h A}

       Press {C-h A} when over any Hyperbole button for an explanation of
       what it does.

    {M-x dired-other-window RET ${hyperb:dir}/*.el RET}

       Hyperbole home directory Dired listing of Emacs Lisp files only

    {C-c @ 22 RET}

       Display a 2x2 windows grid in the current frame of the 4 most recently
       used buffers.  Before you try this, remember the binding {C-h h h} for
       History.  Use that to return to your current window configuration
       after pressing the Action Key on any windows grid button.

    {C--1 C-c @ kotl/kotl-*.el RET}

       Find the Hyperbole Koutliner source files that begin with 'kotl' and
       display them in an auto-sized grid of windows.

    {C-u 0 C-c @ emacs-lisp-mode RET 33 RET}

       Display the 9 mostly recently used Emacs Lisp buffers in a 3x3 grid.
       A BLANK buffer fills in the grid if there are not enough Emacs Lisp
       ones.

    {C-x 4 d ${hyperb:dir} RET}

       Dired the Hyperbole home directory based on its variable.

       Within this dired buffer, mark a few files with {m} and then press {@}
       to display a window grid of those files only.  That works in Buffer
       Menu and IBuffer modes as well.

    {C-x C-b C-x C-q M-x keep-lines RET .el$ RET C-x C-q}

       Display a buffer list of Emacs Lisp file buffers only

    {C-x C-b C-x C-q M-x keep-lines RET [\\/]$ RET C-x C-q}

       Buffer list of directory buffers only


* Posix/Linux Shell Command Implicit Buttons

    Some of the below commands require recursive use of the minibuffer, so let's
    ensure that is enabled:

    <setq enable-recursive-minibuffers t>

    The shell command part of the demo requires a shell that is compatible
    with bash.  If you are using another shell you can switch to bash for
    this part of the demo:

    { M-x set-variable RET shell-file-name RET C-u M-! /usr/bin/env SPC bash RET RET }

       Set the name of the inferior shell to /bin/bash. If you do this
       don't forget to reset it to your preferred shell when you are ready
       with the demo.

    { M-x shell RET M-> (cd ${hyperb:dir}) RET }

       Move to a directory in a shell based on a Lisp variable.  Sections
       within key series surrounded by parentheses maintain spaces between
       words without the need to use 'SPC'.

    {M-x shell RET M-> (export HYPERBOLE_DIR=${hyperb:dir} && 
     cd $HYPERBOLE_DIR && grep -n gbut:label-list *.el) RET}

       Use both a Hyperbole resolved variable, ${hyperb:dir}, and a
       shell-resolved environment variable, $HYPERBOLE_DIR, to grep through
       Lisp files.

    {M-x shell RET M-> (apropos grep) RET}

       Use Posix apropos command to list grep-related commands.  Then press
       {M-RET} on any lines output to display the man page for the associated
       command.


* Grep Messages, Stack Traces, Man Page Apropos Implicit Buttons

  These implicit buttons typically appear in shell buffers.  You issue a
  shell command and then use {M-RET} or SHIFT-MIDDLE-MOUSE on the output
  lines of the command to display the associated reference.

** grep -n gbut:label-list *.el
hactypes.el:454:					      (mapcar #'list (gbut:label-list))
hbut.el:605:				       (mapcar #'list (gbut:label-list))

       An Action Key press anywhere on the text of the two above output lines
       from a grep -n or a ripgrep command jumps to the referenced line.

** python topwin.py
Traceback (most recent call last):
  File "topwin.py", line 18, in <module>
    import Quartz

       An Action Key press anywhere on the above 2 non-blank lines jumps to
       the source of the error.  You can jump into any stack frame this way
       when debugging from pretty much any language, even in a regular shell.

** man -k spell
aspell(1)                - interactive spell checker
aspell-import(1)         - import old personal dictionaries into GNU Aspell
pspell-config(1)         - prints information about a libpspell installation

       An Action Key press anywhere on the above 3 non-blank lines displays
       the associated man documentation page.


* Action Buttons

  These are a generalized form of implicit buttons.

  If you know your way around Emacs Lisp and want to quickly turn snippets of
  Lisp code or Lisp variables into Hyperbole buttons, just remove any outer
  parentheses and surround the remaining code with <angle-brackets>.

  Here are some examples.

    <shell>

       Jump to an existing shell buffer or create a new one.

    <fill-column>

       Display the variable value of 'fill-column' in the minibuffer

    <find-file-other-window (expand-file-name "DEMO" hyperb:dir)>
    <hpath:find "${hyperb:dir}/DEMO")>
    "${hyperb:dir}/DEMO"

       All three of the above do essentially the same thing, displaying the
       file.

    <kotl/EXAMPLE.kotl, 3b10 |c2en>

       Display a Hyperbole Koutline starting from cell 3b10 with lines per
       cell clipped to 2.


* Many More Implicit Button Types to Learn Across Time

  Activate this button, <emacs-lisp-mode>, to set this buffer into Emacs Lisp
  mode.  Then an Action Key press on each of the implicit button types below
  will jump to its Lisp definition.  Use this if you want to see what each
  type can do.  <normal-mode> reverts to the standard mode.

|------------------------+---------------------------+-----------------------|
|                          Implicit Button Types                             |
|------------------------+---------------------------+-----------------------|
| action                 | annot-bib                 | completion            |
| cscope                 | ctags                     | debbugs-gnu-mode      |
| debbugs-gnu-query      | debugger-source           | dir-summary           |
| doc-id                 | elink                     | elisp-compiler-msg    |
| etags                  | git-commit-reference      | glink                 |
| gnus-push-button       | grep-msg                  | hyp-address           |
| hyp-source             | id-cflow                  | ilink                 |
| Info-node              | ipython-stack-frame       | kbd-key               |
| klink                  | mail-address              | man-apropos           |
| markdown-internal-link | org-link-outside-org-mode | patch-msg             |
| pathname               | pathname-line-and-column  | rfc                   |
| rfc-toc                | ripgrep-msg               | social-reference      |
| texinfo-ref            | text-toc                  | www-url               |
|----------------------------------------------------------------------------|

Implicit button types are stored in their own namespace, 'ibtypes::', so to
see the doc on the 'pathname' ibtype, use {C-h f ibtypes::pathname RET}.  To
learn how to create new kinds of implicit button and action types, see:
"(hyperbole)Creating Types".


* Hyperbole Explicit and Global Buttons

  You have learned the basics of Hyperbole implicit button types.  Hyperbole
  has two other categories of buttons:

    `Explicit buttons' are manually created and embedded within buffers and
    explicitly assigned any of many action types that Hyperbole and Emacs
    include.  These contrast with implicit buttons which Hyperbole generates
    automatically by recognizing text patterns in buffers.  Explicit buttons
    look like this: <(fake button)>.  They are quickly recognizable, yet
    relatively non-distracting as one scans the text in which they are
    embedded.  Explicit buttons can link to local and remote files or to a
    section within a document; they can calculate things or query databases
    or show different views of bodies of information.  Unlike HTML
    hyperbuttons, there is no markup language to learn nor specific document
    format required.  You can create explicit buttons with simple keyboard
    presses or mouse drags from one window to another (when not on a draggable
    item).  See the {C-h h e} menu for explicit button commands.  See
    "DEMO#Explicit Buttons" or "(hyperbole)Explicit Buttons" for more detail.

    `Global buttons' are labeled Hyperbole buttons in your personal button
    file, {C-h h b p}.  All global buttons are activated by name with
    completion provided, independent of which buffers are on-screen, {C-h h g
    a}.  Global buttons may be <(explicit buttons)> or <[labeled/named]>
    implicit buttons in the personal button file.  See the {C-h h g} menu for
    global button commands.  See "DEMO#Global Buttons" or "(hyperbole)Global
    Buttons" for more detail.


* Hyperbole Subsystems

  Hyperbole includes a number of subsystems that can raise your productivity
  when looking up any kind of hierarchical records (including those from Org
  mode or Outline mode), managing the precise location of windows and frames,
  and one of the most advanced legal outliners available anywhere.

** HyRolo

  HyRolo is an advanced hierarchical, record-oriented retrieval system that
  uses text files for storing its records.  Most often this is used for
  contact management but it can quickly be adapted to most any
  record-oriented lookup task requiring fast retrieval.  Press {M-RET} on
  "(hyperbole)HyRolo".

** HyControl

  Hyperbole includes the fastest, easiest-to-use Emacs window and frame
  management system available, HyControl, found under the Hyperbole Screen
  menu, {C-h h s}.  If you use a lot of Emacs windows or frames (native
  window system windows), then this tool is for you.  Press {M-RET} on
  "(hyperbole)HyControl".

** Koutliner

  The Hyperbole Koutliner produces multi-level, autonumbered hierarchies of
  cells.  Each cell has two identifiers, a relative autonumber indicating its
  present position within the outline and a permanent identifier suitable for
  use within hyperlink references to the cell.

  A demonstration of the Koutliner is found on the Hyperbole Kotl/Example
  menu entry.  {C-h h k e}, gives you an editable copy of Hyperbole's example
  Koutliner file.  This explains the Koutliner commands and lets you try them
  out as you learn.  Additional documentation can be found in
  "(hyperbole)Koutliner".  "(hyperbole)Koutliner Keys" summarizes, in
  alphabetical order, the Koutliner commands which are bound to keys.


* Reference Documentation

  As noted at the start, "DEMO" provides a more extensive, interactive look
  into Hyperbole.

  For those who want the deepest knowledge of Hyperbole, there is the long
  Hyperbole reference manual that you can read in sections.  This covers in
  detail how each button and action type works, how to create your own button
  and action types and much more.  See "(hyperbole)" or use {C-h h d i}.

  It is included in the "${hyperb:dir}/man/" subdirectory of Hyperbole in
  four forms:

    "man/hyperbole.info"   - online Info browser version
    "man/hyperbole.html"   - web HTML version
    "man/hyperbole.pdf"    - printable version
    "man/hyperbole.texi"   - source form