@spiralofhope
> Is there a simple way to assign multiple shortcuts to the same command?No, the only want to do this currently is to create a menu item which emits the shortcut key of the other menu item, then set another shortcut key for the former.
I never did get to thanking you for this: It works and it was straightforward to set up. Thanks!
]]>Note that SpaceFM may be built to run on GTK 2 or 3. The AUR includes spacefm-gtk2, which avoids the neverending GTK3 instability and breakage.
]]>https://projects.archlinux.org/svntogit … e986ad8396
(for ffmpegthumbnailer) Partial update it is.
]]>Miles28 wrote:Since today pacman update:
$ spacefm spacefm: error while loading shared libraries: libwebp.so.5: cannot open shared object file: No such file or directory
https://projects.archlinux.org/svntogit … f06ecb70be
Probably the maintainer forgot to rebuild the package - please file a bug.
Please don't. SpaceFM is not linked to libwebp at all. The problem lies elsewhere, most likely either a partial update or an AUR/foreign package that needs rebuilt.
]]>Since today pacman update:
$ spacefm spacefm: error while loading shared libraries: libwebp.so.5: cannot open shared object file: No such file or directory
https://projects.archlinux.org/svntogit … f06ecb70be
Probably the maintainer forgot to rebuild the package - please file a bug.
]]>$ spacefm
spacefm: error while loading shared libraries: libwebp.so.5: cannot open shared object file: No such file or directory
* Shenanigans with a second, reprogrammed keyboard. It's mapped to a bunch of exotic characters (eg. G key produces ğ/Ğ) so that it can provide lots of additional single-key shortcuts.
]]>re: xcf, ora thumbs:
Actually there is a GDKPixbuf loader for xcf. Anyway NVM,
the XDG thumbnails appear to work.. at least, I am getting thumbs on some XCF and ORA now.
re: clipboard:
Thanks for the manual links. I guess the specific socket commands you mean are these:
# Copy files to the clipboard:
spacefm -s set clipboard_copy_files /etc/fstab /etc/hosts# Cut files to the clipboard:
spacefm -s set clipboard_cut_files /etc/fstab /etc/hosts
and reading from that property during paste.. that seems manageable; I'll use your Paste Into script as a cheat sheet.
In that case, it sounds like I can leave Cut and Copy as-is, and only need to replace Paste. Interesting UI design you have there, that replacing items is so easy. I was impressed by it last time too.
Re: rename: Yes, I've looked into spacefm dialogs (have got a working dialog to report tmsu tags nicely for selected files, already). That will be what I'll use for single renames. Mainly I was interested in batch renames, but when I look at that carefully I see you are just shelling out to Thunar. Well, I can probably manage something with inode (+ sha1 fallback) comparison, since a rename should never move files between filesystems.
EDIT: I seem to have a working tmsu-aware paste now, modified from your Paste Into plugin:
#!/bin/bash
$fm_import # import file manager variables (scroll down for info)
#
# Enter your commands here: ( then save this file )
# Get clipboard
task_type=copy
eval clip="$(spacefm -s get clipboard_copy_files)"
if [ "${clip[0]}" = "" ]; then
eval clip="$(spacefm -s get clipboard_cut_files)"
if [ "${clip[0]}" = "" ]; then
# no files on clipboard
clip_text="`spacefm -s get clipboard_text`"
if [ "$clip_text" != "" ]; then
# paste text to pathbar
spacefm -s set focused_pane pathbar
spacefm -s set pathbar_text "$clip_text"
fi
exit 0
fi
task_type=move
fi
# Check target
if [ "${fm_files[0]}" = "" ] || [ ! -d "${fm_files[0]}" ] || \
[ "${fm_files[1]}" != "" ]; then
# No valid single target selected - paste into current folder
task_target="$fm_pwd"
else
# Paste into single selected folder
task_target="${fm_files[0]}"
fi
USE_TMSU=
if which tmsu-fs-mv > /dev/null; then
echo "using TMSU"
USE_TMSU=1
fi
count="${#clip[@]}"
index=1
# XXX do this via task manager
if [ "$task_type" = "move" ]; then
for FN in "${clip[@]}"; do
if [ "$USE_TMSU" -eq 1 ]; then
tmsu-fs-mv "$FN" "$task_target"
echo "$index/$count" "$FN"
else
mv -iv -- "$FN" "$task_target"
fi
index=$((index+1))
done
else
for FN in "${clip[@]}"; do
FN=$(realpath -- "$FN")
if [ "$USE_TMSU" -eq 1 ]; then
cp -ia -- "$FN" "$task_target"
base=$(basename "$FN")
tmsu tag --from "$FN" -- "$task_target/$base"
echo "$index/$count" "$FN"
else
cp -via "$FN" "$task_target"
fi
index=$((index+1))
done
fi
# boilerplate comments omitted
As it notes, this could probably be improved by adding each individual file move/copy as a 'cmd' type task to the task manager. I'll look at that later,
but for now, this appears to work well. Thanks for the help
Hi, I'm coming back to SpaceFM after becoming dissatisfied with Thunar etc. I haven't encountered the 'massively inflating memory use' bug that led me to stop using it last time, so fingers crossed..
I have two questions:
* Is there some way I can hook into the copy/cut/paste process (or alternatively, DnD)? I am using TMSU to tag files, so naturally when I move or duplicate files, I want the tags to go with them. In CLI terms that is a simple task to accomplish, however it needs to be triggered at the correct time -- in the case of a cut+paste, before the source file is removed but after the destination file is created. In the case of a copy+paste, any time after the destination file is created.
(hooking into rename process is also relevant for similar reasons)My current workaround is comprised of two actions, one which moves files from current panel to opposite panel, another which copies files.
* I have noticed that some image types like ORA and XCF, that had thumbnails in Thunar, do not have thumbnails in SpaceFM. How does SpaceFM generate image thumbnails?
Hi, That I'm aware of, SpaceFM's code never had a massive memory inflation problem, but other system components can create that. It did have some slow leaks that have been addressed recently. And it can normally use a decent amount of memory, especially if using very large thumbnails in large directories, etc.
You can't hook into the built-in copy/paste function, but you can add your own or replace them with your own, and there are socket commands that allow you to manipulate and read the clipboard, as well as initiate tasks within SpaceFM. A simple example is my Paste Into plugin. For creating your own Rename dialog, see SpaceFM Dialog.
SpaceFM will only attempt to thumbnail an image file if its MIME type has the prefix "image/". Then it will do so using GDK image functions. I doubt they support ORA or XCF, so neither does SpaceFM.
]]>I have two questions:
* Is there some way I can hook into the copy/cut/paste process (or alternatively, DnD)? I am using TMSU to tag files, so naturally when I move or duplicate files, I want the tags to go with them. In CLI terms that is a simple task to accomplish, however it needs to be triggered at the correct time -- in the case of a cut+paste, before the source file is removed but after the destination file is created. In the case of a copy+paste, any time after the destination file is created.
(hooking into rename process is also relevant for similar reasons)
My current workaround is comprised of two actions, one which moves files from current panel to opposite panel, another which copies files.
* I have noticed that some image types like ORA and XCF, that had thumbnails in Thunar, do not have thumbnails in SpaceFM. How does SpaceFM generate image thumbnails?
]]>hi guys!
Sorry if this question already exists.
Is it possible to assign to the key: Left Right Up Down on H J K L. vimlike
sorry for the language. I use a translator
If you mean use H J K L for navigation in the GTK lists instead of arrow keys, it's not possible to do this within SpaceFM (although you can do some cursor movement with socket commands, which can be associated to any key). You also might be able to remap those keys using your WM or other external tool, so it remaps them on a per-application basis (just for spacefm).
You can open a request for this on the tracker, so it stays visible. If SpaceFM ever gets a micro-preferences dialog, things like this may be added.
]]>