Commit Graph

192 Commits

Author SHA1 Message Date
708fc312d2
Make custom consult bookmark menu robust for upgrade
`consult--source-bookmark` is gone in later versions.
2026-03-21 15:00:17 +01:00
2db4ce7607
Move shortcut function to utilities package
This is where it should be, all time long.
2025-08-07 17:01:23 +02:00
914609074b
Refactor utilities functions
Group dired functions in separate section.

Remove unused window-single-toogle mode, as I use winner-mode for this.

Remove obsolete custom function to list changed repositories, as `magit-list-repositories` is just fine.
2025-07-14 18:53:52 +02:00
5655c58341
Remove obsolete shell and ansi-term popup shortcuts
Using `project-shell` as a replacement for the shell buffer.  I haven't used `ansi-term` in ages,
mostly because it does not work on Windows.
2025-07-14 18:27:17 +02:00
b7c7703b84
Use descriptive names in frequently used feature keymap 2025-06-16 11:24:33 +02:00
ab9245d58f
Replace hydra for frequently used features by simple map
Easier :)
2025-06-15 18:22:09 +02:00
cef425b1f8
Remove redundant zoom hydra
It's already available with `text-scale-adjust`, so let's use this.
2025-06-15 17:44:20 +02:00
b3830b6868
Move hydras to main db-utils package
No need to keep them separate.  Will be replaced partially by repeat-maps when possible.
2025-06-15 16:59:49 +02:00
0fe7ec5c1b
Clean up own utilities collection
Properly separate interactive commands from simple functions in use-package declaration, and remove
two unused functions.
2025-03-08 18:34:33 +01:00
47c7e664e5
Remove obsolete extra-symbol customization for TeX input method 2025-03-08 18:26:37 +01:00
f2f98c3ac5
Do not restrict shell buffer display to frame sides
Give buffers running ephemeral `eshell` or `shell` sessions a name that
is different from the default name chosen by these commands, and only
restrict those ephemeral shell buffers to be displayed at the side.
This way, running the commands `eshell` and `shell` will yield windows
can be handled like any others and can be used for long-running
sessions.
2025-03-07 20:35:38 +01:00
de123f7cea
Allow relocation of custom URL bookmark types
This is mostly copied from the current implementation in `bookmark.el`,
adapted to non-filename bookmarks.

Note that we are now using the `location` slot in bookmarks to store the
URLs, and relocating bookmarks will set the `filename` slot to `nil`.
2025-03-02 18:11:13 +01:00
76815c0171
Use more generic location slot for storing URLs in bookmarks
This might allow easier relocation of such bookmarks later on.
2025-03-02 17:38:42 +01:00
3dbc9604d4
Mark bookmarks to EWW 2025-02-25 17:26:16 +01:00
396ec4fca5
Ignore inaccessible directories when searching for changed git repos 2025-02-23 09:59:15 +01:00
795fcde3b8
Use default mechanism to store URL bookmarks directly after creation
Nicer :)
2025-02-22 20:54:31 +01:00
35cc0080d5
Set bookmark type for URLs
Just for display, nothing else should change with this (yet).
2025-02-22 20:54:31 +01:00
4ddb17f204
Allow to run git-repo-change-checker command under old script name
Old habits die hard …
2025-02-22 10:24:24 +01:00
003121ba0c
Add simple function to list changed git repositories
This is akin (in purpose) to `magit-list-repositories`, but also
descends into submodules.  It's not as nice as
`magit-list-repositories`, though … more of a draft version right now.

This replaces a shell script with similar purpose.
2025-02-16 17:51:00 +01:00
3a6d2005cb
Fix some flycheck warnings 2025-01-17 19:37:27 +01:00
ffe7eaf727
Minor identation fix
Done automatically, not fighting it.
2024-12-30 10:39:46 +01:00
ae5657fcc9
Add small utility to zoom into dedicated window
Taken from prot, see comment.
2024-12-30 10:39:29 +01:00
8521d627b4
Add convenience function to retrieve auth-source entries
Again inspired by https://magnus.therning.org/2024-09-01-improving-how-i-handle-secrets-in-my-work-notes.html.
2024-11-16 17:17:19 +01:00
0f43b7303f
Add custom function to start ement.el without prompts
Inspired by https://github.com/alphapapa/ement.el/issues/32#issuecomment-902539093.
2024-10-20 19:11:19 +02:00
0acc0687ea
Save bookmarks added with custom handlers
I am saving bookmarks anyway, so why not do it automatically.
2024-07-06 09:18:31 +02:00
42074f7d6a
Fix some docstring formatting 2024-03-09 16:30:08 +01:00
dbd19d0da8
Extend candidate list for custom grep-files function with history
It might be useful to actually see the history entries, so let's
explicitly include them in the candiate list.
2024-03-09 16:18:51 +01:00
4124bc28d5
Provide default value for custom grep-files pattern query function 2024-03-09 16:16:03 +01:00
f6c40ad619
Fix wrong candiate specification in custom grep-read-files function
Somehow mixed up the order, I suppose.
2024-03-09 13:45:49 +01:00
ed0286dc95
Include last modification time when adding custom-type bookmarks 2023-11-27 18:02:14 +01:00
15d202340f
Remove obsolete part of a function docstring 2023-11-27 17:46:12 +01:00
11ae275bb8
Do not use closures as handlers for custom bookmark types
Using closures leads to errors when using standard bookmark functions,
as they seem to expect a symbol as handler.
2023-11-27 17:35:33 +01:00
f2a62083d7
Allow overriding presence check for adding known SSH keys
Providing a non-nil universal argument to `db/load-known-ssh-keys` now readds
all known SSH keys to the current SSH agent, irregardless of whether they are
already present or not.
2023-10-01 09:51:53 +02:00
42af8216e0
Define magit-projectile synchronization function after loading magit
This is supposed to inhibit this warning:

```
Warning: Eager macro-expansion skipped due to cycle:
… => (load "db-utils.el") => (macroexpand-all (defalias 'db/sync-magit-repos-from-projectile …)) => (macroexpand (eval-when-compile …)) => (load "db-utils.el")
```

It should make calling this function also more robust.

Also updated the implementation to be more “dash-y”.
2023-07-23 17:02:15 +02:00
53a9ede65c
Marginally refactor function to add SSH keys to current agent
Does this improve readability?
2023-07-16 15:12:30 +02:00
1ec3dd24e6
Add some error-handling when adding SSH keyfiles 2023-07-16 15:12:26 +02:00
45c3b61476
Extend docstring of ssh-add utility function 2023-07-16 10:17:42 +02:00
c43291d23b
Modularize SSH key-file utility functions to increase reusability 2023-07-16 10:15:55 +02:00
82e50e8e22
Silence some byte-compiler and checkdoc warnings 2023-07-15 15:03:24 +02:00
a2f0e0ca3b
Determine whether an SSH keyfile is already loaded before loading it 2023-07-15 14:59:30 +02:00
6fb76d1efd
Decrypt SSH key password on demand and not unconditionally
This still always decrypts the password, because `ssh-add` does not check
whether the key is already present in the current agent.  This should propably
done separately before calling `ssh-add`.
2023-07-09 19:17:26 +02:00
603315e5b1
Delay computation of SSH-Key password until start of ssh-add
This is to prepare computing the password only when needed, i.e., when the key
is not already included in the running agent.  We are not there yet, though.
2023-07-09 17:55:19 +02:00
83e66e785f
Make default system open function work on Linux
I am not sure why it hasn't been working until now, and I am not sure why it
indeed does work now, but it does, and that sufficient for me – at least for
now.
2023-07-07 17:02:42 +02:00
d8a41ca0cf
Move Dired utility functions to general utility library 2023-07-01 17:02:12 +02:00
908b5f278e
Remove some byte-compiler warnings 2023-06-27 21:04:02 +02:00
ebb84f2139
Generalize SSH key adding function to additional password backends
Untested for Org password manager.
2023-06-27 20:20:28 +02:00
096f790fab
Change some code heading 2023-06-27 19:40:09 +02:00
74659e7548
Add simple convenience function to add known SSH keys
This is supposed to avoid manually inserting passwords for SSH keys when they
have expired from the local ssh-agent instance.
2023-06-27 19:40:00 +02:00
242d5cbcba
Add function to retrieve library version
This could come in handy when checking for necessary library versions.
2023-05-18 19:07:21 +02:00
7db9f8d56c
Fix indentation in utility library to conform to Common Lisp
This is the current indentation default.
2023-04-30 17:28:23 +02:00