Ticket #2979 (assigned enhancement)
More user friendly bookmark management
Reported by: | szaszg | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mcedit | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
It will be nice, if user can:
- remove bookmarks individualy
- show up a bookmark list to select and remove bookmarks (like directory hotlist in filemanager)
Attachments
Change History
comment:2 Changed 12 years ago by angel_il
looks good, but i have segfault
1) open file in mcedit (bookmark list must be empty)
2) press alt-shift-k
3) press key left, left, left
4) segfault
(More stack frames follow...)
(gdb) bt
#0 0x0810056b in book_mark_list_show (edit=0x820f148) at bookmark.c:864
#1 0x080d203c in edit_execute_cmd (edit=0x820f148, command=515, char_for_insertion=-1) at edit.c:4140
#2 0x080d3288 in edit_execute_key_command (edit=0x820f148, command=515, char_for_insertion=-1) at edit.c:3626
#3 0x080dfbd4 in edit_callback (w=0x820f148, sender=0x0, msg=MSG_KEY, parm=8267, data=0x0) at editwidget.c:1134
#4 0x08065c83 in send_message (data=0x0, parm=8267, msg=MSG_KEY, sender=0x0, w=<optimized out>)
at ../../lib/widget/widget-common.h:157
#5 dlg_key_event (d_key=8267, h=0x8208768) at dialog.c:515
#6 dlg_process_event (h=0x8208768, key=8267, event=0xbfffec50) at dialog.c:1244
#7 0x080661dd in frontend_run_dlg (h=0x8208768) at dialog.c:568
#8 run_dlg (h=0x8208768) at dialog.c:1275
#9 0x080e00f5 in edit_files (files=0x81ec290) at editwidget.c:1239
#10 0x080e0188 in edit_file (file_vpath=0x81738a0, line=0) at editwidget.c:1178
#11 0x0805f374 in do_edit_at_line (what_vpath=0x81738a0, internal=1, start_line=0) at cmd.c:794
#12 0x0805f48a in do_edit (what_vpath=0x81738a0) at cmd.c:182
#13 edit_cmd () at cmd.c:831
#14 0x0808b8bf in midnight_execute_cmd (sender=0x81eebe8, command=42) at midnight.c:1185
Changed 12 years ago by szaszg
- Attachment book_mark_list.png added
screenshot: bookmark list dialog
Changed 12 years ago by szaszg
- Attachment mc.2979.diff added
a "filemanager:hotlist" like bookmark list dialog
Changed 11 years ago by aurel
- Attachment bookmarks.patch added
Original patch updated for current version
comment:4 Changed 11 years ago by aurel
Hello there.
Found this patch very nice, but it didn't worked for current version of mc.
So, I edited it.
http://www.midnight-commander.org/raw-attachment/ticket/2979/bookmarks.patch
comment:5 Changed 11 years ago by slavazanko
- Owner set to slavazanko
- Status changed from new to accepted
comment:6 follow-up: ↓ 7 Changed 11 years ago by aurel
https://www.midnight-commander.org/raw-attachment/ticket/2979/1_bookmarks_2.patch
Modified previous patch to work in new mc, where listbox has GQueue instead of GList to store it's items.
Added:
Unfortunately, patch has some bugs which cause segfaults. Hoping to fix it soon.
comment:7 in reply to: ↑ 6 ; follow-up: ↓ 8 Changed 11 years ago by andrew_b
Replying to aurel:
Modified previous patch to work in new mc, where listbox has GQueue instead of GList to store it's items.
Don't use direct access to GQueue members. Use GQueue APIs instead.
comment:10 Changed 7 years ago by aurel
http://midnight-commander.org/attachment/ticket/2979/1_bookmarks_3.patch
Updated patch for mc 4.8.18
comment:11 Changed 4 months ago by andrew_b
- Owner slavazanko deleted
- Status changed from accepted to assigned
This patch add a hotlist like bookmark list dialog to more user friendly management of bookmarks.