Skip to content

0xhenrique/lum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lum

Lum Universal Marker.

Usage

Although it is not really necessary to run this program, having `fzf` and `xclip` would be great if you want to integrate with other programs. A pretty useful command to fetch your bookmarks would be:

~$ lum -l | fzf | xclip -selection clipboard

For Guix Users

You can use the manifest.scm file to get a shell with all the dependencies you will need to run this project:

~$ guix shell --manifest=manifest.scm
~$ lein run -- -g

For Emacs Users

In Emacs, you can define a quick command to search and copy your bookmarks:

  (defun my-consult-bookmark ()
    "Select a bookmark using `completing-read` and copy it to the clipboard."
    (interactive)
    (let* ((candidates (split-string (shell-command-to-string "java -jar ~/path/to/lum/target/uberjar/lum-1.0.0-SNAPSHOT-standalone.jar -l") "\n" t))
	   (selection (completing-read "Select bookmark: " candidates)))
      (when selection
	(kill-new selection)
	(message "Copied to clipboard: %s" selection))))

(global-set-key (kbd "C-c b") 'my-consult-bookmark)

Note that you must fix the ~/path/to/lum.

License

Copyright © 2024 Henrique Marques

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.

About

Linux Ubiquitous Marker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published