Alt-d acting like "cut"

Bug #726748 reported by Bruno Bord
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scribes
Fix Committed
Low
Mystilleef

Bug Description

Looks like Alt-d is acting like "cut", as in "cut 'n' paste".

Steps:

* Have a multiple line file opened in Scribes
* select a line
* Copy it (via Ctrl-C) for example
* Check that "paste" is working (Ctrl-V)
* move your cursor to another line.
* delete it using Alt-d.
* Now paste your clipboard content
* the line you've deleted using "alt-d" appears.

That seems wrong to me. The content I've copied in my clipboard was meant to be in it until I need it, and not being wiped out by the use of "delete line".

Is it a bug or an unexpected feature?

Revision history for this message
Bruno Bord (brunobord) wrote :

Here is my scribes -i

$ scribes -i
bruno@sheldon:~$ ========================================================
System Info: ('Linux', 'sheldon', '2.6.35-25-generic', '#44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011', 'i686')
Python Version: 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5]
System Byteorder: little
Python Modules: ('__builtin__', '__main__', '_ast', '_bisect', '_codecs', '_collections', '_functools', '_hashlib', '_locale', '_random', '_socket', '_sre', '_ssl', '_struct', '_symtable', '_warnings', '_weakref', 'array', 'binascii', 'cPickle', 'cStringIO', 'errno', 'exceptions', 'fcntl', 'gc', 'grp', 'imp', 'itertools', 'marshal', 'math', 'operator', 'posix', 'pwd', 'select', 'signal', 'spwd', 'strop', 'sys', 'syslog', 'thread', 'time', 'unicodedata', 'xxsubtype', 'zipimport', 'zlib')
========================================================
Scribes Version: 0.4-dev-build899
Dbus Version: (0, 83, 0)
GTK+ Version: (2, 22, 0)
PyGTK Version: (2, 21, 0)
Psyco Not Installed
========================================================
Running Instance: 0
========================================================
Python Path: /usr/lib/python2.6/dist-packages
Plugin Path: /usr/lib/scribes/GenericPlugins
Data Path: /usr/share/scribes
Executable Path: /usr/bin
========================================================

Revision history for this message
Mystilleef (mystilleef) wrote :

It's a feature. All (almost) delete operations are copied to the clipboard. It's inspired from VIM.

Revision history for this message
Bruno Bord (brunobord) wrote :

well... I'm a bit disappointed. I quite like vim when I need to use it, but I'm using Scribes because it's not vim.... I really wonder how this workflow is meant to help.

That'd *force* me to delete the lines I don't need *before* copying anything in my clipboard.
Or open a blank file, paste what I want to paste later on, doing "normal" operations (such as delete) and then re-open the dumb blank file, and copy paste from this to the actual buffer.

That's a constraint, because deleted lines are meant to be deleted, not saved, IMHO. And that'd force me *not* to use this convenient "delete line" shortcut when I want to clean the files I'm working on.

Revision history for this message
Mystilleef (mystilleef) wrote :

I'll remove it. I don't think it has much utility.

Mystilleef (mystilleef)
Changed in scribes:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Mystilleef (mystilleef)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.