Skip to content

Commit

Permalink
Fix ibut link directly for files and directories and when in dired (#402
Browse files Browse the repository at this point in the history
)

* Fixes for direct link creation, path handling and org-id buttons

* Bug fixes and link directly finalization for next major release

* Updates to generated doc files

* Remove leading blank lines inserted by viewer function

* Temp remove use of org-mode in FAST-DEMO and Hypb file display

The above makes all test cases run properly.

For windows-grid, make BLANK buffers have an initial space in the
name so is hidden in buffer lists.

* Fix smart-tag not finding some vars and markdown link handling

* hui:link-possible-types - fix to not default when on dirs or files

Autosave global button file after any edits.

* Klinks update to new format <file#cell-ref|viewspec>

Klinks add support for linking to headings ending with colon or
newline at the start of a cell.

Fix klink ibtype priority.

klink:act fix doc to reflect that 'start-pos' arg refers to the start
of the cell-ref in the link, not to the link's referent.

klink:at-p limit referent matches to .kotl? files.

Fix relative line and column numbers.  Make Koutline columns relative
to indent.

Add hsys-org-consult-grep function to consult grep over org-directory.

* Fix ibut link directly for files and directories and when in dired

Fix hui--ibut-link-directly-to-dired.

* link-directly at eol within dired, link to dired directory

Fix ignore case issue in hyrolo.
Update demos and manual with new klink # syntax.
Fix 2 tests cases due to updated code.

* hui:link-possible-types - For ilinks, add log msg of hbut's attrs

* hui:link-possible-types - Fix CI/CD build error

Also, remove debugging 'message' call.
hui--ibut-link-directly-to-dired - Handle non-readable input
  such as <ilink:...>.
  • Loading branch information
rswgnu authored Nov 7, 2023
1 parent a016782 commit 4958839
Show file tree
Hide file tree
Showing 20 changed files with 1,184 additions and 1,092 deletions.
52 changes: 52 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,55 @@
2023-11-06 Bob Weiner <[email protected]>

* hui.el (hui:link-possible-types): Fix CI/CD build error where
ilink was inserted when pathname was expected due to batch
diff when referent is in dired-mode. Fix to skip button type
clauses it this case.
test/hui-tests.el (hui--ibut-link-directly-to-dired): Check that
looking at a string before trying to (read (current-buffer));
otherwise, 'read' will fail.

2023-11-05 Bob Weiner <[email protected]>

* test/hyrolo-tests.el (hyrolo-demo-show-overview): Fix by adding
needed (forward-line 1) before testing for a collapsed node.

* test/kexport-tests.el (kexport:koutline-calls-kexport:html): Fix to
have proper file suffixes, now required.

* kotl/kexport.el (kexport:koutline): Trigger proper error if called
outside of .kotl file.

* hyrolo.el (hyrolo-google-contacts-grep, hyrolo-grep-file): Ignore case.

2023-11-04 Bob Weiner <[email protected]>

* hui.el (hui:link-possible-types): At end of any line in a dired buffer,
return (link-to-directory default-directory).

2023-11-01 Bob Weiner <[email protected]>

* test/hui-tests.el (hui--ibut-link-directly-to-dired): Fix to be
compatible with Emacs 27.1 and dependable regardless of what
is in the dired buffer.

* hpath.el (hpath:substitute-var-name): Fix to not elide variable name
from path unless path contains an Emacs loadable file name suffix.

* hui-mouse.el (smart-dired): If hit default cond clause and no filename
on the current line, run dired on the current directory rather than
triggering an error with a null filename value.
(smart-dired-pathname-up-to-point): Always return dir
as a full path ending in a forward slash. Add optional 'no-default'
arg and use in 'hargs:at-p' when reading a directory and in 'dired-mode'.

* hui.el (hui:link-possible-types): Fix so when checking if a file ref
at point, link to the file without any position arg and don't default
to the current 'buffer-file-name', instead drop through to further
conditional clauses.

* hbut.el (ibut:insert-text): Fix 'actypes::link-to-file' to shorten arg1
path relative to source dir, not referent dir.

2023-10-30 Mats Lidell <[email protected]>

* hversion.el (hyperb:mouse-buttons):
Expand Down
2 changes: 1 addition & 1 deletion FAST-DEMO
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ pspell-config(1) - prints information about a libpspell installation
All three of the above do essentially the same thing, displaying the
file.

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

Display a Hyperbole Koutline starting from cell 3b10 with lines per
cell clipped to 2.
Expand Down
5 changes: 5 additions & 0 deletions HY-NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,11 @@
*** (kotl-mode:goto-heading): Added to go to a string heading at the
beginning of a cell. Must end with a colon or a newline.

*** (hui:link-possible-types): At end of any line in a dired buffer,
return (link-to-directory default-directory), so when using any
link-directly command, always have a way to link to the dired buffer
itself.


** ORG MODE INTEGRATION (See "(hyperbole)Smart Key - Org Mode").

Expand Down
Loading

0 comments on commit 4958839

Please sign in to comment.